summaryrefslogtreecommitdiffstats
path: root/kolf/object.h
blob: 74464bb6dce4981095abd50697d43c216a56baff (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
  TQ_OBJECT

public:
	Object(TQObject *tqparent = 0, const char *name = 0) : TQObject(tqparent, 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