1
/***************************************************************************
2
qnewgamedlg.h - description
4
begin : Thu Dec 20 2001
5
copyright : (C) 2001 by PALM Thomas , DINTILHAC Florian, HIVERT Anthony, PIOC Sebastien
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
21
#include <qcombobox.h>
23
#include <qgroupbox.h>
25
#include <qlineedit.h>
26
#include <qpushbutton.h>
31
#include <qwhatsthis.h>
32
#include <qcheckbox.h>
36
#include "qnewgamedlg_gui.h"
41
class QNewGameDlg : public QNewGameDlgGui
46
// QNewGameDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
47
QNewGameDlg( QWidget* parent = 0, const char* name = 0);
55
QString getPlayerBlackName();
56
QString getPlayerWhiteName();
57
int getPlayerBlackType();
58
int getPlayerWhiteType();
70
QFrame* _NewGameWhite;
71
QLabel* _WhiteLevelLabel;
72
QLabel* _WhiteTypeLabel;
73
QLabel* _WhiteNewGameLabel;
74
QLabel* _WhitePlayerLabel;
75
QLineEdit* _WhitePlayerLineEdit;
76
QSpinBox* _WhiteLevelSpinBox;
77
QComboBox* _WhiteTypeComboBox;
79
QLineEdit* _BlackPlayerLineEdit;
80
QLabel* _BlackPlayerLabel;
81
QLabel* _BlackLevelLabel;
82
QSpinBox* _BlackLevelSpinBox;
83
QLabel* _BlackTypeLabel;
84
QLabel* _BlackNewGameLabel;
85
QComboBox* _BlackTypeComboBox;
86
QPushButton* _CancelPushButton;
87
QPushButton* _OkPushButton;
88
QGroupBox* _ParametersGroupBox;
89
// QSpinBox* _KomiSpinBox;
90
QLineEdit* _KomiLineEdit;
93
QLabel* _HandicapLabel;
94
QSpinBox* _HandicapSpinBox;
96
QSpinBox* _SizeSpinBox;
97
QSpinBox* _TimeSpinBox;
103
bool event( QEvent* ), _oneColorGo;
104
int _size, _handicap, _levelBlack, _levelWhite,_time;
105
int _playerWhiteType, _playerBlackType;
107
QString _playerWhiteName, _playerBlackName;
110
void slotGobanSizeChanged();
111
void slotHandicapChanged();
112
void slotKomiChanged();
113
void slotLevelBlackChanged();
114
void slotLevelWhiteChanged();
115
void slotPlayerBlackNameChanged();
116
void slotPlayerBlackTypeChanged();
117
void slotPlayerWhiteNameChanged();
118
void slotPlayerWhiteTypeChanged();
119
void slotTimeChanged();
120
void slotGetFileName();
121
void slotOneColorGoClicked();
124
/** Define player types /