Changeset View
Changeset View
Standalone View
Standalone View
ksirk/Dialogs/kplayersetupwidget.h
Show All 16 Lines | |||||
17 | * You should have received a copy of the GNU General Public License | 17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | 18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
20 | * 02110-1301, USA | 20 | * 02110-1301, USA | ||
21 | ***************************************************************************/ | 21 | ***************************************************************************/ | ||
22 | #define KDE_NO_COMPAT | 22 | #define KDE_NO_COMPAT | ||
23 | 23 | | |||
24 | 24 | | |||
25 | #ifndef KPLAYERSETUPDIALOG_H | 25 | #ifndef KPLAYERSETUPWIDGET_H | ||
26 | #define KPLAYERSETUPDIALOG_H | 26 | #define KPLAYERSETUPWIDGET_H | ||
27 | 27 | | |||
28 | #include "ui_qplayersetupdialog.h" | 28 | #include "ui_qplayersetupdialog.h" | ||
29 | 29 | | |||
30 | #include <qwidget.h> | 30 | #include <qwidget.h> | ||
31 | 31 | | |||
32 | #include <QMap> | 32 | #include <QMap> | ||
33 | 33 | | |||
34 | class KPlayer; | 34 | class KPlayer; | ||
Show All 12 Lines | 46 | /** | |||
47 | * This is the implementation of the player configuration dialog made with | 47 | * This is the implementation of the player configuration dialog made with | ||
48 | * QT Designer | 48 | * QT Designer | ||
49 | * @author Gael de Chalendar | 49 | * @author Gael de Chalendar | ||
50 | */ | 50 | */ | ||
51 | class KPlayerSetupWidget : public QWidget, public Ui::QPlayerSetupWidget | 51 | class KPlayerSetupWidget : public QWidget, public Ui::QPlayerSetupWidget | ||
52 | { | 52 | { | ||
53 | Q_OBJECT | 53 | Q_OBJECT | ||
54 | public: | 54 | public: | ||
55 | KPlayerSetupWidget(QWidget *parent=0); | 55 | explicit KPlayerSetupWidget(QWidget *parent=0); | ||
56 | 56 | | |||
57 | ~KPlayerSetupWidget() override; | 57 | ~KPlayerSetupWidget() override; | ||
58 | 58 | | |||
59 | void init(GameLogic::GameAutomaton* automaton, | 59 | void init(GameLogic::GameAutomaton* automaton, | ||
60 | GameLogic::ONU* onu, | 60 | GameLogic::ONU* onu, | ||
61 | unsigned int playerNumber, | 61 | unsigned int playerNumber, | ||
62 | QString &playerName, | 62 | QString &playerName, | ||
63 | QString& password, | 63 | QString& password, | ||
Show All 37 Lines | 84 | private: | |||
101 | unsigned int m_number; | 101 | unsigned int m_number; | ||
102 | 102 | | |||
103 | QString m_password; | 103 | QString m_password; | ||
104 | NewGameSetup* m_newGameSetup; | 104 | NewGameSetup* m_newGameSetup; | ||
105 | }; | 105 | }; | ||
106 | 106 | | |||
107 | } | 107 | } | ||
108 | 108 | | |||
109 | #endif // KPLAYERSETUPDIALOG_H | 109 | #endif // KPLAYERSETUPWIDGET_H |