X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fmainwindow.h;h=d34db1bffaa6d4a4a53acf88f9b1d39617b2afdf;hb=6a91973f74ee7360a82e107e8b2d708030498291;hp=02b792eaa1cd5cc4aed6d8d2b5894edeb935e21f;hpb=107ca6d350b51186d12dac9273f6ed130b3f5dd7;p=pulseview.git diff --git a/pv/mainwindow.h b/pv/mainwindow.h index 02b792ea..d34db1bf 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,6 +99,8 @@ private slots: void device_selected(); + void add_decoder(QObject *action); + void run_stop(); void capture_state_changed(int state); @@ -114,6 +123,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;