-
Notifications
You must be signed in to change notification settings - Fork 4
/
mainwindow.h
49 lines (38 loc) · 1013 Bytes
/
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "iniedit.h"
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class QComboBox;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void setAdvanced(bool isAdvanced);
void setInputName(QString s);
private slots:
void on_btnAdvancedToggle_clicked();
void on_tbtnInputGcode_clicked();
void on_tbMachineEditor_clicked();
void on_btnTranslate_clicked();
void on_about();
void on_btnDefaults_clicked();
void on_btnReload_clicked();
void on_btnSave_clicked();
void on_action_Updates_triggered();
private:
Ui::MainWindow *ui;
int heightCollapsed;
IniEditor ie;
QString sSectionCur;
bool chooseInputFile();
void refreshFromIni();
void saveToIni();
void populateMachineType(QComboBox &combo);
static bool iniEditorParserCallback(void *user, QString &sSection, Line &line);
};
#endif // MAINWINDOW_H