KateDocumentConfig Class Reference
Inheritance diagram for KateDocumentConfig:

Public Types | |
| enum | IndentationMode { imNone = 0, imNormal = 1, imCStyle = 2, imPythonStyle = 3, imXmlStyle = 4, imCSAndS = 5, imVarIndent = 6 } |
| enum | ConfigFlags { cfBackspaceIndents = 0x2, cfWordWrap = 0x4, cfReplaceTabs = 0x8, cfRemoveSpaces = 0x10, cfWrapCursor = 0x20, cfAutoBrackets = 0x40, cfPersistent = 0x80, cfKeepSelection = 0x100, cfTabIndentsMode = 0x200, cfDelOnInput = 0x400, cfXorSelect = 0x800, cfOvr = 0x1000, cfMark = 0x2000, cfKeepIndentProfile = 0x8000, cfKeepExtraSpaces = 0x10000, cfTabIndents = 0x80000, cfShowTabs = 0x200000, cfSpaceIndent = 0x400000, cfSmartHome = 0x800000, cfTabInsertsTab = 0x1000000, cfReplaceTabsDyn = 0x2000000, cfRemoveTrailingDyn = 0x4000000, cfDoxygenAutoTyping = 0x8000000, cfMixedIndent = 0x10000000 } |
| enum | Eol { eolUnix = 0, eolDos = 1, eolMac = 2 } |
| enum | BackupFlags { LocalFiles = 1, RemoteFiles = 2 } |
Public Member Functions | |
| KateDocumentConfig (KateDocument *doc) | |
| ~KateDocumentConfig () | |
| bool | isGlobal () const |
| void | readConfig (KConfig *config) |
| void | writeConfig (KConfig *config) |
| int | tabWidth () const |
| void | setTabWidth (int tabWidth) |
| int | indentationWidth () const |
| void | setIndentationWidth (int indentationWidth) |
| uint | indentationMode () const |
| void | setIndentationMode (uint identationMode) |
| bool | wordWrap () const |
| void | setWordWrap (bool on) |
| unsigned int | wordWrapAt () const |
| void | setWordWrapAt (unsigned int col) |
| uint | undoSteps () const |
| void | setUndoSteps (uint undoSteps) |
| bool | pageUpDownMovesCursor () const |
| void | setPageUpDownMovesCursor (bool on) |
| uint | configFlags () const |
| void | setConfigFlags (KateDocumentConfig::ConfigFlags flag, bool enable) |
| void | setConfigFlags (uint fullFlags) |
| const QString & | encoding () const |
| QTextCodec * | codec () |
| void | setEncoding (const QString &encoding) |
| bool | isSetEncoding () const |
| int | eol () const |
| QString | eolString () |
| void | setEol (int mode) |
| uint | backupFlags () const |
| void | setBackupFlags (uint flags) |
| const QString & | backupPrefix () const |
| void | setBackupPrefix (const QString &prefix) |
| const QString & | backupSuffix () const |
| void | setBackupSuffix (const QString &suffix) |
| bool | plugin (uint index) const |
| void | setPlugin (uint index, bool load) |
| int | searchDirConfigDepth () const |
| void | setSearchDirConfigDepth (int depth) |
Static Public Member Functions | |
| static KateDocumentConfig * | global () |
Protected Member Functions | |
| void | updateConfig () |
Friends | |
| class | KateFactory |
Detailed Description
Definition at line 89 of file kateconfig.h.
Constructor & Destructor Documentation
|
|
Construct a DocumentConfig.
Definition at line 121 of file kateconfig.cpp. References QBitArray::fill(). |
|
|
Cu DocumentConfig.
Definition at line 146 of file kateconfig.cpp. |
Member Function Documentation
|
|
Read config from object.
Definition at line 150 of file kateconfig.cpp. References KateConfig::configEnd(), KateConfig::configStart(), KateFactory::plugins(), KConfigBase::readBoolEntry(), KConfigBase::readEntry(), KConfigBase::readNumEntry(), KateFactory::self(), setBackupFlags(), setBackupPrefix(), setBackupSuffix(), setConfigFlags(), setEncoding(), setEol(), setIndentationMode(), setIndentationWidth(), setPageUpDownMovesCursor(), setPlugin(), setSearchDirConfigDepth(), setTabWidth(), setUndoSteps(), setWordWrap(), and setWordWrapAt(). Referenced by KateDocument::readConfig(). |
|
|
Write config to object.
Definition at line 190 of file kateconfig.cpp. References backupFlags(), backupPrefix(), backupSuffix(), configFlags(), encoding(), eol(), indentationMode(), indentationWidth(), pageUpDownMovesCursor(), plugin(), searchDirConfigDepth(), KateFactory::self(), tabWidth(), undoSteps(), wordWrap(), wordWrapAt(), and KConfigBase::writeEntry(). Referenced by KateDocument::writeConfig(). |
|
|
do the real update
Implements KateConfig. Definition at line 223 of file kateconfig.cpp. References QPtrList::at(), KateFactory::documents(), isGlobal(), KateFactory::self(), and KateDocument::updateConfig(). |
|
|
Should Kate Part search for dir wide config file and if, how depth?
Definition at line 569 of file kateconfig.cpp. References isGlobal(), and searchDirConfigDepth(). Referenced by searchDirConfigDepth(), and writeConfig(). |
The documentation for this class was generated from the following files:
