X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fmainwindow.h;h=b4b64f779de1419ac4686defedd67566c942aa5c;hb=f39936fb17239b1ee47161aa215352b11a03041a;hp=02b792eaa1cd5cc4aed6d8d2b5894edeb935e21f;hpb=107ca6d350b51186d12dac9273f6ed130b3f5dd7;p=pulseview.git diff --git a/pv/mainwindow.h b/pv/mainwindow.h index 02b792ea..b4b64f77 100644 --- a/pv/mainwindow.h +++ b/pv/mainwindow.h @@ -23,7 +23,10 @@ #include +#include + #include +#include #include "sigsession.h" @@ -40,6 +43,7 @@ namespace pv { class DeviceManager; namespace toolbars { +class ContextBar; class SamplingBar; } @@ -70,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); @@ -92,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; @@ -114,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; @@ -122,6 +137,7 @@ private: QToolBar *_toolbar; toolbars::SamplingBar *_sampling_bar; + toolbars::ContextBar *_context_bar; }; } // namespace pv