-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainWindow.h
80 lines (65 loc) · 1.65 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Copyright (C) 2021 Piotr (Peter) Beben <[email protected]>
// See LICENSE included with this distribution.
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "constants.h"
#include <QMainWindow>
QT_BEGIN_NAMESPACE
class QAction;
class QMenu;
class QPlainTextEdit;
class QListWidget;
QT_END_NAMESPACE
class GLWidget;
class Window;
class MessageLogger;
class RandomSurfDialog;
class NormalsDialog;
class NoiseDialog;
class NoiseDialog;
class SmoothDialog;
class OptionsDialog;
class MainWindow : public QMainWindow
{
Q_OBJECT
typedef void* MeshPtr;
public:
explicit MainWindow(QWidget *parent = nullptr);
void badInputMessageBox(const QString& info);
private:
void open();
void saveAs();
void viewGLNorms(bool enabled);
void setRandom();
void approxNorms();
void noise();
void smooth();
void options();
void about();
public slots:
void appendLogText(const QString& text);
void insertLogText(const QString& text);
void replaceLogText(const QString& text);
signals:
void meshChanged(MeshPtr mesh);
void meshQueried(MeshPtr& mesh);
void meshNormsViewGL(bool enabled);
void meshSetRandom(size_t nDim);
void meshApproxNorms();
void meshNoise(int nSweeps);
void meshSmooth(int nSweeps);
void normScaleChanged(float scale);
private:
Window *centralWidget;
QToolBar *mainToolBar;
QStatusBar *statusBar;
QToolBar *toolBar;
QPlainTextEdit *logText;
RandomSurfDialog *randomSurfDialog;
NormalsDialog *normalsDialog;
NoiseDialog *noiseDialog;
SmoothDialog *smoothDialog;
OptionsDialog *optionsDialog;
MessageLogger *msgLogger;
};
#endif // MAINWINDOW_H