File indexing completed on 2024-12-01 03:48:51
0001 /* This file is part of KsirK. 0002 Copyright (C) 2008 Guillaume Pelouas <pelouas@hotmail.fr> 0003 0004 KsirK is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU General Public 0006 License as published by the Free Software Foundation, either version 2 0007 of the License, or (at your option) any later version. 0008 0009 This program is distributed in the hope that it will be useful, 0010 but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 General Public License for more details. 0013 0014 You should have received a copy of the GNU General Public License 0015 along with this program; if not, write to the Free Software 0016 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 0017 02110-1301, USA 0018 */ 0019 0020 /* begin : Fri 21 2007 */ 0021 0022 #ifndef MAINMENU_H 0023 #define MAINMENU_H 0024 0025 #include "config-ksirk.h" 0026 #include "ui_mainMenu.h" 0027 0028 #include "KsirkGlobalDefinitions.h" 0029 0030 #include <QWidget> 0031 0032 0033 namespace Ksirk 0034 { 0035 class KGameWindow; 0036 namespace GameLogic 0037 { 0038 class ONU; 0039 } 0040 } 0041 0042 /** 0043 * The mainMenu class is the widget displayed in the main window 0044 */ 0045 class mainMenu : public QWidget, public Ui::MainMenu 0046 { 0047 Q_OBJECT 0048 0049 public: 0050 explicit mainMenu(Ksirk::KGameWindow* game, QWidget* parent = nullptr); 0051 0052 ~mainMenu() override {} 0053 0054 void init(Ksirk::GameLogic::ONU* theWorld); 0055 0056 #if HAVE_JABBER_SUPPORT 0057 public: 0058 QPushButton *pbJabberGame; 0059 #endif 0060 }; 0061 0062 0063 #endif