summaryrefslogtreecommitdiffstats
path: root/kolf/object.h
blob: 7c6488651a2f9439d0efbd34b5db62f0986bde62 (plain)
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
// it seems that OBJECT_H is used by something else

#ifndef KOLF_OBJECT_H
#define KOLF_OBJECT_H

#include <tqcanvas.h>
#include <tqstring.h>
#include <tqobject.h>

class Object : public TQObject
{
	Q_OBJECT
  

public:
	Object(TQObject *parent = 0, const char *name = 0) : TQObject(parent, name) { m_addOnNewHole = false; }
	virtual TQCanvasItem *newObject(TQCanvas * /*canvas*/) { return 0; }
	TQString name() { return m_name; }
	TQString _name() { return m__name; }
	TQString author() { return m_author; }
	bool addOnNewHole() { return m_addOnNewHole; }

protected:
	TQString m_name;
	TQString m__name;
	TQString m_author;
	bool m_addOnNewHole;
};
typedef TQPtrList<Object> ObjectList;

#endif