X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fviewport.h;h=e2517fa776156f1ef28e6c80e04914658855ba75;hb=397c9541a50d9fe88a9877d58e1d149df31eee04;hp=46bf273358e769b2112dc913569bedce82f32f5f;hpb=cdf7bea7f0eead18de2616cbfd8697ac0fffb59b;p=pulseview.git diff --git a/pv/view/viewport.h b/pv/view/viewport.h index 46bf273..e2517fa 100644 --- a/pv/view/viewport.h +++ b/pv/view/viewport.h @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the PulseView project. * * Copyright (C) 2012 Joel Holdsworth * @@ -21,8 +21,8 @@ #ifndef PV_VIEW_VIEWPORT_H #define PV_VIEW_VIEWPORT_H -#include #include +#include class QPainter; class QPaintEvent; @@ -33,29 +33,16 @@ namespace view { class View; -class Viewport : public QGLWidget +class Viewport : public QWidget { Q_OBJECT -private: - static const int SignalHeight; - - static const int MinorTickSubdivision; - static const int ScaleUnits[3]; - - static const QString SIPrefixes[9]; - static const int FirstSIPrefixPower; - public: explicit Viewport(View &parent); int get_total_height() const; protected: - void initializeGL(); - - void resizeGL(int width, int height); - void paintEvent(QPaintEvent *event); private: @@ -64,11 +51,6 @@ private: void mouseReleaseEvent(QMouseEvent *event); void wheelEvent(QWheelEvent *event); -private: - void setup_viewport(int width, int height); - - void paint_ruler(QPainter &p); - private: View &_view;