-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgate.h
More file actions
46 lines (39 loc) · 773 Bytes
/
gate.h
File metadata and controls
46 lines (39 loc) · 773 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
#ifndef _GATE_H_
#define _GATE_H_
/*
** -- Qt Classes --
*/
class QPoint;
class QCanvas;
class QCanvasLine;
class QCanvasText;
class QCanvasEllipse;
class QCanvasPolygon;
/*
** -- Local Includes --
*/
#include <types.h>
#include <object.h>
class gate: public object
{
public:
gate(const int, const int, const char *, QCanvas *, const int,
const char *, const int = -1);
~gate();
QCanvasPolygon *getPolygon(void);
bool move(const int, const int);
char *getSymbol(void);
void move(const QPoint &, const bool = true);
private:
char symbol[16];
object *conn1;
object *conn2;
QCanvas *canvas;
QCanvasLine *lines[3];
QCanvasText *text;
QCanvasEllipse *dot1;
QCanvasEllipse *dot2;
QCanvasEllipse *dot3;
QCanvasPolygon *p;
};
#endif