summaryrefslogtreecommitdiff
path: root/dgedit/mainwindow.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-04-02 21:13:52 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-04-02 21:13:52 +0200
commit0aef6f2f81bdb6f78fc04e090aa60b5146326765 (patch)
tree4ccebf2382bd0a990c97da38b1bad2bb2a3cfd00 /dgedit/mainwindow.h
parent644c3996fe91f35bcdc84e0c3bb4f906be740bae (diff)
parentd8053dd8e6d38165d9ac6a689081bc4a753ff7ad (diff)
Merge with head
Diffstat (limited to 'dgedit/mainwindow.h')
-rw-r--r--dgedit/mainwindow.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/dgedit/mainwindow.h b/dgedit/mainwindow.h
index 886f9cb..c7ce3fb 100644
--- a/dgedit/mainwindow.h
+++ b/dgedit/mainwindow.h
@@ -29,11 +29,24 @@
#include <QMainWindow>
#include <QScrollBar>
+#include <QComboBox>
+#include <QSlider>
+#include <QLineEdit>
#include "canvas.h"
#include "audioextractor.h"
#include "samplesorter.h"
#include "filelist.h"
+#include "canvastoolselections.h"
+
+class Preset {
+public:
+ QString prefix;
+ int attacklength;
+ int falloff;
+ int fadelength;
+};
+Q_DECLARE_METATYPE(Preset)
class MainWindow : public QMainWindow {
Q_OBJECT
@@ -48,6 +61,7 @@ public slots:
void doExport();
void loadFile(QString filename);
void playSamples();
+ void setPreset(int);
protected:
void closeEvent(QCloseEvent*);
@@ -58,6 +72,7 @@ private:
SampleSorter *sorter;
Canvas *canvas;
+ CanvasToolSelections *selections;
AudioExtractor *extractor;
FileList *filelist;
QScrollBar *yoffset;
@@ -65,6 +80,11 @@ private:
QScrollBar *xscale;
QScrollBar *xoffset;
QScrollBar *sb_playsamples;
+ QComboBox *presets;
+ QSlider *slider_attacklength;
+ QSlider *slider_falloff;
+ QSlider *slider_fadelength;
+ QLineEdit *prefix;
};
#endif/*__DRUMGIZMO_MAINWINDOW_H__*/