ADTF  3.18.3
xml_text_widget.h
Go to the documentation of this file.
1 
8 /*
9  * This file depends on Qt which is licensed under LGPLv3.
10  * See ADTF_DIR/3rdparty/qt5 and doc/license for detailed information.
11  */
12 #pragma once
13 
14 #include <QString>
15 #include <QSyntaxHighlighter>
16 #include <QTextBrowser>
17 #include <QWidget>
18 
19 namespace adtf
20 {
21 namespace ui
22 {
23 namespace widget
24 {
25 namespace osborn
26 {
27 
29 class cXmlTextWidget : public QWidget
30 {
31 public:
36  cXmlTextWidget(QWidget* pParent = nullptr);
37 
39  void Clear();
41  QString XmlText() const;
43  void SetXmlText(const QString& strXML);
44 
45 private:
46  void UpdateXMLTextBrowser();
47 
48 private:
49  QString m_strXML;
50  QTextBrowser* m_pXMLTextBrowser = nullptr;
51 };
52 
53 }
55 }
56 }
57 }
cXmlTextWidget can display XML using a syntax highlighter.
void SetXmlText(const QString &strXML)
Set XML as text.
cXmlTextWidget(QWidget *pParent=nullptr)
Constructor.
QString XmlText() const
Returns XML as text.
Namespace for entire ADTF SDK.