summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/miscui.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 /libksirtet/lib/miscui.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 'libksirtet/lib/miscui.h')
-rw-r--r--libksirtet/lib/miscui.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/libksirtet/lib/miscui.h b/libksirtet/lib/miscui.h
new file mode 100644
index 00000000..7de5dfbc
--- /dev/null
+++ b/libksirtet/lib/miscui.h
@@ -0,0 +1,43 @@
+#ifndef MISCUI_H
+#define MISCUI_H
+
+#include <qcombobox.h>
+#include <qcheckbox.h>
+
+
+//-----------------------------------------------------------------------------
+class MeetingCheckBox : public QWidget
+{
+ Q_OBJECT
+ public:
+ enum Type { Ready, NotReady, Excluded };
+ MeetingCheckBox(Type, bool owner, bool server, QWidget *parent);
+
+ void setType(Type);
+ Type type() const;
+
+ signals:
+ void changed(int);
+
+ private slots:
+ void changedSlot();
+
+ private:
+ QCheckBox *_ready, *_excluded;
+};
+
+//-----------------------------------------------------------------------------
+class PlayerComboBox : public QComboBox
+{
+ Q_OBJECT
+ public:
+ enum Type { Human = 0, AI, None };
+ PlayerComboBox(Type, bool canBeNone, bool acceptAI, QWidget *parent);
+
+ Type type() const { return (Type)currentItem(); }
+
+ signals:
+ void changed(int);
+};
+
+#endif // MISCUI_H