summaryrefslogtreecommitdiff
path: root/dgedit/audioextractor.h
diff options
context:
space:
mode:
authordeva <deva>2009-12-02 08:19:01 +0000
committerdeva <deva>2009-12-02 08:19:01 +0000
commitca1da8e0d448a47704a22685248ee7b44f2c7bec (patch)
tree7c12ab5acdd6c033df7073f903d559f9c6904015 /dgedit/audioextractor.h
parent22db10eed86c90d05ed19446afd0fc007bec0d66 (diff)
Fixed renaming in extractor.
Diffstat (limited to 'dgedit/audioextractor.h')
-rw-r--r--dgedit/audioextractor.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/dgedit/audioextractor.h b/dgedit/audioextractor.h
index 75d3553..39f0353 100644
--- a/dgedit/audioextractor.h
+++ b/dgedit/audioextractor.h
@@ -28,12 +28,14 @@
#define __DRUMGIZMO_AUDIOEXTRACTOR_H__
#include <QObject>
-#include <QVector>
-#include <QPair>
+#include <QSet>
+#include <QLinkedList>
#include <QString>
#include "selection.h"
+typedef QLinkedList< QPair<QString, QString> > AudioFileList;
+
class AudioExtractor : public QObject {
Q_OBJECT
public:
@@ -41,6 +43,7 @@ public:
public slots:
void addFile(QString file, QString name);
+ void changeName(QString file, QString name);
void removeFile(QString file, QString name);
void exportSelections(Selections selections);
void setExportPath(const QString &path);
@@ -49,7 +52,7 @@ public slots:
private:
float *load(QString file, size_t *size);
void exportSelection(QString name, int index, float *data, size_t size, Selection sel);
- QVector< QPair<QString, QString> > audiofiles;
+ AudioFileList audiofiles;
QString exportpath;
QString prefix;
};