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
shared_ptr<data::SignalBase> 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);
pv::Session &session_;
QComboBox *name_widget_;
+
+ /// The ID of the currently displayed segment
+ int current_segment_;
};
} // namespace trace