33 #include <QItemSelection>
35 #include <QMainWindow>
39 #include <QProgressBar>
42 #include <QTreeWidgetItem>
49 #include "ui_helpbrowser.h"
50 #include "scribusapi.h"
53 #include "prefsmanager.h"
54 #include "prefsfile.h"
55 #include "schelptreemodel.h"
65 class SCRIBUS_API HelpBrowser :
public QMainWindow, Ui::HelpBrowser
70 HelpBrowser(QWidget* parent);
71 HelpBrowser(QWidget* parent,
const QString& caption,
const QString& guiLangage=
"en",
const QString& jumpToSection=
"",
const QString& jumpToFile=
"");
75 virtual void changeEvent(QEvent *e);
83 void setHtml(
const QString& str);
88 void jumpToHelpSection(
const QString& jumpToSection,
const QString& jumpToFile=
"",
bool dontChangeIfAlreadyLoaded=
false);
91 void closeEvent(QCloseEvent * event);
100 void searchingInDirectory(
const QString&);
106 void displayNoHelp();
116 QAction* editFindNext;
117 QAction* editFindPrev;
125 QProgressBar * progressBar;
136 QMap<QString, QString> quickHelpIndex;
137 QMap<QString, QPair<QString, QString> > bookmarkIndex;
140 virtual void languageChange();
141 void histChosen(QAction* i);
142 void loadHelp(
const QString& filename);
145 QString bookmarkFile();
146 QString historyFile();
149 void itemSelected(
const QItemSelection & selected,
const QItemSelection & deselected);
152 void itemSearchSelected(QTreeWidgetItem *,
int);
155 void itemBookmarkSelected(QTreeWidgetItem *,
int);
160 void searchingButton_clicked();
181 void bookmarkButton_clicked();
184 void deleteBookmarkButton_clicked();
187 void deleteAllBookmarkButton_clicked();
194 #endif // HELPBROWSER_H
Definition: schelptreemodel.h:54
QString finalBaseDir
QString holding location of menu.xml we are using, we load the help files from here.
Definition: helpbrowser.h:130
QMenu * histMenu
History menu. It's public because of history reader - separate class.
Definition: helpbrowser.h:78
QString findText
Text to be found in document.
Definition: helpbrowser.h:132
A structure holding title/file url reference.
Definition: helpbrowser.h:60
Definition: helpnavigation.h:17
Definition: prefscontext.h:40
QString language
Selected language is here. If there is no docs for this language, "en" is used.
Definition: helpbrowser.h:128
PrefsContext * prefs
Configuration structure.
Definition: helpbrowser.h:134
QMap< QAction *, histd2 > mHistory
Mapping the documents for history.
Definition: helpbrowser.h:80