itom
Loading...
Searching...
No Matches
ito::SyntaxHighlighterBase Class Referenceabstract
Inheritance diagram for ito::SyntaxHighlighterBase:
ito::Mode ito::PythonSyntaxHighlighter

Public Member Functions

 SyntaxHighlighterBase (const QString &name, QTextDocument *parent, const QString &description="", QSharedPointer< CodeEditorStyle > editorStyle=QSharedPointer< CodeEditorStyle >())
 
void setFoldDetector (QSharedPointer< FoldDetector > foldDetector)
 
virtual void onStateChanged (bool state)
 
virtual void onInstall (CodeEditor *editor)
 
QSharedPointer< CodeEditorStyleeditorStyle () const
 
void highlightBlock (const QString &text)
 
void refreshEditor (QSharedPointer< CodeEditorStyle > editorStyle)
 
virtual void highlight_block (const QString &text, QTextBlock &block)=0
 
virtual void default_highlight_block (const QString &text, const TextBlockUserData *textBlockUserData)=0
 
virtual void rehighlight ()
 
- Public Member Functions inherited from ito::Mode
 Mode (const Mode &copy)
 
 Mode (const QString &name, const QString &description="")
 
bool operator== (const Mode &other) const
 
virtual void onUninstall ()
 
QString name () const
 
bool enabled () const
 
void setEnabled (bool enabled)
 
CodeEditoreditor () const
 
bool onClose () const
 
virtual QList< QAction * > actions () const
 

Protected Member Functions

void highlightWhitespaces (const QString &text)
 

Static Protected Member Functions

static QTextBlock findPrevNonBlankBlock (const QTextBlock &currentBlock)
 

Protected Attributes

QRegularExpression m_regWhitespaces
 
QRegularExpression m_regSpacesPtrn
 
QSharedPointer< CodeEditorStylem_editorStyle
 
QSharedPointer< FoldDetectorm_foldDetector
 

Additional Inherited Members

- Public Types inherited from ito::Mode
typedef QSharedPointer< ModePtr
 

Member Function Documentation

◆ onInstall()

void ito::SyntaxHighlighterBase::onInstall ( CodeEditor * editor)
virtual

Reimplemented from ito::Mode.

◆ onStateChanged()

void ito::SyntaxHighlighterBase::onStateChanged ( bool state)
virtual

Reimplemented from ito::Mode.


The documentation for this class was generated from the following files: