00001 /****************************************************************************************************** 00002 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 00003 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 00004 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 00005 ******************************************************************************************************/ 00006 00007 #ifndef CHECKLIST_GUIDE_H 00008 #define CHECKLIST_GUIDE_H 00009 00010 #include <QDockWidget> 00011 00012 class ChecklistGuideBrowser; 00013 class CmdMediator; 00014 00016 class ChecklistGuide : public QDockWidget 00017 { 00018 Q_OBJECT; 00019 00020 public: 00022 ChecklistGuide (QWidget *parent); 00023 00025 bool browserIsEmpty () const; 00026 00028 virtual void closeEvent(QCloseEvent *event); 00029 00031 void setTemplateHtml (const QString &html, 00032 const QStringList &curveNames); 00033 00035 void update (const CmdMediator &cmdMediator, 00036 bool documentIsExported); 00037 00038 signals: 00040 void signalChecklistClosed(); 00041 00042 private: 00043 ChecklistGuide (); 00044 00045 // Display information using html, which is possible with QTextBrowser, so images can be embedded. Although the 00046 // format is structured as a tree, a tree widget is not used since tree widgets are not compatible with embedded images 00047 // (other than optional tree item icons on the left) 00048 ChecklistGuideBrowser *m_browser; 00049 }; 00050 00051 #endif // CHECKLIST_GUIDE_H