From: Kern Sibbald Date: Sat, 26 May 2007 14:12:42 +0000 (+0000) Subject: Update X-Git-Tag: Release-7.0.0~6236 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b32fb46801169cb7b59949c99f4b7bb6db523425;p=bacula%2Fbacula Update git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4909 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/help/help.cpp b/bacula/src/qt-console/help/help.cpp deleted file mode 100644 index e714977750..0000000000 --- a/bacula/src/qt-console/help/help.cpp +++ /dev/null @@ -1,67 +0,0 @@ -/* - Bacula® - The Network Backup Solution - - Copyright (C) 2007-2007 Free Software Foundation Europe e.V. - - The main author of Bacula is Kern Sibbald, with contributions from - many others, a complete list can be found in the file AUTHORS. - This program is Free Software; you can redistribute it and/or - modify it under the terms of version two of the GNU General Public - License as published by the Free Software Foundation plus additions - that are listed in the file LICENSE. - - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. - - Bacula® is a registered trademark of John Walker. - The licensor of Bacula is the Free Software Foundation Europe - (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich, - Switzerland, email:ftf@fsfeurope.org. -*/ - -/* - * Help Window class - * - * Kern Sibbald, May MMVII - * - * $Id: $ - */ - -#include "bat.h" -#include "help.h" - -Help::Help(const QString &path, const QString &file, QWidget *parent) : - QWidget(parent) -{ - setAttribute(Qt::WA_DeleteOnClose); /* Make sure we go away */ - setAttribute(Qt::WA_GroupLeader); /* allow calling from modal dialog */ - - setupUi(this); /* create window */ - - textBrowser->setSearchPaths(QStringList() << path << ":/images"); - textBrowser->setSource(file); - - connect(textBrowser, SIGNAL(sourceChanged(const QUrl &)), this, SLOT(updateTitle())); - connect(closeButton, SIGNAL(clicked()), this, SLOT(close())); - connect(homeButton, SIGNAL(clicked()), textBrowser, SLOT(home())); - connect(backButton, SIGNAL(clicked()), textBrowser, SLOT(backward())); - this->show(); -} - -void Help::updateTitle() -{ - setWindowTitle(tr("Help: %1").arg(textBrowser->documentTitle())); -} - -void Help::showFile(const QString &file) -{ - QString path = QApplication::applicationDirPath() + "/help"; - new Help(path, file); -} diff --git a/bacula/src/qt-console/help/help.h b/bacula/src/qt-console/help/help.h deleted file mode 100644 index 1d35387c8e..0000000000 --- a/bacula/src/qt-console/help/help.h +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef _HELP_H_ -#define _HELP_H_ - -/* - Bacula® - The Network Backup Solution - - Copyright (C) 2007-2007 Free Software Foundation Europe e.V. - - The main author of Bacula is Kern Sibbald, with contributions from - many others, a complete list can be found in the file AUTHORS. - This program is Free Software; you can redistribute it and/or - modify it under the terms of version two of the GNU General Public - License as published by the Free Software Foundation plus additions - that are listed in the file LICENSE. - - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. - - Bacula® is a registered trademark of John Walker. - The licensor of Bacula is the Free Software Foundation Europe - (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich, - Switzerland, email:ftf@fsfeurope.org. -*/ - -/* - * Help Window class - * - * It reads an html file and displays it in a "browser" window. - * - * Kern Sibbald, May MMVII - * - * $Id: $ - */ - -#include "bat.h" -#include "ui_help.h" - -class Help : public QWidget, public Ui::helpForm -{ - Q_OBJECT - -public: - Help(const QString &path, const QString &file, QWidget *parent = NULL); - virtual ~Help() { }; - static void showFile(const QString &file); - -public slots: - void updateTitle(); - -private: -}; - -#endif /* _HELP_H_ */