blob: da946fedfedd2e292c45b8d0370371792446f57e (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#ifndef GLWAVEFORMWIDGETSHADER_H
#define GLWAVEFORMWIDGETSHADER_H
#include <QGLWidget>
#include "waveformwidgetabstract.h"
class GLSLWaveformRendererSignal;
class GLSLWaveformWidget : public QGLWidget, public WaveformWidgetAbstract {
Q_OBJECT
public:
GLSLWaveformWidget(
const QString& group,
QWidget* parent,
bool rgbRenderer);
~GLSLWaveformWidget() override;
void resize(int width, int height) override;
protected:
void castToQWidget() override;
void paintEvent(QPaintEvent* event) override;
void mouseDoubleClickEvent(QMouseEvent *) override;
mixxx::Duration render() override;
private:
GLSLWaveformRendererSignal* m_signalRenderer;
friend class WaveformWidgetFactory;
};
class GLSLFilteredWaveformWidget : public GLSLWaveformWidget {
Q_OBJECT
public:
GLSLFilteredWaveformWidget(const QString& group, QWidget* parent);
~GLSLFilteredWaveformWidget() override = default;
WaveformWidgetType::Type getType() const override { return WaveformWidgetType::GLSLFilteredWaveform; }
static inline QString getWaveformWidgetName() { return tr("Filtered"); }
static inline bool useOpenGl() { return true; }
static inline bool useOpenGles() { return false; }
static inline bool useOpenGLShaders() { return true; }
static inline bool developerOnly() { return false; }
};
class GLSLRGBWaveformWidget : public GLSLWaveformWidget {
Q_OBJECT
public:
GLSLRGBWaveformWidget(const QString& group, QWidget* parent);
~GLSLRGBWaveformWidget() override = default;
WaveformWidgetType::Type getType() const override { return WaveformWidgetType::GLSLRGBWaveform; }
static inline QString getWaveformWidgetName() { return tr("RGB"); }
static inline bool useOpenGl() { return true; }
static inline bool useOpenGles() { return false; }
static inline bool useOpenGLShaders() { return true; }
static inline bool developerOnly() { return false; }
};
#endif // GLWAVEFORMWIDGETSHADER_H
|