| 1 | // ---------------------------------- helpBrowser.cpp ---------------------------------------------------------------------------cxx . . $ `<file>/src/helpBrowser.cpp`/ |
| 2 | // Class to display the project manual in a browser |
| 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 | // project version : Please see "main.cpp" for project version |
| 23 | |
| 24 | // developer : luckyb |
| 25 | // last modified : 17 Jan 2012 |
| 26 | //=============================================================================================================================== |
| 27 | //=============================================================================================================================== |
| 28 | |
| 29 | #include "helpBrowser.h"cxx . . $ `<file>/src/helpBrowser.h`/ |
| 30 | |
| 31 | // class helpBrowser Constructor================================================================================================= |
| 32 | // Displays a simple dialog for browsing manual/index.html |
| 33 | helpBrowsercxx . . $ helpBrowser#::helpBrowsercxx . . $ helpBrowser#helpBrowser(f0ccea2e72bcf7e0). (QUrlcxx . . $ QUrl# helpUrl, QWidgetcxx . . $ QWidget# *parent) : QDialogcxx . . $ QDialog#QDialog(872e7b0c281abd8d). (parent) |
| 34 | { |
| 35 | uiBcxx . . $ helpBrowser#uiB..setupUicxx . . $ Ui_helpBrowser#setupUi(d194de0c0f68c28b).(this); |
| 36 | //connect okay pushButton SLOTs ---------------- |
| 37 | connectcxx . . $ QObject#connect(158df1d9a01a3410). ( uiBcxx . . $ helpBrowser#uiB..button_okcxx . . $ Ui_helpBrowser#button_ok., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!( clicked() ), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!( okay() ) ); |
| 38 | uiBcxx . . $ helpBrowser#uiB..browsercxx . . $ Ui_helpBrowser#browser. -> setOpenLinkscxx . . $ QTextBrowser#setOpenLinks(b45ddcbc8423892c).(true); |
| 39 | uiBcxx . . $ helpBrowser#uiB..browsercxx . . $ Ui_helpBrowser#browser. -> setOpenExternalLinkscxx . . $ QTextBrowser#setOpenExternalLinks(b45ddcbc8423892c).(false); |
| 40 | uiBcxx . . $ helpBrowser#uiB..browsercxx . . $ Ui_helpBrowser#browser. -> setSourcecxx . . $ QTextBrowser#setSource(37355d2f77053a23).(helpUrl); |
| 41 | } |
| 42 | // SLOTS------------------------------------------------------------------------------------- |
| 43 | // --------------------------------okay pressed------------------------------------------------ |
| 44 | void helpBrowsercxx . . $ helpBrowser#::okaycxx . . $ helpBrowser#okay(49f6e7a06ebc5aa8).() |
| 45 | { |
| 46 | closecxx . . $ QWidget#close(c9857a73d68e59ba).(); |
| 47 | } |
| 48 | |
| 49 | // end of helpBrowser.cpp --------------------------------------------------------------------------- |
| 50 |