-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.hh
49 lines (35 loc) · 909 Bytes
/
mainwindow.hh
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_HH
#define MAINWINDOW_HH
#include "mainprogram.hh"
#include <QMainWindow>
#include <QGraphicsScene>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
void update_view();
void output_text(std::ostringstream &output);
void output_text_end();
bool check_stop_pressed() const;
public slots:
void execute_line();
void cmd_selected(int idx);
void number_selected(const QString &number);
void select_file();
void clear_input_line();
void fit_view();
void scene_selection_change();
void clear_selection();
private:
Ui::MainWindow *ui = nullptr;
QGraphicsScene* gscene_ = nullptr;
MainProgram mainprg_;
bool stop_pressed_ = false;
bool selection_clear_in_progress = false;
};
#endif // MAINWINDOW_HH