|
enum | Symbols { Paren = 0
, Square = 2
, Brace = 4
} |
|
enum | CharType { Open = 0
, Close = 1
} |
|
typedef QSharedPointer< Mode > | Ptr |
|
|
| SymbolMatcherMode (const QString &description="", QObject *parent=NULL) |
|
QBrush | matchBackground () const |
|
void | setMatchBackground (const QBrush &value) |
|
QColor | matchForeground () const |
|
void | setMatchForeground (const QColor &value) |
|
QBrush | unmatchBackground () const |
|
void | setUnmatchBackground (const QBrush &value) |
|
QColor | unmatchForeground () const |
|
void | setUnmatchForeground (const QColor &value) |
|
virtual void | onStateChanged (bool state) |
|
QPoint | symbolPos (const QTextCursor &cursor, CharType charType=Open, Symbols symbolType=Paren) |
| return value is line (x) and column (y)
|
|
| Mode (const Mode ©) |
|
| Mode (const QString &name, const QString &description="") |
|
bool | operator== (const Mode &other) const |
|
virtual void | onInstall (CodeEditor *editor) |
|
virtual void | onUninstall () |
|
QString | name () const |
|
bool | enabled () const |
|
void | setEnabled (bool enabled) |
|
CodeEditor * | editor () const |
|
bool | onClose () const |
|
virtual QList< QAction * > | actions () const |
|
|
static const QByteArray | chars = "()[]{}" |
|
|
QTextCursor | createDecoration (int pos, bool match=true) |
|
void | clearDecorations () |
|
void | match (Symbols symbol, QList< Utils::ParenthesisInfo > &data, int cursorPos) |
|
bool | matchLeft (SymbolMatcherMode::Symbols symbol, const QTextBlock ¤tBlock, int i, int cpt) |
|
bool | matchRight (SymbolMatcherMode::Symbols symbol, const QTextBlock ¤tBlock, int i, int nbRightParen) |
|
void | refreshDecorations () |
|
|
QBrush | m_matchBackground |
|
QColor | m_matchForeground |
|
QBrush | m_unmatchBackground |
|
QColor | m_unmatchForeground |
|
QList< TextDecoration::Ptr > | m_decorations |
|
|
void | doSymbolsMatching () |
|
◆ onStateChanged()
void ito::SymbolMatcherMode::onStateChanged |
( |
bool | state | ) |
|
|
virtual |
The documentation for this class was generated from the following files:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/Qitom/codeEditor/modes/symbolMatcherMode.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/Qitom/codeEditor/modes/symbolMatcherMode.cpp