QSyntaxStyle.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // Qt
4 #include <QObject> // Required for inheritance
5 #include <QMap>
6 #include <QString>
7 #include <QTextCharFormat>
8 
13 class QSyntaxStyle : public QObject
14 {
15  Q_OBJECT
16 
17 public:
18 
23  explicit QSyntaxStyle(QObject* parent=nullptr);
24 
31  bool load(QString fl);
32 
37  QString name() const;
38 
43  bool isLoaded() const;
44 
51  QTextCharFormat getFormat(QString name) const;
52 
57  static QSyntaxStyle* defaultStyle();
58 
59 private:
60 
61  QString m_name;
62 
63  QMap<
64  QString,
65  QTextCharFormat
66  > m_data;
67 
68  bool m_loaded;
69 };
70 
QSyntaxStyle::name
QString name() const
Method for getting style name.
Definition: QSyntaxStyle.cpp:117
QSyntaxStyle::m_loaded
bool m_loaded
Definition: QSyntaxStyle.hpp:68
QSyntaxStyle::load
bool load(QString fl)
Method for loading and parsing style.
Definition: QSyntaxStyle.cpp:18
QSyntaxStyle::QSyntaxStyle
QSyntaxStyle(QObject *parent=nullptr)
Constructor.
Definition: QSyntaxStyle.cpp:9
QSyntaxStyle::isLoaded
bool isLoaded() const
Method for checking is syntax style loaded.
Definition: QSyntaxStyle.cpp:134
QMap
Definition: qwt_compass.h:19
QSyntaxStyle::m_data
QMap< QString, QTextCharFormat > m_data
Definition: QSyntaxStyle.hpp:66
QSyntaxStyle::m_name
QString m_name
Definition: QSyntaxStyle.hpp:61
QSyntaxStyle::getFormat
QTextCharFormat getFormat(QString name) const
Method for getting format for property name.
Definition: QSyntaxStyle.cpp:122
QSyntaxStyle::defaultStyle
static QSyntaxStyle * defaultStyle()
Static method for getting default style.
Definition: QSyntaxStyle.cpp:139
QSyntaxStyle
Class, that describes Qt style parser for QCodeEditor.
Definition: QSyntaxStyle.hpp:13


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45