blob: 3de9f1b76179fb0f41fb5bc13bf6a4f0fe8a688f (
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
58
|
#ifndef WIZARD_H
#define WIZARD_H
#include <tqlabel.h>
#include <tqlineedit.h>
#include <tqvbox.h>
#include <tqvgroupbox.h>
#include <tqpushbutton.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
TQ_OBJECT
public:
MPWizard(const MPGameInfo &gi, ConnectionData &cd,
TQWidget *parent = 0, const char *name = 0);
void showPage(TQWidget *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;
TQVBox *typePage, *localPage;
WidgetList<PlayerLine> *wl;
TQLabel *lserver;
TQLineEdit *eserver;
KIntNumInput *eport;
TQVGroupBox *net;
// TQPushButton *keys;
void setupTypePage();
void setupLocalPage(const MPGameInfo &gi);
TQString name(uint i) const;
};
#endif // WIZARD_H
|