79 AutoIndentMode(
const QString &name,
const QString &description =
"", QObject *parent = NULL);
82 virtual void onStateChanged(
bool state);
84 void setKeyPressedModifiers(Qt::KeyboardModifiers modifiers);
85 Qt::KeyboardModifiers keyPressedModifiers()
const;
87 void setAutoStripTrailingSpacesAfterReturn(
bool strip);
88 bool autoStripTrailingSpacesAfterReturn()
const;
90 void enableAutoIndent(
bool autoIndent);
91 bool isAutoIndentEnabled()
const;
94 void onKeyPressed(QKeyEvent *e);
97 QChar indentChar()
const;
98 QString singleIndent()
const;
99 virtual QPair<QString, QString> getIndent(
const QTextCursor &cursor)
const;
102 Qt::KeyboardModifiers m_keyPressedModifiers;
103 bool m_autoStripTrailingSpacesAfterReturn;
104 bool m_enableAutoIndent;