]> sigrok.org Git - pulseview.git/blobdiff - pv/view/cursor.h
Add missing newlines in two header files.
[pulseview.git] / pv / view / cursor.h
index 3ee0200518108a30e52ef7b20b7ced7108d92386..dd8ef242d53163dfdd4a7f9bf10fc94d8886ff75 100644 (file)
 
 #include "timemarker.h"
 
+#include <QSizeF>
+
+class QPainter;
+
 namespace pv {
 namespace view {
 
@@ -34,10 +38,13 @@ private:
        static const QColor LineColour;
        static const QColor FillColour;
        static const QColor HighlightColour;
+       static const QColor TextColour;
 
        static const int Size;
        static const int Offset;
 
+       static const int ArrowSize;
+
 public:
        /**
         * Constructor.
@@ -60,9 +67,17 @@ public:
         * @param rect The rectangle of the ruler client area.
         */
        void paint_label(QPainter &p, const QRect &rect);
+
+private:
+       void compute_text_size(QPainter &p);
+
+       void format_text(char *text);
+
+private:
+       QSizeF _text_size;
 };
 
 } // namespace view
 } // namespace pv
 
-#endif // PULSEVIEW_PV_VIEW_CURSOR_H
\ No newline at end of file
+#endif // PULSEVIEW_PV_VIEW_CURSOR_H