SpeedCrunch  0.11
/usr/src/RPM/BUILD/speedcrunch-0.11/src/gui/manualwindow.h
Go to the documentation of this file.
00001 // This file is part of the SpeedCrunch project
00002 // Copyright (C) 2014 Helder Correia <helder.pereira.correia@gmail.com>
00003 //
00004 // This program is free software; you can redistribute it and/or
00005 // modify it under the terms of the GNU General Public License
00006 // as published by the Free Software Foundation; either version 2
00007 // of the License, or (at your option) any later version.
00008 //
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU General Public License
00015 // along with this program; see the file COPYING.  If not, write to
00016 // the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017 // Boston, MA 02110-1301, USA.
00018 
00019 #ifndef GUI_MANUALWINDOW_H
00020 #define GUI_MANUALWINDOW_H
00021 
00022 #include "core/manual.h"
00023 
00024 #include <QTextBrowser>
00025 
00026 class QCloseEvent;
00027 class QEvent;
00028 class QUrl;
00029 
00030 class ManualWindow : public QTextBrowser {
00031     Q_OBJECT
00032 
00033 public:
00034     ManualWindow(QWidget* parent = 0);
00035 
00036 signals:
00037     void windowClosed();
00038 
00039 public slots:
00040     void openPage(const QUrl&);
00041     void retranslateText();
00042 
00043 protected:
00044     virtual void changeEvent(QEvent*);
00045         virtual void closeEvent(QCloseEvent*);
00046 
00047 private:
00048     Q_DISABLE_COPY(ManualWindow)
00049     Manual* m_manual;
00050 };
00051 
00052 #endif // GUI_MANUALWINDOW_H