-
Notifications
You must be signed in to change notification settings - Fork 0
/
settingsdialog.h
71 lines (55 loc) · 1.66 KB
/
settingsdialog.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
64
65
66
67
68
69
70
71
#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H
#include "defines.h"
#include <QDialog>
#include <QAbstractButton>
#define SETTINGS_FILE "settings.conf"
#define SETTINGS_DEFAULT_FILE "settings.default"
extern "C" {
#include "./OpenAL/openal_wrapper.h"
#include "./SPTK.h"
}
namespace Ui {
class SettingsDialog;
}
typedef struct _MathGLSettings
{
int quality;
bool autoOpen;
} MathGLSettings;
class DatabaseManager;
class SettingsDialog : public QDialog
{
Q_OBJECT
public:
~SettingsDialog();
static SettingsDialog * getInstance(QWidget *parent = 0);
private:
void loadSettingsFrom(QString);
explicit SettingsDialog(QWidget *parent = 0);
Ui::SettingsDialog *ui;
void initAudio();
void initUI();
oal_devices_list *inputDevices, *outputDevices;
oal_device *currentInputDevice, *currentOutputDevice;
DatabaseManager * databaseManager;
public:
void loadSettings();
oal_device * getInputDevice();
oal_device * getOutputDevice();
static SPTK_SETTINGS * getSPTKsettings(bool force = false);
static MathGLSettings * getMathGLSettings();
private slots:
void buttons(QAbstractButton*);
void inputDeviceChanged(int);
void outputDeviceChanged(int);
void saveSettings();
void setDefaultSettings();
void on_showPlane_stateChanged(int arg1);
void on_showF0_stateChanged(int arg1);
void on_showDerivativeF0_stateChanged(int arg1);
void on_markoutType_currentIndexChanged(int index);
void on_checkBox_8_stateChanged(int arg1);
void on_autoMarking_stateChanged(int arg1);
};
#endif // SETTINGSDIALOG_H