| 1 | // ---------------------------------- textDialogDialog.h --------------------------------------------------------------------------- |
| 2 | // header file used by textDialog.cpp |
| 3 | |
| 4 | //=============================================================================================================================== |
| 5 | //=============================================================================================================================== |
| 6 | // This file is part of "luckyBackup" project |
| 7 | // Copyright, Loukas Avgeriou |
| 8 | // luckyBackup is distributed under the terms of the GNU General Public License |
| 9 | // luckyBackup is free software: you can redistribute it and/or modify |
| 10 | // it under the terms of the GNU General Public License as published by |
| 11 | // the Free Software Foundation, either version 3 of the License, or |
| 12 | // (at your option) any later version. |
| 13 | // |
| 14 | // luckyBackup is distributed in the hope that it will be useful, |
| 15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | // GNU General Public License for more details. |
| 18 | // |
| 19 | // You should have received a copy of the GNU General Public License |
| 20 | // along with luckyBackup. If not, see <http://www.gnu.org/licenses/>. |
| 21 | |
| 22 | |
| 23 | // project version : Please see "main.cpp" for project version |
| 24 | |
| 25 | // developer : luckyb |
| 26 | // last modified : 06 Jan 2010 |
| 27 | //=============================================================================================================================== |
| 28 | //=============================================================================================================================== |
| 29 | |
| 30 | #ifndef TEXTDIALOG_H |
| 31 | #define TEXTDIALOG_H |
| 32 | |
| 33 | #include "ui_textDialog.h" |
| 34 | |
| 35 | //============================================================================================================== |
| 36 | //Declaration of textDialog class (this is a simple go -nogo dialog with a textdialog & 2 buttons) |
| 37 | // accessor function getGoOn returns true or false |
| 38 | class textDialog : public QDialog |
| 39 | { |
| 40 | Q_OBJECT |
| 41 | |
| 42 | public: |
| 43 | textDialog (const QString, const QString, QWidget *parent=0); |
| 44 | int getGoOn(); |
| 45 | QString getUserInput(); |
| 46 | |
| 47 | private slots: |
| 48 | void okay(); |
| 49 | void cancel(); |
| 50 | |
| 51 | private: |
| 52 | Ui::textDialog uiT; |
| 53 | int GoOn; |
| 54 | QString userInput; |
| 55 | QString Type; |
| 56 | QString TextPassed; |
| 57 | |
| 58 | protected: |
| 59 | void closeEvent(QCloseEvent*); |
| 60 | }; |
| 61 | |
| 62 | #endif |
| 63 | |
| 64 | // end of textDialogDialog.h --------------------------------------------------------------------------- |