Engauge Digitizer  2
Public Member Functions | List of all members
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. More...
 
virtual void setTemplateHtml (const QString &html, const QStringList &curveNames)
 Populate the browser with template html. The template html will be converted to real html. More...
 
void update (const CmdMediator &cmdMediator, bool documentIsExported)
 Update using current CmdMediator/Document state. More...
 

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 17 of file ChecklistGuideBrowser.cpp.

18 {
19  setOpenLinks (false); // Disable automatic link following
20  setMinimumWidth(MIN_WIDTH_BROWSER);
21 
22  connect (this, SIGNAL (anchorClicked (const QUrl &)), this, SLOT (slotAnchorClicked (const QUrl &)));
23 }
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 249 of file ChecklistGuideBrowser.cpp.

251 {
252  m_templateHtml = html;
253  m_curveNames = curveNames;
254 
255  refresh();
256 }

◆ update()

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

Update using current CmdMediator/Document state.

Definition at line 270 of file ChecklistGuideBrowser.cpp.

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

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