-
Notifications
You must be signed in to change notification settings - Fork 1
/
gui.h
63 lines (54 loc) · 1.38 KB
/
gui.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
#ifndef GUI_H
#define GUI_H
#include <QObject>
#include <QtCore>
#include <QtWidgets>
#include "openglwidget.h"
QT_BEGIN_NAMESPACE
class OpenGLWidget;
class Gui: public QObject
{
Q_OBJECT
public slots:
void undo();
void redo();
void select();
void rotate();
void drawLine();
void dlt();
void pan();
public:
Gui(QMainWindow *MainWindow);
OpenGLWidget * getOpenGLWidget() const;
void setLineEditText(const QString &);
QString getLineEditText() const;
void appendTextToLineEdit(const QString &);
void deleteLastCharOfLineEdit();
void setLineLabelText(const QString &);
void setUndo(bool);
void setRedo(bool);
void setDelete(bool);
private:
QAction *action_undo;
QAction *action_redo;
QAction *action_select;
// QAction *action_rotate;
QAction *action_line;
QAction *action_delete;
QAction *action_pan;
QWidget *central_widget;
QWidget *footer_widget;
OpenGLWidget *opengl_widget;
QVBoxLayout *central_widget_vertical_layout;
QLabel *line_label;
QLineEdit *line_edit;
QMenuBar *menu_bar;
QToolBar *tool_bar;
void createActions(QMainWindow *MainWindow);
void createToolBar(QMainWindow *MainWindow);
void createCentralWidget(QMainWindow *MainWindow);
void createOpenGLWidget();
void createFooter();
void createMenu(QMainWindow *MainWindow);
};
#endif // GUI_H