1 /*************************************************************************** 2 kdialogsetupjoueur.h - description 3 ------------------- 4 begin : Thu Jul 19 2001 5 copyright : (C) 2001 by Gaël de Chalendar 6 email : Gael.de.Chalendar@free.fr 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 either version 2 14 of the License, or (at your option) any later version.of the License, or * 15 * (at your option) any later version. * 16 * * 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 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 20 * 02110-1301, USA 21 ***************************************************************************/ 22 #define KDE_NO_COMPAT 23 24 25 #ifndef KWAITEDPLAYERSETUPDIALOG_H 26 #define KWAITEDPLAYERSETUPDIALOG_H 27 28 #include "ui_qwaitedplayersetupdialog.h" 29 30 #include <QWidget> 31 32 #include <map> 33 34 #include "GameLogic/player.h" 35 36 namespace Ksirk 37 { 38 39 40 /** 41 * This is the implementation of the player configuration dialog made with 42 * QT Designer 43 * @author Gaël de Chalendar 44 */ 45 class KWaitedPlayerSetupDialog : public QDialog, public Ui::QWaitedPlayerSetupDialog 46 { 47 Q_OBJECT 48 public: 49 KWaitedPlayerSetupDialog(GameLogic::GameAutomaton* automaton, 50 QString& password, 51 int& result, 52 QWidget *parent=0); 53 54 ~KWaitedPlayerSetupDialog() override; 55 result()56 inline int result() {return m_result;} 57 58 private: 59 GameLogic::GameAutomaton* m_automaton; 60 QString& m_password; 61 int& m_result; 62 /** Fills the waited players combo with players names, nations names and flag images */ 63 void fillWaitedPlayersCombo(); 64 65 public slots: 66 virtual void slotOK(); 67 }; 68 69 } 70 71 #endif // KWAITEDPLAYERSETUPDIALOG_H 72