~ubuntu-branches/ubuntu/maverick/qgo/maverick

« back to all changes in this revision

Viewing changes to src/qnewgamedlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin A. Godisch
  • Date: 2005-01-01 23:07:10 UTC
  • Revision ID: james.westby@ubuntu.com-20050101230710-fhng6yidm47xlb2i
Tags: upstream-1.0.0-r2
ImportĀ upstreamĀ versionĀ 1.0.0-r2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          qnewgamedlg.h  -  description
 
3
                             -------------------
 
4
    begin                : Thu Dec 20 2001
 
5
    copyright            : (C) 2001 by PALM Thomas , DINTILHAC Florian, HIVERT Anthony, PIOC Sebastien
 
6
    email                : 
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
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.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef QNEWGAMEDLG_H
 
19
#define QNEWGAMEDLG_H
 
20
 
 
21
#include <qcombobox.h>
 
22
#include <qframe.h>
 
23
#include <qgroupbox.h>
 
24
#include <qlabel.h>
 
25
#include <qlineedit.h>
 
26
#include <qpushbutton.h>
 
27
#include <qspinbox.h>
 
28
#include <qlayout.h>
 
29
#include <qvariant.h>
 
30
#include <qtooltip.h>
 
31
#include <qwhatsthis.h>
 
32
#include <qcheckbox.h>
 
33
 
 
34
 
 
35
#include <qdialog.h>
 
36
#include "qnewgamedlg_gui.h"
 
37
//#include "global.h"
 
38
//#include "gothic.h"
 
39
 
 
40
 
 
41
class QNewGameDlg : public QNewGameDlgGui
 
42
{
 
43
    Q_OBJECT
 
44
 
 
45
public:
 
46
//    QNewGameDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
 
47
        QNewGameDlg( QWidget* parent = 0, const char* name = 0);
 
48
        ~QNewGameDlg();
 
49
 
 
50
        int getSize();
 
51
        int getHandicap();
 
52
        float getKomi();
 
53
        int getLevelBlack();
 
54
        int getLevelWhite();
 
55
        QString getPlayerBlackName();
 
56
        QString getPlayerWhiteName();
 
57
        int getPlayerBlackType();
 
58
        int getPlayerWhiteType();
 
59
        int getTime();
 
60
        bool getOneColorGo();
 
61
        QString fileName;
 
62
 
 
63
public slots:
 
64
        void slotCancel();
 
65
        void slotOk();
 
66
  
 
67
 
 
68
protected:
 
69
/*
 
70
    QFrame* _NewGameWhite;
 
71
    QLabel* _WhiteLevelLabel;
 
72
    QLabel* _WhiteTypeLabel;
 
73
    QLabel* _WhiteNewGameLabel;
 
74
    QLabel* _WhitePlayerLabel;
 
75
    QLineEdit* _WhitePlayerLineEdit;
 
76
    QSpinBox* _WhiteLevelSpinBox;
 
77
    QComboBox* _WhiteTypeComboBox;
 
78
    QFrame* _Black;
 
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;
 
91
    QLabel* _TimeLabel;
 
92
    QLabel* _SizeLabel;
 
93
    QLabel* _HandicapLabel;
 
94
    QSpinBox* _HandicapSpinBox;
 
95
    QLabel* _KomiLabel;
 
96
    QSpinBox* _SizeSpinBox;
 
97
    QSpinBox* _TimeSpinBox;
 
98
 
 
99
        void initDialog();
 
100
*/
 
101
        void init();
 
102
 
 
103
    bool event( QEvent* ), _oneColorGo;
 
104
    int _size, _handicap, _levelBlack, _levelWhite,_time;
 
105
    int _playerWhiteType, _playerBlackType;
 
106
        float _komi;
 
107
        QString _playerWhiteName, _playerBlackName;
 
108
 
 
109
protected slots:
 
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();
 
122
};
 
123
 
 
124
/** Define player types   /
 
125
typedef enum {
 
126
        HUMAN,
 
127
 COMPUTER
 
128
} player_type;            */
 
129
 
 
130
#endif