X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.h;h=47704c2fc8f7abe1ab614c33f684ba4a87f1d513;hp=001c28b037033d5394088b94455b046198799e2f;hb=b6b267bba9d55d23fe5c3537e4785238d4377ad7;hpb=b1264f5650d4bd6cb801585ed5d1dc61226a21db diff --git a/pv/mainwindow.h b/pv/mainwindow.h index 001c28b0..47704c2f 100644 --- a/pv/mainwindow.h +++ b/pv/mainwindow.h @@ -26,6 +26,7 @@ #include #include +#include #include "sigsession.h" @@ -73,6 +74,9 @@ private: void update_device_list( 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); @@ -93,14 +97,12 @@ private slots: void on_actionAbout_triggered(); - void device_selected(); + void add_decoder(QObject *action); void run_stop(); void capture_state_changed(int state); - void view_selection_changed(); - private: DeviceManager &_device_manager; @@ -119,6 +121,10 @@ private: QAction *_action_view_zoom_out; QAction *_action_view_show_cursors; + QMenu *_menu_decoders; + QMenu *_menu_decoders_add; + QSignalMapper _decoders_add_mapper; + QMenu *_menu_help; QAction *_action_about; @@ -127,7 +133,6 @@ private: QToolBar *_toolbar; toolbars::SamplingBar *_sampling_bar; - toolbars::ContextBar *_context_bar; }; } // namespace pv