AlbumShaper  1.0a3
contents.h
Go to the documentation of this file.
1 //==============================================
2 // copyright : (C) 2003-2005 by Will Stokes
3 //==============================================
4 // This program is free software; you can redistribute it
5 // and/or modify it under the terms of the GNU General
6 // Public License as published by the Free Software
7 // Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //==============================================
10 
11 #ifndef GUI_HELP_CONTENTS_H
12 #define GUI_HELP_CONTENTS_H
13 
14 #include <q3textbrowser.h>
15 #include <qsize.h>
16 #include <q3textstream.h>
17 
18 //=====================================
21 //=====================================
22 
24 typedef enum
25 {
37 } HELP_PAGE;
38 
39 //======================
40 class Contents : public Q3TextBrowser
41 {
42 Q_OBJECT
43  //----------------------
44 public:
45  Contents( Q3TextStream::Encoding type,
46  QString saveCharSet, Q3MimeSourceFactory* loadingMimeSource,
47  QWidget *parent=0, const char* name=0);
48 
49  QSize minimumSizeHint() const;
50  //----------------------
51 private:
52  QSize optimalSize;
53  QString filename();
54  void generateHTML(Q3TextStream::Encoding type, QString charSet);
55  void printLink( Q3TextStream& stream, QString text, HELP_PAGE anchor, QString anchorString );
57 
58  Q3TextStream::Encoding type;
59  QString saveCharSet;
60  //----------------------
61 signals:
62  void setPage(HELP_PAGE page);
63  //----------------------
64 private slots:
65  void handleAnchorClick(const QString &name, const QString &link);
66 //----------------------
67 };
68 //======================
69 
70 #endif //GUI_HELP_CONTENTS_H
Q3TextStream::Encoding type
Definition: contents.h:58
QString saveCharSet
Definition: contents.h:59
void setPage(HELP_PAGE page)
void printLink(Q3TextStream &stream, QString text, HELP_PAGE anchor, QString anchorString)
Definition: contents.cpp:171
QSize optimalSize
Definition: contents.h:52
HELP_PAGE
Contents window widget.
Definition: contents.h:24
QSize minimumSizeHint() const
Definition: contents.cpp:61
void generateHTML(Q3TextStream::Encoding type, QString charSet)
Definition: contents.cpp:105
void handleAnchorClick(const QString &name, const QString &link)
Definition: contents.cpp:66
HELP_PAGE currentPage
Definition: contents.h:56
QString filename()
Definition: contents.cpp:100
Contents(Q3TextStream::Encoding type, QString saveCharSet, Q3MimeSourceFactory *loadingMimeSource, QWidget *parent=0, const char *name=0)
Definition: contents.cpp:26