-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreatediagramform.h
More file actions
60 lines (44 loc) · 1.14 KB
/
creatediagramform.h
File metadata and controls
60 lines (44 loc) · 1.14 KB
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
#ifndef CREATEDIAGRAMFORM_H
#define CREATEDIAGRAMFORM_H
#include "Scene.h"
#include "diagram.h"
#include "inputdialog.h"
#include "inputifdialog.h"
#include <QWidget>
#include <shapes/shape.h>
#include <shapes/arrow.h>
namespace Ui {
class CreateDiagramForm;
}
class CreateDiagramForm : public QWidget
{
Q_OBJECT
public:
explicit CreateDiagramForm(QWidget *parent = 0);
QList<Arrow*> arrows;
~CreateDiagramForm();
private slots:
void on_blockButton_clicked();
void on_ifBlockButton_clicked();
void on_endBlockButton_clicked();
void on_barButton_clicked();
void on_startBlockButton_clicked();
void on_clearSceneButton_clicked();
void addArrow(Shape *to);
void setArrowFrom(Shape *from);
void repain();
Shape* recur(Shape* s);
Shape* returnStartBlock();
void initDiargamOnScene(Diagram<Shape>*);
void clearArrows();
void on_saveButton_clicked();
void on_loadButton_clicked();
private:
Scene *myScene;
int sceneCenterX;
int sceneCenterY;
Shape *arrowFrom = NULL;
Diagram<Shape> *shapeContainer;
Ui::CreateDiagramForm *ui;
};
#endif // CREATEDIAGRAMFORM_H