Subversion Repositories Scribus

Rev

Rev 564 | Rev 1092 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
564 cbradney 1
/***************************************************************************
2
*   Copyright (C) 2004 by Craig Bradney                                   *
3
*   cbradney@zip.com.au                                                   *
4
*                                                                         *
5
*   This program is free software; you can redistribute it and/or modify  *
6
*   it under the terms of the GNU General Public License as published by  *
7
*   the Free Software Foundation; either version 2 of the License, or     *
8
*   (at your option) any later version.                                   *
9
*                                                                         *
10
*   This program is distributed in the hope that it will be useful,       *
11
*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13
*   GNU General Public License for more details.                          *
14
*                                                                         *
15
*   You should have received a copy of the GNU General Public License     *
16
*   along with this program; if not, write to the                         *
17
*   Free Software Foundation, Inc.,                                       *
18
*   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19
***************************************************************************/
560 cbradney 20
 
3 paul 21
#ifndef HELPBROWSER_H
22
#define HELPBROWSER_H
23
 
560 cbradney 24
#include <qvariant.h>
3 paul 25
#include <qdialog.h>
560 cbradney 26
#include <qstring.h>
3 paul 27
 
560 cbradney 28
class QVBoxLayout;
29
class QHBoxLayout;
30
class QGridLayout;
31
class QSpacerItem;
32
class QTabWidget;
33
class QWidget;
34
class QListView;
35
class QListViewItem;
36
class QTextBrowser;
37
class QToolButton;
38
class QPopupMenu;
786 cbradney 39
class QSplitter;
560 cbradney 40
 
3 paul 41
class HelpBrowser : public QWidget
560 cbradney 42
{
43
        Q_OBJECT
3 paul 44
 
45
public:
564 cbradney 46
        HelpBrowser( QWidget* parent, QString caption, QString guiLangage="en", QString jumpToSection="", QString jumpToFile="");
560 cbradney 47
        ~HelpBrowser();
3 paul 48
 
786 cbradney 49
protected:
50
        QVBoxLayout* helpBrowsermainLayout;
51
        QHBoxLayout* helpBrowserLayout;
52
        QHBoxLayout* tabLayout;
53
        QHBoxLayout* buttonLayout;
560 cbradney 54
        QToolButton* homeButton;
55
        QToolButton* backButton;
56
        QToolButton* forwButton;
57
 
58
        QTabWidget* tabWidget;
59
        QWidget* tabContents;
60
        QListView* listView;
61
        QTextBrowser* textBrowser;
786 cbradney 62
        QSplitter* splitter;
560 cbradney 63
 
64
        QPopupMenu* histMenu;
65
        struct histd {
168 Franz 66
                                        QString Url;
67
                                        QString Title;
564 cbradney 68
                                };
69
        QMap<int, histd> mHistory;
3 paul 70
 
560 cbradney 71
protected slots:
72
        virtual void languageChange();
73
        void itemSelected( QListViewItem *);
74
        void sourceChanged(const QString& url);
75
        void histChosen(int i);
786 cbradney 76
        void jumpToHelpSection(const QString newGuiLanguage, QString jumpToSection, QString jumpToFile="");
560 cbradney 77
        void loadHelp(QString filename);
786 cbradney 78
        void loadMenu(const QString newGuiLanguage);
3 paul 79
};
80
 
81
#endif // HELPBROWSER_H