1 #ifndef CHECKLIST_GUIDE_BROWSER_H
2 #define CHECKLIST_GUIDE_BROWSER_H
4 #include "CmdMediator.h"
6 #include <QTextBrowser>
19 const QStringList &curveNames);
23 bool documentIsExported);
26 void slotAnchorClicked (
const QUrl &url);
30 QString ahref (QString &html,
31 const QString &name)
const;
33 void check (QString &html,
34 const QString &anchor,
35 bool isChecked)
const;
36 void divHide (QString &html,
37 const QString &anchor)
const;
38 void divShow (QString &html,
39 const QString &anchor)
const;
43 QString processAhrefs (
const QString &htmlBefore);
46 QString processCheckboxes (
const QString &htmlBefore);
49 QString processDivs (
const QString &htmlBefore);
54 void repopulateCheckedTags (
const CmdMediator &cmdMediator,
55 bool documentIsExported);
57 QString m_templateHtml;
58 QStringList m_curveNames;
64 QHash<QString, bool> m_checkedTags;
67 #endif // CHECKLIST_GUIDE_BROWSER_H
virtual void setTemplateHtml(const QString &html, const QStringList &curveNames)
Populate the browser with template html. The template html will be converted to real html...
void update(const CmdMediator &cmdMediator, bool documentIsExported)
Update using current CmdMediator/Document state.
Class that adds rudimentary tree collapse/expand functionality to QTextBrowser.
ChecklistGuideBrowser()
Single constructor.