summaryrefslogtreecommitdiff
path: root/dgedit/mainwindow.h
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-04-02 20:36:57 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-04-02 20:36:57 +0200
commit60aaa8343c04908da31f031781ca16c01ab51049 (patch)
treebee411546e87c4185d63f446f91a88f6f136528e /dgedit/mainwindow.h
parenta50452f0159d882348a8456cf50d72b758355332 (diff)
Added presets of slider values.
Diffstat (limited to 'dgedit/mainwindow.h')
-rw-r--r--dgedit/mainwindow.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/dgedit/mainwindow.h b/dgedit/mainwindow.h
index f6fff27..c358d3c 100644
--- a/dgedit/mainwindow.h
+++ b/dgedit/mainwindow.h
@@ -29,11 +29,22 @@
#include <QMainWindow>
#include <QScrollBar>
+#include <QComboBox>
+#include <QSlider>
#include "canvas.h"
#include "audioextractor.h"
#include "samplesorter.h"
#include "filelist.h"
+#include "canvastoolselections.h"
+
+class Preset {
+public:
+ int attacklength;
+ int falloff;
+ int fadelength;
+};
+Q_DECLARE_METATYPE(Preset)
class MainWindow : public QMainWindow {
Q_OBJECT
@@ -47,6 +58,7 @@ public slots:
void setYOffset(int);
void doExport();
void loadFile(QString filename);
+ void setPreset(int);
protected:
void closeEvent(QCloseEvent*);
@@ -57,12 +69,17 @@ private:
SampleSorter *sorter;
Canvas *canvas;
+ CanvasToolSelections *selections;
AudioExtractor *extractor;
FileList *filelist;
QScrollBar *yoffset;
QScrollBar *yscale;
QScrollBar *xscale;
QScrollBar *xoffset;
+ QComboBox *presets;
+ QSlider *slider_attacklength;
+ QSlider *slider_falloff;
+ QSlider *slider_fadelength;
};
#endif/*__DRUMGIZMO_MAINWINDOW_H__*/