summaryrefslogtreecommitdiffstats
path: root/knights/wiz_setup.h
blob: edd5f9ea4539cfe9acc06aff31b5410512b9bcf7 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/***************************************************************************
                          wiz_setup.h  -  description
                             -------------------
    begin                : Wed Nov 21 2001
    copyright            : (C) 2003 by Troy Corbin Jr.
    email                : tcorbin@users.sourceforge.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef WIZ_SETUP_H
#define WIZ_SETUP_H

#include <kwizard.h>
#include <qhbox.h>
#include <qvbox.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qlabel.h>
#include "resource.h"
#include "definitions.h"
#include "knightstextview.h"

/**
  *@author Troy Corbin Jr.
  */

class wiz_setup : public KWizard
{
		Q_OBJECT
		public:
									wiz_setup( QWidget *parent=0, const char *name=0, resource *Rsrc=0 );
									~wiz_setup();
		protected slots:
			void				slot_Work( const QString& pageTitle );
			void				slot_License( int );
		protected:
			void			  initPage1( void );
			void			  initPage2( void );
			void			  initPage3( void );
			void			  initPage4( void );
			void			  initPage5( void );
			void			  initPage6( void );
			void				findEngines( void );
			void				setupServers( void );
			void				setupPGN( void );
		private:
			resource		*myResource;
			int					steps;

			QFrame				*Page1;
				QGridLayout		*P1B1;
					QLabel			*SideImage1;
					QLabel			*WelcomeMessage;
			QFrame				*Page2;
				QGridLayout		*P2B1;
					QLabel				*SideImage2;
					QLabel				*pgnExplain;
					QButtonGroup	*pgnButtons;
						QRadioButton	*pgnYes;
						QRadioButton	*pgnNo;
			QFrame				*Page3;
				QGridLayout		*P3B1;
					QLabel			*SideImage3;
					QLabel			*engineExplain;
					QButtonGroup	*engineButtons;
						QRadioButton	*engineYes;
						QRadioButton	*engineNo;
			QFrame				*Page4;
				QGridLayout		*P4B1;
					QLabel			*SideImage4;
					QLabel			*serverExplain;
					QButtonGroup	*serverButtons;
						QRadioButton	*serverYes;
						QRadioButton	*serverNo;
			QFrame				*Page5;
				QGridLayout		*P5B1;
					QLabel			*SideImage5;
					QLabel			*FinishExplain;
			QVBox					*Page6;
				KnightsTextView	*licenseView;
				QButtonGroup	*licenseButtons;
					QRadioButton	*licenseYes;
					QRadioButton	*licenseNo;
};

#endif