7 #include "ChecklistGuide.h" 8 #include "ChecklistGuideBrowser.h" 9 #include "CmdMediator.h" 10 #include "EngaugeAssert.h" 12 #include <QTextBrowser> 19 setAllowedAreas (Qt::AllDockWidgetAreas);
20 setWindowTitle (tr (
"Checklist Guide"));
21 setStatusTip (tr (
"Checklist Guide"));
22 setWhatsThis (tr (
"Checklist Guide\n\n" 23 "This box contains a checklist of steps suggested by the Checklist Guide Wizard. Following " 24 "these steps should produce a set of digitized points in an output file.\n\n" 25 "To run the Checklist Guide Wizard when an image file is imported, select the " 26 "Help / Checklist Wizard menu option."));
29 setWidget (m_browser);
34 return m_browser->toPlainText().isEmpty();
39 LOG4CPP_INFO_S ((*mainCat)) <<
"ChecklistGuide::closeEvent";
45 const QStringList &curveNames)
47 LOG4CPP_INFO_S ((*mainCat)) <<
"ChecklistGuide::setTemplateHtml";
54 bool documentIsExported)
56 LOG4CPP_INFO_S ((*mainCat)) <<
"ChecklistGuide::update";
58 ENGAUGE_CHECK_PTR (m_browser);
60 m_browser->
update (cmdMediator,
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.
void signalChecklistClosed()
Signal that this QDockWidget was just closed.
Class that adds rudimentary tree collapse/expand functionality to QTextBrowser.
virtual void closeEvent(QCloseEvent *event)
Catch close event so corresponding menu item in MainWindow can be updated accordingly.
ChecklistGuide(QWidget *parent)
Single constructor. Parent is needed or else this widget cannot be redocked after being undocked...
void update(const CmdMediator &cmdMediator, bool documentIsExported)
Update using current CmdMediator/Document state.
bool browserIsEmpty() const
When browser is empty, it is pointless to show it.
void setTemplateHtml(const QString &html, const QStringList &curveNames)
Populate the browser with template html.