-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
executable file
·45 lines (37 loc) · 996 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QString>
#include <memory>
#include "sfcodec.h"
#include "sftreenode.h"
namespace Ui {
class MainWindow;
}
/**
* @brief The MainWindow class handles the UI. It shows contents and reacts to input
*/
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_inputField_textChanged();
void on_stepButton_clicked();
void on_prevStepButton_clicked();
void on_autoStepCheck_clicked();
void on_smallStepCheck_clicked();
private:
Ui::MainWindow *ui;
std::unique_ptr<SFCodec> codec;
QString textBuffer; //for some reason the SIGNAL textChanged is emitted multiple time. textBuffer is needed for a workaround
std::shared_ptr<SFTreeNode> codeTree;
void updateTable();
void updateTreeView();
void updateCode();
void updateBin();
void updateStatus();
};
#endif // MAINWINDOW_H