X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fsignal.hpp;h=2cc49a77d1962499c8bece819c5a0824485bf543;hb=9510aea0fca1c7438be30a4f43988c001b5f0b11;hp=d763609d972abc322dc796e9aca32a2add66269f;hpb=2d458a761b9fb184cd1c903485293f86fd552637;p=pulseview.git diff --git a/pv/views/trace/signal.hpp b/pv/views/trace/signal.hpp index d763609d..2cc49a77 100644 --- a/pv/views/trace/signal.hpp +++ b/pv/views/trace/signal.hpp @@ -44,6 +44,15 @@ class SignalData; namespace views { namespace trace { +/** + * The Signal class represents a series of numeric values that can be drawn. + * This is the main difference to the more generic @ref Trace class. + * + * It is generally accepted that Signal instances consider themselves to be + * individual channels on e.g. an oscilloscope, though it should be kept in + * mind that virtual signals (e.g. math) will also be served by the Signal + * class. + */ class Signal : public Trace, public ViewItemOwner { Q_OBJECT @@ -66,6 +75,10 @@ public: shared_ptr base() const; + void set_current_segment(const int segment); + + int get_current_segment() const; + virtual void save_settings(QSettings &settings) const; virtual void restore_settings(QSettings &settings); @@ -89,6 +102,9 @@ protected: pv::Session &session_; QComboBox *name_widget_; + + /// The ID of the currently displayed segment + int current_segment_; }; } // namespace trace