blob: 292875088d37e46a915ab0bdb44b3c1ab83a7b7f (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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
|