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

#ifndef KOLF_OBJECT_H
#define KOLF_OBJECT_H

#include <qcanvas.h>
#include <qstring.h>
#include <qobject.h>

class Object : public QObject
{
	Q_OBJECT

public:
	Object(QObject *parent = 0, const char *name = 0) : QObject(parent, name) { m_addOnNewHole = false; }
	virtual QCanvasItem *newObject(QCanvas * /*canvas*/) { return 0; }
	QString name() { return m_name; }
	QString _name() { return m__name; }
	QString author() { return m_author; }
	bool addOnNewHole() { return m_addOnNewHole; }

protected:
	QString m_name;
	QString m__name;
	QString m_author;
	bool m_addOnNewHole;
};
typedef QPtrList<Object> ObjectList;

#endif