-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhpglgraphicsview.h
More file actions
52 lines (42 loc) · 1009 Bytes
/
hpglgraphicsview.h
File metadata and controls
52 lines (42 loc) · 1009 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
50
51
52
/**
* HPGL Graphics View - header
* Christopher Bero <bigbero@gmail.com>
*/
#ifndef HPGLGRAPHICSVIEW_H
#define HPGLGRAPHICSVIEW_H
#include <QtCore>
#include <QApplication>
#include <QGraphicsView>
#include <QMouseEvent>
#include <QTransform>
#include <QGraphicsItem>
#include <QGraphicsItemGroup>
#include "settings.h"
namespace std {
class hpglGraphicsView;
}
class hpglGraphicsView : public QGraphicsView
{
Q_OBJECT
public:
using QGraphicsView::QGraphicsView;
signals:
void mouseReleased();
void statusUpdate(QString text, QColor textColor);
void zoomUpdate(QString text);
public slots:
void setGrid();
void zoomActual();
void zoomSceneRect();
void zoomGraphicsItems();
void zoomSelectedItems();
void zoomDelta(int delta);
void zoomOut();
void zoomIn();
protected:
void mouseReleaseEvent(QMouseEvent *event);
void wheelEvent(QWheelEvent *event);
private:
void statusUpdate(QString _consoleStatus);
};
#endif // HPGLGRAPHICSVIEW_H