Engauge Digitizer 2
Loading...
Searching...
No Matches
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.
 
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 17 of file ChecklistGuideBrowser.cpp.

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

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,
277
278 refresh();
279}
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: