blob: 82b5e57a1bbd42980d5cfa0f08e0d1e8084d8301 (
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
/***************************************************************************
dlg_newmatch.h - description
-------------------
begin : Tue Jun 25 2002
copyright : (C) 2003 by Troy Corbin Jr.
email : tcorbin@users.sf.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 DLG_NEWMATCH_H
#define DLG_NEWMATCH_H
#include <qwidget.h>
#include <kdialogbase.h>
#include "match_param.h"
/**
*@author Troy Corbin Jr.
*/
class dlg_selectengine;
class dlg_selectemail;
class resource;
class QLabel;
class QSpinBox;
class QRadioButton;
class QCheckBox;
class QVBox;
class QHBox;
class QGrid;
class QButtonGroup;
class QGroupBox;
class KComboBox;
class dlg_newmatch : public KDialogBase
{
Q_OBJECT
private:
resource *myResource;
match_param *Param;
dlg_selectengine *EngineSelect;
dlg_selectemail *EmailSelect;
QHBox *BOX_Parent;
QVBox *BOX_Players;
QGroupBox *BOX_White;
QLabel *IMAGE_White;
QVBox *BOX_White_Detail;
QLabel *LABEL_White_Name;
QButtonGroup *GROUP_White_Type;
QRadioButton *RADIO_White_Human;
QRadioButton *RADIO_White_PC;
QRadioButton *RADIO_White_Email;
QGrid *GRID_White_Time;
QLabel *LABEL_White_Base;
QSpinBox *SPIN_White_Base;
QLabel *LABEL_White_Inc;
QSpinBox *SPIN_White_Inc;
QLabel *LABEL_White_Moves;
QSpinBox *SPIN_White_Moves;
QGroupBox *BOX_Black;
QLabel *IMAGE_Black;
QVBox *BOX_Black_Detail;
QLabel *LABEL_Black_Name;
QButtonGroup *GROUP_Black_Type;
QRadioButton *RADIO_Black_Human;
QRadioButton *RADIO_Black_PC;
QRadioButton *RADIO_Black_Email;
QGrid *GRID_Black_Time;
QLabel *LABEL_Black_Base;
QSpinBox *SPIN_Black_Base;
QLabel *LABEL_Black_Inc;
QSpinBox *SPIN_Black_Inc;
QLabel *LABEL_Black_Moves;
QSpinBox *SPIN_Black_Moves;
public:
dlg_newmatch(QWidget *parent=0, const char *name=0, resource *Rsrc=0);
~dlg_newmatch();
match_param* paramaters( void ) { return Param; }
protected slots:
void slotWhiteType( int );
void slotWhiteBase( int );
void slotWhiteMoves( int );
void slotWhiteInc( int );
void slotBlackType( int );
void slotBlackBase( int );
void slotBlackMoves( int );
void slotBlackInc( int );
void slotReparse( void );
protected:
void setTCP( void );
void setTypes( void );
void setImages( void );
void setNames( void );
};
#endif
|