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 
QString name() const
Method for getting style name.
bool load(QString fl)
Method for loading and parsing style.
QSyntaxStyle(QObject *parent=nullptr)
Constructor.
Definition: QSyntaxStyle.cpp:9
Class, that describes Qt style parser for QCodeEditor.
bool isLoaded() const
Method for checking is syntax style loaded.
QString m_name
QTextCharFormat getFormat(QString name) const
Method for getting format for property name.
static QSyntaxStyle * defaultStyle()
Static method for getting default style.
QMap< QString, QTextCharFormat > m_data


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:01:38