1
/***************************************************************************
2
newGameDialogImpl.h - description
4
begin : Wed Feb 23 2005
5
copyright : (C) 2005 by Gael de Chalendar
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
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20
***************************************************************************/
24
#include "ui_newGameDialog.h"
28
#ifndef KSIRK_NEWGAMEDIALOGIMPL_H
29
#define KSIRK_NEWGAMEDIALOGIMPL_H
40
* This is the implementation of the new game configuration dialog made with
42
* @author Gaël de Chalendar
44
class NewGameDialogImpl : public QDialog, public Ui::NewGameDialog
48
NewGameDialogImpl(QWidget *parent=0);
50
void init(GameLogic::GameAutomaton* automaton,
54
virtual ~NewGameDialogImpl();
57
virtual void slotOK();
58
virtual void slotCancel();
59
virtual void slotHelp();
60
void slotSkinChanged(int skinNum);
64
void newGameOK(unsigned int nbPlayers, const QString& skin, unsigned int nbNetworkPlayers, bool useGoals);
69
* Fills the skins combo with skins dir names found in the Ksirk app data dir
70
* @todo Use skins names instead of dir names
72
void fillSkinsCombo();
74
GameLogic::GameAutomaton* m_automaton;
76
QMap<QString, GameLogic::ONU*> m_worlds;
80
} // closing namespace Ksirk
82
#endif // KSIRK_NEWGAMEDIALOGIMPL_H