summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/miscui.h
diff options
context:
space:
mode:
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