-
-
Notifications
You must be signed in to change notification settings - Fork 902
Expand file tree
/
Copy pathMainWindow.h
More file actions
49 lines (39 loc) · 974 Bytes
/
MainWindow.h
File metadata and controls
49 lines (39 loc) · 974 Bytes
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 <QObject>
#include <QMainWindow>
#include <QString>
#include <QAction>
#include <QOpenGLWidget>
#include <QPlainTextEdit>
#include <string>
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(qreal dpiScale, QWidget *parent = nullptr);
signals:
void loadFileInViewerWidget(const std::string& filePath);
public slots:
void openFile();
void appendToOutputText(const QString& message);
private:
void createActions();
void createMenus();
void createConnections();
private:
qreal m_dpiScale;
QMenu *fileMenu;
QAction *openAction;
QAction *quitAction;
QMenu *viewMenu;
QAction *m_nativeAction;
QAction *m_glAction;
QAction *m_imageAction;
QAction *m_highQualityAntialiasingAction;
QAction *m_backgroundAction;
QAction *m_outlineAction;
QOpenGLWidget *m_glWidget;
QPlainTextEdit *m_outputText;
};
#endif // MAINWINDOW_H