~keithsalisbury/mixxx/mixxx

« back to all changes in this revision

Viewing changes to mixxx/src/waveform/widgets/glslwaveformwidget.h

  • Committer: Keith Salisbury
  • Date: 2012-05-06 13:44:20 UTC
  • mfrom: (2994.1.100 mixxx-trunk)
  • Revision ID: keithsalisbury@gmail.com-20120506134420-8k1dqq10aqmx0ecq
merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define GLWAVEFORMWIDGETSHADER_H
3
3
 
4
4
#include <QGLWidget>
 
5
 
5
6
#include "waveformwidgetabstract.h"
6
7
 
7
8
class GLSLWaveformRendererSignal;
8
9
 
9
 
class GLSLWaveformWidget : public WaveformWidgetAbstract, public QGLWidget
10
 
{
11
 
public:
12
 
    GLSLWaveformWidget( const char* group, QWidget* parent);
 
10
class GLSLWaveformWidget : public QGLWidget, public WaveformWidgetAbstract {
 
11
    Q_OBJECT
 
12
  public:
 
13
    GLSLWaveformWidget(const char* group, QWidget* parent);
13
14
    virtual ~GLSLWaveformWidget();
14
15
 
15
 
    virtual QString getWaveformWidgetName() { return tr("Filtered");}
 
16
    virtual QString getWaveformWidgetName() { return tr("Filtered (experimental)");}
16
17
    virtual WaveformWidgetType::Type getType() const { return WaveformWidgetType::GLWaveform;}
17
18
 
18
19
    virtual bool useOpenGl() const { return true;}
20
21
 
21
22
    virtual void resize( int width, int height);
22
23
 
23
 
protected:
 
24
  protected:
24
25
    virtual void castToQWidget();
25
26
    virtual void paintEvent(QPaintEvent* event);
26
27
    virtual void mouseDoubleClickEvent(QMouseEvent *);
27
28
 
28
 
private:
 
29
  private:
29
30
    GLSLWaveformRendererSignal* signalRenderer_;
30
31
 
31
 
private:
32
32
    GLSLWaveformWidget() {}
33
33
    friend class WaveformWidgetFactory;
34
34
};