X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fstandardbar.hpp;h=060a7ef55a3ee90285eb2beb757a50fba12b39d9;hp=8640b4c9520ae01b0f41a2721a8cd4da8261a13a;hb=5c48ce328b0b049d0ddc1b137f20118c9084c929;hpb=4e86ec7042631d4b54876cba89c01a73abaf7213 diff --git a/pv/views/trace/standardbar.hpp b/pv/views/trace/standardbar.hpp index 8640b4c9..060a7ef5 100644 --- a/pv/views/trace/standardbar.hpp +++ b/pv/views/trace/standardbar.hpp @@ -26,10 +26,13 @@ #include #include #include +#include #include #include +#include "trace.hpp" + namespace pv { class MainWindow; @@ -73,8 +76,16 @@ protected: QAction *const action_view_zoom_one_to_one_; QAction *const action_view_show_cursors_; + QToolButton *segment_display_mode_selector_; + QAction *const action_sdm_last_; + QAction *const action_sdm_last_complete_; + QAction *const action_sdm_single_; + QSpinBox *segment_selector_; +Q_SIGNALS: + void segment_selected(int segment_id); + protected Q_SLOTS: void on_actionViewZoomIn_triggered(); @@ -86,9 +97,16 @@ protected Q_SLOTS: void on_actionViewShowCursors_triggered(); + void on_actionSDMLast_triggered(); + void on_actionSDMLastComplete_triggered(); + void on_actionSDMSingle_triggered(); + void on_always_zoom_to_fit_changed(bool state); void on_new_segment(int new_segment_id); + void on_segment_changed(int segment_id); + void on_segment_selected(int ui_segment_id); + void on_segment_display_mode_changed(int mode, bool segment_selectable); private: vector multi_segment_actions_;