]> sigrok.org Git - pulseview.git/blobdiff - pv/view/analogsignal.hpp
AnalogSignal: Implement info text for V/div display
[pulseview.git] / pv / view / analogsignal.hpp
index 9c9c6db8aeffd04321799567935ecf3ba17417ec..47a9980c0ff9dc8272aad16b391f96a8e361799d 100644 (file)
@@ -48,6 +48,7 @@ private:
 
        static const int MaximumVDivs;
        static const int MaxScaleIndex, MinScaleIndex;
+       static const int InfoTextMarginRight, InfoTextMarginBottom;
 
 public:
        AnalogSignal(pv::Session &session,
@@ -96,6 +97,13 @@ public:
         */
        void paint_mid(QPainter &p, const ViewItemPaintParams &pp);
 
+       /**
+        * Paints the foreground layer of the item with a QPainter
+        * @param p the QPainter to paint into.
+        * @param pp the painting parameters object to paint with.
+        */
+       void paint_fore(QPainter &p, const ViewItemPaintParams &pp);
+
 private:
        void paint_grid(QPainter &p, int y, int left, int right);