X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fmainwindow.h;h=b4b64f779de1419ac4686defedd67566c942aa5c;hb=f39936fb17239b1ee47161aa215352b11a03041a;hp=51577bdb742d9a53303ed260bfc77075e17a8aa8;hpb=404aad0ed6bd90566739af6ecb57475bc02a7c8e;p=pulseview.git diff --git a/pv/mainwindow.h b/pv/mainwindow.h index 51577bdb..b4b64f77 100644 --- a/pv/mainwindow.h +++ b/pv/mainwindow.h @@ -23,7 +23,10 @@ #include +#include + #include +#include #include "sigsession.h" @@ -71,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,10 +99,14 @@ private slots: 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; @@ -115,6 +125,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;