| 1 | #cxx . . $ `<file>/include/internal/QSyntaxStyle.hpp`/pragma once |
| 2 | |
| 3 | // Qt |
| 4 | #include <QObject> // Required for inheritance |
| 5 | #include <QMap> |
| 6 | #include <QString> |
| 7 | #include <QTextCharFormat> |
| 8 | |
| 9 | /** |
| 10 | * @brief Class, that describes Qt style |
| 11 | * parser for QCodeEditor. |
| 12 | */ |
| 13 | class QSyntaxStylecxx . . $ QSyntaxStyle# : public QObjectcxx . . $ QObject# |
| 14 | { |
| 15 | Q_OBJECTcxx . . $ QSyntaxStyle#QPrivateSignal# |
| 16 | |
| 17 | public: |
| 18 | |
| 19 | /** |
| 20 | * @brief Constructor. |
| 21 | * @param parent Pointer to parent QObject |
| 22 | */ |
| 23 | explicit QSyntaxStylecxx . . $ QSyntaxStyle#QSyntaxStyle(749de1b6ae65bddd).(QObjectcxx . . $ QObject#* parent=nullptr); |
| 24 | |
| 25 | /** |
| 26 | * @brief Method for loading and parsing |
| 27 | * style. |
| 28 | * @param fl Style. |
| 29 | * @return Success. |
| 30 | */ |
| 31 | bool loadcxx . . $ QSyntaxStyle#load(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# fl); |
| 32 | |
| 33 | /** |
| 34 | * @brief Method for getting style name. |
| 35 | * @return Name. |
| 36 | */ |
| 37 | QStringcxx . . $ QString# namecxx . . $ QSyntaxStyle#name(6ef7b6c27b00b43d).() const; |
| 38 | |
| 39 | /** |
| 40 | * @brief Method for checking is syntax style loaded. |
| 41 | * @return Is loaded. |
| 42 | */ |
| 43 | bool isLoadedcxx . . $ QSyntaxStyle#isLoaded(50ce9a9e25b4a850).() const; |
| 44 | |
| 45 | /** |
| 46 | * @brief Method for getting format for property |
| 47 | * name. |
| 48 | * @param name Property name. |
| 49 | * @return Text char format. |
| 50 | */ |
| 51 | QTextCharFormatcxx . . $ QTextCharFormat# getFormatcxx . . $ QSyntaxStyle#getFormat(5b7fd501ba56a402).(QStringcxx . . $ QString# name) const; |
| 52 | |
| 53 | /** |
| 54 | * @brief Static method for getting default style. |
| 55 | * @return Pointer to default style. |
| 56 | */ |
| 57 | static QSyntaxStylecxx . . $ QSyntaxStyle#* defaultStylecxx . . $ QSyntaxStyle#defaultStyle(4772fd1b605239d8).(); |
| 58 | |
| 59 | private: |
| 60 | |
| 61 | QStringcxx . . $ QString# m_namecxx . . $ QSyntaxStyle#m_name.; |
| 62 | |
| 63 | QMapcxx . . $ QMap#< |
| 64 | QStringcxx . . $ QString#, |
| 65 | QTextCharFormatcxx . . $ QTextCharFormat# |
| 66 | > m_datacxx . . $ QSyntaxStyle#m_data.; |
| 67 | |
| 68 | bool m_loadedcxx . . $ QSyntaxStyle#m_loaded.; |
| 69 | }; |
| 70 |