Added a scale factor to AnalogSignal
[pulseview.git] / pv / view / analogsignal.h
index 86471537abce44236291664b98a1e74084cc187d..bb4a2109c0bd4d8d461434afae9a552ce39645da 100644 (file)
@@ -35,9 +35,14 @@ namespace view {
 
 class AnalogSignal : public Signal
 {
+private:
+       static const QColor SignalColours[4];
+
 public:
        AnalogSignal(QString name,
-               boost::shared_ptr<pv::data::Analog> data);
+               boost::shared_ptr<pv::data::Analog> data, int probe_index);
+
+       void set_scale(float scale);
 
        /**
         * Paints the signal with a QPainter
@@ -54,6 +59,7 @@ public:
 
 private:
        boost::shared_ptr<pv::data::Analog> _data;
+       float _scale;
 };
 
 } // namespace view