X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.h;h=ce09284d7af565879083e560ddca5506f1799377;hp=d34db1bffaa6d4a4a53acf88f9b1d39617b2afdf;hb=f0d37dab05f9fb055a9af8a05d776d1a5b4b0909;hpb=03ce95a9bb81c05bae0da9de189d280214db67c3 diff --git a/pv/mainwindow.h b/pv/mainwindow.h index d34db1bf..ce09284d 100644 --- a/pv/mainwindow.h +++ b/pv/mainwindow.h @@ -26,7 +26,6 @@ #include #include -#include #include "sigsession.h" @@ -51,6 +50,10 @@ namespace view { class View; } +namespace widgets { +class DecoderMenu; +} + class MainWindow : public QMainWindow { Q_OBJECT @@ -75,7 +78,6 @@ private: struct sr_dev_inst *selected_device = NULL); static gint decoder_name_cmp(gconstpointer a, gconstpointer b); - void setup_add_decoders(QMenu *parent); private slots: void load_file(QString file_name); @@ -97,9 +99,7 @@ private slots: void on_actionAbout_triggered(); - void device_selected(); - - void add_decoder(QObject *action); + void add_decoder(srd_decoder *decoder); void run_stop(); @@ -124,8 +124,7 @@ private: QAction *_action_view_show_cursors; QMenu *_menu_decoders; - QMenu *_menu_decoders_add; - QSignalMapper _decoders_add_mapper; + pv::widgets::DecoderMenu *_menu_decoders_add; QMenu *_menu_help; QAction *_action_about;