Advertisement
Guest User

creategamedialog.h

a guest
Aug 23rd, 2017
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /***************************************************************************
  2.  *   Copyright (C) 2008 by MacJariel                                       *
  3.  *   echo "badmailet@gbalt.dob" | tr "edibmlt" "ecrmjil"                   *
  4.  *                                                                         *
  5.  *   This program is free software; you can redistribute it and/or modify  *
  6.  *   it under the terms of the GNU General Public License as published by  *
  7.  *   the Free Software Foundation; either version 2 of the License, or     *
  8.  *   (at your option) any later version.                                   *
  9.  *                                                                         *
  10.  *   This program is distributed in the hope that it will be useful,       *
  11.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
  12.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
  13.  *   GNU General Public License for more details.                          *
  14.  *                                                                         *
  15.  *   You should have received a copy of the GNU General Public License     *
  16.  *   along with this program; if not, write to the                         *
  17.  *   Free Software Foundation, Inc.,                                       *
  18.  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  19.  ***************************************************************************/
  20. #ifndef CREATEGAMEDIALOG_H
  21. #define CREATEGAMEDIALOG_H
  22.  
  23. #include <QDialog>
  24. #include <ui_creategamedialog.h>
  25.  
  26. #include "parser/parserstructs.h"
  27.  
  28. namespace client {
  29.  
  30. /**
  31.  * @author MacJariel <MacJariel@gmail.com>
  32.  */
  33. class CreateGameDialog : public QDialog, public Ui::CreateGameDialog
  34. {
  35. Q_OBJECT
  36. public:
  37.     CreateGameDialog(QWidget *parent);
  38.     ~CreateGameDialog();
  39.  
  40. private slots:
  41.     void playerCountsChanged();
  42.     void validateInput();
  43.     void on_pushButtonCreate_clicked();
  44.  
  45. signals:
  46.     void createGame(const CreateGameData&, const CreatePlayerData&);
  47.  
  48. private:
  49.     void loadConfigValues();
  50.     void saveConfigValues(const CreateGameData&);
  51. };
  52.  
  53. }
  54.  
  55. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement