summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/wizard.h
blob: 42a1b871b61bf155cf37831209c56f9ebde2be68 (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 <tdeconfig.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,
			 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