File indexing completed on 2025-04-27 03:50:11
0001 /*************************************************************************** 0002 kdialogsetupjoueur.h - description 0003 ------------------- 0004 begin : Thu Jul 19 2001 0005 copyright : (C) 2001 by Gaël de Chalendar 0006 email : Gael.de.Chalendar@free.fr 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This program is free software; you can redistribute it and/or modify * 0012 * it under the terms of the GNU General Public License as published by * 0013 * the Free Software Foundation; either either version 2 0014 of the License, or (at your option) any later version.of the License, or * 0015 * (at your option) any later version. * 0016 * * 0017 * You should have received a copy of the GNU General Public License 0018 * along with this program; if not, write to the Free Software 0019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 0020 * 02110-1301, USA 0021 ***************************************************************************/ 0022 0023 #ifndef KWAITEDPLAYERSETUPDIALOG_H 0024 #define KWAITEDPLAYERSETUPDIALOG_H 0025 0026 #include "ui_qwaitedplayersetupdialog.h" 0027 0028 #include <QWidget> 0029 0030 #include <map> 0031 0032 #include "GameLogic/player.h" 0033 0034 namespace Ksirk 0035 { 0036 0037 0038 /** 0039 * This is the implementation of the player configuration dialog made with 0040 * QT Designer 0041 * @author Gaël de Chalendar 0042 */ 0043 class KWaitedPlayerSetupDialog : public QDialog, public Ui::QWaitedPlayerSetupDialog 0044 { 0045 Q_OBJECT 0046 public: 0047 KWaitedPlayerSetupDialog(GameLogic::GameAutomaton* automaton, 0048 QString& password, 0049 int& result, 0050 QWidget *parent=nullptr); 0051 0052 ~KWaitedPlayerSetupDialog() override; 0053 0054 inline int result() {return m_result;} 0055 0056 private: 0057 GameLogic::GameAutomaton* m_automaton; 0058 QString& m_password; 0059 int& m_result; 0060 /** Fills the waited players combo with players names, nations names and flag images */ 0061 void fillWaitedPlayersCombo(); 0062 0063 public slots: 0064 virtual void slotOK(); 0065 }; 0066 0067 } 0068 0069 #endif // KWAITEDPLAYERSETUPDIALOG_H