summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/wizard.h
diff options
context:
space:
mode:
Diffstat (limited to 'libksirtet/lib/wizard.h')
-rw-r--r--libksirtet/lib/wizard.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/libksirtet/lib/wizard.h b/libksirtet/lib/wizard.h
new file mode 100644
index 00000000..29287508
--- /dev/null
+++ b/libksirtet/lib/wizard.h
@@ -0,0 +1,57 @@
+#ifndef WIZARD_H
+#define WIZARD_H
+
+#include <qlabel.h>
+#include <qlineedit.h>
+#include <qvbox.h>
+#include <qvgroupbox.h>
+#include <qpushbutton.h>
+
+#include <knuminput.h>
+#include <kconfig.h>
+#include <kwizard.h>
+
+#include "pline.h"
+#include "mp_interface.h"
+
+class ConnectionData;
+
+class MPWizard : public KWizard
+{
+ Q_OBJECT
+
+ public:
+ MPWizard(const MPGameInfo &gi, ConnectionData &cd,
+ QWidget *parent = 0, const char *name = 0);
+
+ void showPage(QWidget *page);
+
+ signals:
+ void configureKeys(uint);
+
+ protected slots:
+ void accept();
+
+ private slots:
+ void typeChanged(int t);
+ void lineTypeChanged(int);
+ void configureKeysSlot();
+
+ private:
+ ConnectionData &cd;
+ enum Type { Local, Server, Client };
+ Type type;
+ QVBox *typePage, *localPage;
+ WidgetList<PlayerLine> *wl;
+ QLabel *lserver;
+ QLineEdit *eserver;
+ KIntNumInput *eport;
+ QVGroupBox *net;
+// QPushButton *keys;
+
+ void setupTypePage();
+ void setupLocalPage(const MPGameInfo &gi);
+ QString name(uint i) const;
+};
+
+#endif // WIZARD_H