itom
Loading...
Searching...
No Matches
ito::AutoIndentMode Class Reference
Inheritance diagram for ito::AutoIndentMode:
ito::Mode ito::PyAutoIndentMode

Public Member Functions

 AutoIndentMode (const QString &name, const QString &description="", QObject *parent=NULL)
 
virtual void onStateChanged (bool state)
 
void setKeyPressedModifiers (Qt::KeyboardModifiers modifiers)
 
Qt::KeyboardModifiers keyPressedModifiers () const
 
void setAutoStripTrailingSpacesAfterReturn (bool strip)
 
bool autoStripTrailingSpacesAfterReturn () const
 
void enableAutoIndent (bool autoIndent)
 
bool isAutoIndentEnabled () const
 
- 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 onInstall (CodeEditor *editor)
 
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

QChar indentChar () const
 
QString singleIndent () const
 
virtual QPair< QString, QString > getIndent (const QTextCursor &cursor) const
 

Private Slots

void onKeyPressed (QKeyEvent *e)
 

Private Attributes

Qt::KeyboardModifiers m_keyPressedModifiers
 
bool m_autoStripTrailingSpacesAfterReturn
 
bool m_enableAutoIndent
 

Additional Inherited Members

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

Member Function Documentation

◆ onStateChanged()

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

Reimplemented from ito::Mode.


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