-
Notifications
You must be signed in to change notification settings - Fork 0
/
configaudiofile.h
63 lines (46 loc) · 1.21 KB
/
configaudiofile.h
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
61
62
63
#ifndef CONFIGAUDIOFILE_H
#define CONFIGAUDIOFILE_H
#include <QString>
#include <QtXml>
#include <QStandardPaths>
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QtGui>
#include <QWidget>
class loopAudio{
public:
loopAudio();
~loopAudio();
bool currSelected;
QString loopName;
double beginLoop;
double endLoop;
int tempo;
int semiTones;
int nbLoop;
};
class configAudioFile : public QWidget
{
public:
configAudioFile();
~configAudioFile();
void loadConfig(QString fileName);
void saveConfig();
void setSelected(int i );
int selected();
QString fileName;
QString configFileName;
QList<loopAudio> loopsAudioList;
private:
void saveDom();
bool getDomAudioFile( QString fileName, QDomElement* domReturn );
bool createDefaultConfigFile( QString configFilename );
void getQDomAudioFile( QString fileName );
void createLoopXML( QString fileName, loopAudio loopCfg );
// void createLoopXML( QString fileName, QString name,double beginLoop, double endLoop, int tempo, int semitone, int nbLoop );
void createAudioFileXML( QString fileName );
QString pathData;
QDomDocument *dom;
};
#endif // CONFIGAUDIOFILE_H