Initial work moving ruler into the pv::view::Ruler widget
[pulseview.git] / pv / view / view.h
index 3c76c8ee6bd065364d679c7727f00f2c83908fee..d7fc635697aebf2c95b8f449e7b7b68b2e52ee58 100644 (file)
@@ -30,6 +30,8 @@ class SigSession;
 namespace pv {
 namespace view {
 
+class Header;
+class Ruler;
 class Viewport;
 
 class View : public QAbstractScrollArea {
@@ -42,9 +44,14 @@ private:
        static const int LabelMarginWidth;
        static const int RulerHeight;
 
+public:
+       static const int SignalHeight;
+
 public:
        explicit View(SigSession &session, QWidget *parent = 0);
 
+       SigSession& session();
+
        double scale() const;
        double offset() const;
        int v_offset() const;
@@ -73,6 +80,8 @@ private:
        SigSession &_session;
 
        Viewport *_viewport;
+       Ruler *_ruler;
+       Header *_header;
 
        uint64_t _data_length;