]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/view.hpp
Allow for a context menu in the view area
[pulseview.git] / pv / views / trace / view.hpp
index a9e5564f1838d404b104e960f71e240aa25f1244..1cff6ab7bbf245f52a7508c20b52b446e26d15bc 100644 (file)
@@ -234,8 +234,6 @@ public:
 
        void zoom_fit(bool gui_state);
 
-       void zoom_one_to_one();
-
        /**
         * Sets the scale and offset.
         * @param scale The new view scale in seconds per pixel.
@@ -343,6 +341,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);
 
@@ -393,6 +394,8 @@ private:
 
        bool eventFilter(QObject *object, QEvent *event);
 
+       virtual void contextMenuEvent(QContextMenuEvent *event);
+
        void resizeEvent(QResizeEvent *event);
 
        void update_hover_point();