~ubuntu-branches/ubuntu/maverick/luckybackup/maverick

« back to all changes in this revision

Viewing changes to src/helpBrowser.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2009-05-21 20:09:36 UTC
  • Revision ID: james.westby@ubuntu.com-20090521200936-jcbu6euvoxz7sef7
Tags: upstream-0.3
Import upstream version 0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 2008-2009, 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        : 03 April 2009
 
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, QDialog *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