-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstant.h
More file actions
45 lines (38 loc) · 781 Bytes
/
constant.h
File metadata and controls
45 lines (38 loc) · 781 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
#ifndef _CONSTANT_H_
#define _CONSTANT_H_
/*
** -- Qt Classes --
*/
class QPoint;
class QCanvas;
class QCanvasLine;
class QCanvasText;
class QCanvasEllipse;
class QCanvasPolygon;
/*
** -- Local Includes --
*/
#include <types.h>
#include <object.h>
class constant: public object
{
public:
constant(const int, const int, QCanvas *, const int, editor *,
const int = -1, const int = 0);
~constant();
QCanvasPolygon *getPolygon(void);
int getValue(void);
bool move(const int, const int);
void move(const QPoint &, const bool = true);
private:
void updateValue(void);
editor *edit_container;
QCanvas *canvas;
QCanvasLine *lines[4];
QCanvasText *text;
QCanvasText *value;
QCanvasEllipse *dot1;
QCanvasEllipse *dot2;
QCanvasPolygon *p;
};
#endif