This repository has been archived by the owner on Mar 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
74 lines (47 loc) · 1.86 KB
/
mainwindow.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
72
73
74
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <qcombobox.h>
#include "fmzipinfo.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
//Maps between the absolute path of a zip and the properties map of the same zip
QMap<QString, FMZipInfo> packets;
QMap<QString, FMZipInfo> driverModules;
QMap<QString, FMZipInfo> controlModules;
private slots:
void on_packetComboBox_activated(int index);
void on_driverComboBox_activated(int index);
void on_controlComboBox_activated(int index);
void on_actionLoad_Instruments_triggered();
void on_actionLoad_Driver_Modules_triggered();
void on_actionLoad_Control_Modules_triggered();
void on_addMelodicButton_clicked();
void on_addHarmonicButton_clicked();
void on_addSupportingButton_clicked();
void on_removeInstrumentButton_clicked();
void on_actionClear_Instruments_triggered();
void on_actionClear_Driver_Modules_triggered();
void on_actionClear_Control_Modules_triggered();
void on_actionExit_triggered();
void on_actionClear_Instrument_Hierarchy_triggered();
void on_composeButton_clicked();
private:
//load zips from a directory. Args are
//dir, name property name, combobox to load into, map between path and properties
void loadZips(QString, QString, QComboBox*, QMap<QString, FMZipInfo>&);
Ui::MainWindow *ui;
const QString packetPath = "./res/default_packets";
const QString driverModulePath = "./res/default_driver_modules";
const QString controlModulePath = "./res/default_control_modules";
};
QString execute(QString zipPath, QString mode, QString input);
extern MainWindow* mw;
#endif // MAINWINDOW_H