X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=sigview.h;h=3630d17e572cfe074a893d7463370d0af4148a3e;hp=d66898f4c0981b8f2a933cc425402e1251570fc5;hb=a8d3fb2df629023bb80b60cefb35c90b859206f8;hpb=1dd95c70180967864bd83d9679f3e9a6c2a4e383 diff --git a/sigview.h b/sigview.h index d66898f4..3630d17e 100644 --- a/sigview.h +++ b/sigview.h @@ -33,6 +33,9 @@ class SigView : public QGLWidget Q_OBJECT private: + static const double MaxScale; + static const double MinScale; + static const int SignalHeight; static const int LabelMarginWidth; static const int RulerHeight; @@ -46,6 +49,8 @@ private: public: explicit SigView(SigSession &session, QWidget *parent = 0); + void zoom(double steps); + protected: void initializeGL(); @@ -61,12 +66,14 @@ private: void wheelEvent(QWheelEvent *event); private: - void setupViewport(int width, int height); + void setup_viewport(int width, int height); + + void paint_ruler(QPainter &p); - void paintRuler(QPainter &p); + void zoom(double steps, int offset); private slots: - void dataUpdated(); + void data_updated(); private: SigSession &_session;