Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[0f6817]: kwave / faderwidget.h Maximize Restore History

Download this file

faderwidget.h    61 lines (46 with data), 1.0 kB

 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
#ifndef _FADERDIALOG_H_
#define _FADERDIALOG_H_ 1
#include <qpushbt.h>
#include <qstring.h>
#include <qwidget.h>
#include <qdialog.h>
#include "slider.h"
#include "scale.h"
class FaderWidget : public QWidget
{
Q_OBJECT
public:
FaderWidget (QWidget *parent=0,int dir=1);
~FaderWidget ();
int getCurve ();
public slots:
void setCurve (int);
signals:
protected:
void paintEvent(QPaintEvent *);
void drawInterpolatedFFT ();
private:
int dir;
int curve;
int width,height; //of widget
};
//***********************************************************************
class FadeDialog : public QDialog
{
Q_OBJECT
public:
FadeDialog (QWidget *parent=0,int dir=1,int ms=100);
~FadeDialog ();
int getCurve ();
public slots:
protected:
void resizeEvent (QResizeEvent *);
private:
ScaleWidget *x,*y;
CornerPatchWidget *corner;
QPushButton *ok,*cancel;
KwaveSlider *slider;
FaderWidget *fade;
};
//*****************************************************************************
#endif