File indexing completed on 2024-03-24 04:06:42
0001 /*************************************************************************** 0002 restartOrExitDialogImpl.h - description 0003 ------------------- 0004 begin : Sun Jul 16 2006 0005 copyright : (C) 2006 by Gael de Chalendar (aka Kleag) 0006 email : kleag@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 #include "ui_restartOrExitDialog.h" 0024 0025 #ifndef KSIRK_RESTARTOREXITDIALOGIMPL_H 0026 #define KSIRK_RESTARTOREXITDIALOGIMPL_H 0027 0028 namespace Ksirk 0029 { 0030 0031 /** 0032 * This is the implementation of the "restart or exit" dialog made with 0033 * QT Designer 0034 * @author Gaƫl de Chalendar 0035 */ 0036 class RestartOrExitDialogImpl : public QDialog, public Ui::RestartOrExitDialog 0037 { 0038 Q_OBJECT 0039 public: 0040 explicit RestartOrExitDialogImpl( 0041 const QString& label, 0042 QWidget *parent=nullptr); 0043 ~RestartOrExitDialogImpl() override; 0044 0045 private: 0046 0047 public slots: 0048 virtual void slotNewGame(); 0049 virtual void slotDoNothing(); 0050 virtual void slotExit(); 0051 0052 }; 0053 0054 } // closing namespace Ksirk 0055 0056 #endif // KSIRK_RESTARTOREXITDIALOGIMPL_H 0057