X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftrace.h;h=462e8094048830439690f8214b68857711e53a04;hp=631c8d9cb6a7435343ef806d2ed1eb6566cb7e02;hb=68456dab5d519d886cf632cecc01373cc258d83c;hpb=9b6378f147671e62f57887d51d01864d20e01475 diff --git a/pv/view/trace.h b/pv/view/trace.h index 631c8d9c..462e8094 100644 --- a/pv/view/trace.h +++ b/pv/view/trace.h @@ -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();