CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxHelpBrowser.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXHELPBROWSER_H
13 #define CXHELPBROWSER_H
14 
15 #include "boost/shared_ptr.hpp"
16 #include <QTextBrowser>
17 #include "org_custusx_help_Export.h"
18 
19 namespace cx
20 {
21 typedef boost::shared_ptr<class HelpEngine> HelpEnginePtr;
22 
30 class org_custusx_help_EXPORT HelpBrowser : public QTextBrowser
31 {
32  Q_OBJECT
33 
34 public:
35  HelpBrowser(QWidget *parent, HelpEnginePtr engine);
36  virtual void setSource(const QUrl& name);
37  void listenToEngineKeywordActivated();
38 
39 public slots:
40  void showHelpForKeyword(const QString &id);
41 
42 private:
43  virtual QVariant loadResource(int type, const QUrl &name);
44  HelpEnginePtr mEngine;
45 };
46 
47 
48 }//end namespace cx
49 
50 #endif // CXHELPBROWSER_H
boost::shared_ptr< HelpEngine > HelpEnginePtr
Definition: cxHelpEngine.h:61
Namespace for all CustusX production code.