-
Notifications
You must be signed in to change notification settings - Fork 1
/
view.h
64 lines (56 loc) · 1.22 KB
/
view.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
#ifndef VIEW_H
#define VIEW_H
#include <QFrame>
#include <QtOpenGL>
#include <QBoxLayout>
#include <QBoxLayout>
#include <QScrollBar>
class MainWindow;
class MyGraphicsScene;
class QGraphicsView;
class QLabel;
class QSlider;
class QToolButton;
class QCheckBox;
class QLineEdit;
class View : public QFrame
{
Q_OBJECT
public:
View(QWidget* parent = 0);
MainWindow* window;
MyGraphicsScene* graphicsScene;
QGraphicsView* graphicsView;
QGraphicsView* view() const;
QToolButton* xAxisButton;
QToolButton* yAxisButton;
QCheckBox* xLogBox;
QCheckBox* yLogBox;
QLineEdit* xeLineEdit;
QLineEdit* xtLineEdit;
QLineEdit* yeLineEdit;
QLineEdit* ytLineEdit;
public slots:
void resetView();
void zoom25();
void zoom50();
void zoom100();
void zoom200();
void zoom400();
void zoomIn();
void zoomOut();
void rot90();
void rotminus90();
void rotateLeft();
void rotateRight();
void print();
private slots:
void setResetButtonEnabled();
void setupMatrix();
private:
QLabel* label;
QToolButton* resetButton;
QSlider* zoomSlider;
QSlider* rotateSlider;
};
#endif