X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fstandardbar.hpp;h=6e822229e3aebc8ab43e4d27f99444ab5318315b;hp=09c7907f3da3f4fc5fdb55bfa548267bd0fbce28;hb=e4e5a958507a2c4e2643f21e3c735021da97e577;hpb=f23c46921d031dba4c96062164cc9f3ca3c4809c diff --git a/pv/views/trace/standardbar.hpp b/pv/views/trace/standardbar.hpp index 09c7907f..6e822229 100644 --- a/pv/views/trace/standardbar.hpp +++ b/pv/views/trace/standardbar.hpp @@ -24,11 +24,15 @@ #include #include +#include #include +#include #include #include +#include "trace.hpp" + namespace pv { class MainWindow; @@ -61,6 +65,8 @@ public: protected: virtual void add_toolbar_widgets(); + virtual void show_multi_segment_ui(const bool state); + Session &session_; trace::View *view_; @@ -70,6 +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(); @@ -80,8 +96,21 @@ protected Q_SLOTS: void on_actionViewZoomOneToOne_triggered(); void on_actionViewShowCursors_triggered(); + void on_cursor_state_changed(bool show); + + 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_; }; } // namespace trace