-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
67 lines (55 loc) · 1.15 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QMainWindow>
#include <QObject>
#include <QWidget>
#include <QPainter>
#include <QtWidgets>
#include <QtCore>
#include <QWheelEvent>
//#include "view.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
class QGraphicsView;
class QGraphicsItem;
class QPixmap;
////class QMdiArea;
////class QMdiSubWindow;
////class MDI_View;
QT_END_NAMESPACE
//class MdiChild;
//QT_BEGIN_NAMESPACE
//class QAction;
//class QMenu;
//class QMdiArea;
//class QMdiSubWindow;
//QT_END_NAMESPACE
const short XYPLANE = 1;
const short XZPLANE = 2;
const short YZPLANE = 3;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow();
//MainWindow(const short plane);
~MainWindow();
void SetPlane(const short plane);
void ShowSlice(size_t slice);
private:
Ui::MainWindow *ui;
QGraphicsView *viewArea;
//QMdiArea *mdiArea;
//MDI_View *XY;
// MDI_View *XZ;
//MDI_View *YZ;
short m_plane;
bool isUntitled;
QGraphicsView *view;
QGraphicsScene *scene;
QPixmap image;
private slots:
//MDI_View *createMdiChild();
};
#endif // MAINWINDOW_H