]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/view.hpp
Update cursor action's state whenever the cursor state changes
[pulseview.git] / pv / views / trace / view.hpp
index 8c41fd9e40692e504c9db06c39a26f4aa5a92f6d..1551bc0b13a09ce8e3f5e95c412fa997bc20d228 100644 (file)
@@ -105,6 +105,12 @@ public:
 
        ~View();
 
+       /**
+        * Resets the view to its default state after construction. It does however
+        * not reset the signal bases or any other connections with the session.
+        */
+       virtual void reset_view_state();
+
        Session& session();
        const Session& session() const;
 
@@ -337,6 +343,9 @@ Q_SIGNALS:
        /// @param mode is a value of Trace::SegmentDisplayMode
        void segment_display_mode_changed(int mode, bool segment_selectable);
 
+       /// Emitted when the cursors are shown/hidden
+       void cursor_state_changed(bool show);
+
 public Q_SLOTS:
        void trigger_event(int segment_id, util::Timestamp location);