Debian Codegraph @

src/helpBrowser.cpp

raw symbols SCIP
1 // ---------------------------------- 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"
30
31 // class helpBrowser Constructor=================================================================================================
32 // Displays a simple dialog for browsing manual/index.html
33 helpBrowser::helpBrowser (QUrl helpUrl, QWidget *parent) : QDialog (parent)
34 {
35 uiB.setupUi(this);
36 //connect okay pushButton SLOTs ----------------
37 connect ( uiB.button_ok, SIGNAL( clicked() ), this, SLOT( okay() ) );
38 uiB.browser -> setOpenLinks(true);
39 uiB.browser -> setOpenExternalLinks(false);
40 uiB.browser -> setSource(helpUrl);
41 }
42 // SLOTS-------------------------------------------------------------------------------------
43 // --------------------------------okay pressed------------------------------------------------
44 void helpBrowser::okay()
45 {
46 close();
47 }
48
49 // end of helpBrowser.cpp ---------------------------------------------------------------------------
50