Engauge Digitizer 2
Loading...
Searching...
No Matches
ChecklistGuideBrowser Class Reference

Class that adds rudimentary tree collapse/expand functionality to QTextBrowser. More...

#include <ChecklistGuideBrowser.h>

Inheritance diagram for ChecklistGuideBrowser:
Inheritance graph
Collaboration diagram for ChecklistGuideBrowser:
Collaboration graph

Public Member Functions

 ChecklistGuideBrowser ()
 Single constructor.
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.

Detailed Description

Class that adds rudimentary tree collapse/expand functionality to QTextBrowser.

Definition at line 15 of file ChecklistGuideBrowser.h.

Constructor & Destructor Documentation

◆ ChecklistGuideBrowser()

ChecklistGuideBrowser::ChecklistGuideBrowser ( )

Single constructor.

Definition at line 18 of file ChecklistGuideBrowser.cpp.

19{
20 setOpenLinks (false); // Disable automatic link following
21 setMinimumWidth(MIN_WIDTH_BROWSER);
22
23 connect (this, SIGNAL (anchorClicked (const QUrl &)), this, SLOT (slotAnchorClicked (const QUrl &)));
24}
const int MIN_WIDTH_BROWSER

Member Function Documentation

◆ setTemplateHtml()

void ChecklistGuideBrowser::setTemplateHtml ( const QString & html,
const QStringList & curveNames )
virtual

Populate the browser with template html. The template html will be converted to real html.

Definition at line 251 of file ChecklistGuideBrowser.cpp.

253{
254 m_templateHtml = html;
255 m_curveNames = curveNames;
256
257 refresh();
258}

◆ update()

void ChecklistGuideBrowser::update ( const CmdMediator & cmdMediator,
bool documentIsExported )

Update using current CmdMediator/Document state.

Definition at line 272 of file ChecklistGuideBrowser.cpp.

274{
275 LOG4CPP_INFO_S ((*mainCat)) << "ChecklistGuideBrowser::update";
276
277 repopulateCheckedTags(cmdMediator,
278 documentIsExported);
279
280 refresh();
281}
log4cpp::Category * mainCat
Definition Logger.cpp:14
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18

The documentation for this class was generated from the following files: