summaryrefslogtreecommitdiffstats
path: root/kolf/object.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitc90c389a8a8d9d8661e9772ec4144c5cf2039f23 (patch)
tree6d8391395bce9eaea4ad78958617edb20c6a7573 /kolf/object.h
downloadtdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.tar.gz
tdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolf/object.h')
-rw-r--r--kolf/object.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/kolf/object.h b/kolf/object.h
new file mode 100644
index 00000000..a2bf2ef1
--- /dev/null
+++ b/kolf/object.h
@@ -0,0 +1,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