]> sigrok.org Git - pulseview.git/blobdiff - pv/data/signalbase.hpp
Better segment handling in math signal and lock avoidance
[pulseview.git] / pv / data / signalbase.hpp
index 7d7a795e5f8648bf649fa46345d5a679a930c510..ab1c97a0530ddc55b6a8e5005e9582ec022f0768 100644 (file)
@@ -112,6 +112,9 @@ public:
                DynamicPreset = 0  ///< Conversion uses calculated values
        };
 
+       static const QColor AnalogSignalColors[8];
+       static const QColor LogicSignalColors[10];
+
 private:
        static const int ColorBGAlpha;
        static const uint64_t ConversionBlockSize;
@@ -128,6 +131,11 @@ public:
         */
        shared_ptr<sigrok::Channel> channel() const;
 
+       /**
+        * Returns whether this channel is generated or a channel associated with the device.
+        */
+       bool is_generated() const;
+
        /**
         * Returns enabled status of this channel.
         */