7 #ifndef CHECKLIST_GUIDE_BROWSER_H 8 #define CHECKLIST_GUIDE_BROWSER_H 10 #include "CmdMediator.h" 12 #include <QTextBrowser> 25 const QStringList &curveNames);
29 bool documentIsExported);
32 void slotAnchorClicked (
const QUrl &url);
36 QString ahref (QString &html,
37 const QString &name)
const;
39 void check (QString &html,
40 const QString &anchor,
41 bool isChecked)
const;
42 void divHide (QString &html,
43 const QString &anchor)
const;
44 void divShow (QString &html,
45 const QString &anchor)
const;
49 QString processAhrefs (
const QString &htmlBefore);
52 QString processCheckboxes (
const QString &htmlBefore);
55 QString processDivs (
const QString &htmlBefore);
60 void repopulateCheckedTags (
const CmdMediator &cmdMediator,
61 bool documentIsExported);
63 QString m_templateHtml;
64 QStringList m_curveNames;
70 QHash<QString, bool> m_checkedTags;
73 #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.