blob: 57d60b40bf6ba44bab56ed1c2de9cebf1da77335 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef QTRGBWAVEFORMWIDGET_H
#define QTRGBWAVEFORMWIDGET_H
#include <QGLWidget>
#include "waveformwidgetabstract.h"
class QtRGBWaveformWidget : public QGLWidget, public WaveformWidgetAbstract {
Q_OBJECT
public:
virtual ~QtRGBWaveformWidget();
virtual WaveformWidgetType::Type getType() const { return WaveformWidgetType::QtRGBWaveform; }
static inline QString getWaveformWidgetName() { return tr("RGB") + " - Qt"; }
static inline bool useOpenGl() { return true; }
static inline bool useOpenGles() { return true; }
static inline bool useOpenGLShaders() { return false; }
static inline bool developerOnly() { return false; }
protected:
virtual void castToQWidget();
virtual void paintEvent(QPaintEvent* event);
virtual mixxx::Duration render();
private:
QtRGBWaveformWidget(const QString& group, QWidget* parent);
friend class WaveformWidgetFactory;
};
#endif // QTRGBWAVEFORMWIDGET_H
|