-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathview.h
42 lines (34 loc) · 797 Bytes
/
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
#ifndef VIEW_H
#define VIEW_H
#include <QtWidgets/QFrame>
class QLabel;
class QSlider;
class QToolButton;
class QQuickWidget;
class QQmlEngine;
class View : public QFrame
{
Q_OBJECT
public:
View(const QString &name, QQmlEngine *engine, QWidget *parent = nullptr);
public slots:
void zoomIn(int level = 1);
void zoomOut(int level = 1);
private slots:
void resetView();
void setResetButtonEnabled();
void setupMatrix();
void togglePointerMode();
void rotateLeft();
void rotateRight();
private:
QQuickWidget *m_quickWidget;
QLabel *m_label1;
QLabel *m_label2;
QToolButton *m_selectModeButton;
QToolButton *m_dragModeButton;
QToolButton *m_resetButton;
QSlider *m_zoomSlider;
QSlider *m_rotateSlider;
};
#endif // VIEW_H