]> sigrok.org Git - pulseview.git/blobdiff - pv/view/trace.h
Moved popup text changed handler into base class, and made "Name" translatable
[pulseview.git] / pv / view / trace.h
index 631c8d9cb6a7435343ef806d2ed1eb6566cb7e02..462e8094048830439690f8214b68857711e53a04 100644 (file)
@@ -133,12 +133,14 @@ public:
 
        virtual QMenu* create_context_menu(QWidget *parent);
 
-protected:
+       pv::widgets::Popup* create_popup(QWidget *parent);
+
        /**
         * Gets the y-offset of the axis.
         */
        int get_y() const;
 
+protected:
        /**
         * Gets the text colour.
         * @remarks This colour is computed by comparing the lightness
@@ -156,6 +158,8 @@ protected:
         */
        void paint_axis(QPainter &p, int y, int left, int right);
 
+       virtual void populate_popup_form(QWidget *parent, QFormLayout *form);
+
 private:
 
        /**
@@ -177,6 +181,8 @@ private slots:
 
        void on_action_set_colour_triggered();
 
+       void on_text_changed(const QString &text);
+
 signals:
        void text_changed();