]> git.sesse.net Git - kdenlive/blob - src/videoglwidget.h
Use const'ref
[kdenlive] / src / videoglwidget.h
1
2 #ifndef VIDEOGLWIDGET_H
3 #define VIDEOGLWIDGET_H
4
5 #include <QGLWidget>
6
7 class VideoGLWidget : public QGLWidget
8 {
9     Q_OBJECT
10
11 public:
12     explicit VideoGLWidget(QWidget *parent = 0);
13     ~VideoGLWidget();
14     void activateMonitor();
15     QSize minimumSizeHint() const;
16     QSize sizeHint() const;
17     void setImageAspectRatio(double ratio);
18     void setBackgroundColor(const QColor &color) {
19         m_backgroundColor = color;
20     }
21
22 private:
23     int x, y, w, h;
24     int m_image_width, m_image_height;
25     GLuint m_texture;
26     double m_display_ratio;
27     QColor m_backgroundColor;
28     Qt::WindowFlags m_baseFlags;
29
30 public slots:
31     void showImage(const QImage image);
32
33 protected:
34     void initializeGL();
35     void resizeGL(int width, int height);
36     void resizeEvent(QResizeEvent* event);
37     void paintGL();
38     void mouseDoubleClickEvent(QMouseEvent * event);
39 };
40
41 #endif