X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fflag.hpp;h=eb4bf87c6008d9f84f737e1dd4a0086812ce47e7;hb=HEAD;hp=5edf90b01ef63997595415d32e0fc6faea35c0d3;hpb=710c2a1896fbac968c82f2d1257aaabd10a48cc8;p=pulseview.git
diff --git a/pv/views/trace/flag.hpp b/pv/views/trace/flag.hpp
index 5edf90b0..eb4bf87c 100644
--- a/pv/views/trace/flag.hpp
+++ b/pv/views/trace/flag.hpp
@@ -17,8 +17,8 @@
* along with this program; if not, see .
*/
-#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_FLAG_HPP
-#define PULSEVIEW_PV_VIEWS_TRACEVIEW_FLAG_HPP
+#ifndef PULSEVIEW_PV_VIEWS_TRACE_FLAG_HPP
+#define PULSEVIEW_PV_VIEWS_TRACE_FLAG_HPP
#include
@@ -63,10 +63,21 @@ public:
virtual bool enabled() const override;
/**
- * Gets the text to show in the marker.
+ * Gets the current text to show in the marker - this may be dynamic.
+ */
+ virtual QString get_display_text() const override;
+
+ /**
+ * Gets the default text used to show the marker - e.g. the user-editable
+ * name.
*/
virtual QString get_text() const override;
+ /**
+ * Sets the text to show in the marker.
+ */
+ virtual void set_text(const QString &text) override;
+
virtual pv::widgets::Popup* create_popup(QWidget *parent) override;
virtual QMenu* create_header_context_menu(QWidget *parent) override;
@@ -88,4 +99,4 @@ private:
} // namespace views
} // namespace pv
-#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_FLAG_HPP
+#endif // PULSEVIEW_PV_VIEWS_TRACE_FLAG_HPP