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