]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/viewitem.hpp
Allow for a context menu in the view area
[pulseview.git] / pv / views / trace / viewitem.hpp
index 39cf034562fb0e11cb500e949a424d9265b47fad..91242f57478e3bb9223bb8f01abf14118853c21a 100644 (file)
@@ -147,16 +147,18 @@ public:
 
 public:
        /**
-        * Gets the text colour.
-        * @remarks This colour is computed by comparing the lightness
-        * of the trace colour against a threshold to determine whether
+        * Gets the text color.
+        * @remarks This color is computed by comparing the lightness
+        * of the trace color against a threshold to determine whether
         * white or black would be more visible.
         */
-       static QColor select_text_colour(QColor background);
+       static QColor select_text_color(QColor background);
 
 public:
        virtual QMenu* create_context_menu(QWidget *parent);
 
+       virtual QMenu* create_view_context_menu(QWidget *parent);
+
        virtual pv::widgets::Popup* create_popup(QWidget *parent);
 
        virtual void delete_pressed();