Link signals to probes
[pulseview.git] / pv / view / logicsignal.h
index ad88241da34de704c783e77a7acc4bfb63763b87..927e96ab079e0daeda534eb706bab4e2ea8764d3 100644 (file)
@@ -42,12 +42,13 @@ private:
        static const QColor HighColour;
        static const QColor LowColour;
 
-       static const QColor LogicSignalColours[10];
+       static const QColor SignalColours[10];
 
 public:
-       LogicSignal(QString name,
-               boost::shared_ptr<pv::data::Logic> data,
-               int probe_index);
+       LogicSignal(const sr_probe *const probe,
+               boost::shared_ptr<pv::data::Logic> data);
+
+       virtual ~LogicSignal();
 
        /**
         * Paints the signal with a QPainter
@@ -70,7 +71,6 @@ private:
                float x_offset, float y_offset);
 
 private:
-       int _probe_index;
        boost::shared_ptr<pv::data::Logic> _data;
 };