-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodelview.h
45 lines (39 loc) · 1 KB
/
modelview.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
// Copyright 2015 Klimov Viktor, https://github.com/Vitek1425/
#ifndef MODELVIEW_H
#define MODELVIEW_H
#include <QGraphicsView>
class SceneSystem;
class Device;
class Joint;
class OutputStream;
class InputStream;
class QueueSystem;
class ModelView : public QGraphicsView
{
Q_OBJECT
public:
ModelView(QWidget * parent = 0);
SceneSystem *scene() const;
protected:
virtual void mousePressEvent(QMouseEvent *);
public slots:
void addOutputStream();
void addSIRO();
void addLIFO();
void addFIFO();
void addDevice();
void addInputStream();
private slots:
void updateActions();
void createActionJoint(Joint *joint);
void createActionDevice(Device *device);
void createActionQueue(QueueSystem *queue);
void createActionOutputStream(OutputStream *stream);
void createActionInputStream(InputStream *stream);
void createActionProperties();
void openDialogProperties();
private:
SceneSystem *m_scene;
QPoint m_pointLastClick;
};
#endif // MODELVIEW_H