KateDocumentConfig Class Reference
Inheritance diagram for KateDocumentConfig:

Detailed Description
Definition at line 89 of file kateconfig.h.
Public Types | |
imNone = 0 | |
imNormal = 1 | |
imCStyle = 2 | |
imPythonStyle = 3 | |
imXmlStyle = 4 | |
imCSAndS = 5 | |
imVarIndent = 6 | |
imScriptIndent = 7 | |
cfBackspaceIndents = 0x2 | |
cfWordWrap = 0x4 | |
cfRemoveSpaces = 0x10 | |
cfWrapCursor = 0x20 | |
cfAutoBrackets = 0x40 | |
cfTabIndentsMode = 0x200 | |
cfOvr = 0x1000 | |
cfKeepIndentProfile = 0x8000 | |
cfKeepExtraSpaces = 0x10000 | |
cfTabIndents = 0x80000 | |
cfShowTabs = 0x200000 | |
cfSpaceIndent = 0x400000 | |
cfSmartHome = 0x800000 | |
cfTabInsertsTab = 0x1000000 | |
cfReplaceTabsDyn = 0x2000000 | |
cfRemoveTrailingDyn = 0x4000000 | |
cfDoxygenAutoTyping = 0x8000000 | |
cfMixedIndent = 0x10000000 | |
eolUnix = 0 | |
eolDos = 1 | |
eolMac = 2 | |
LocalFiles = 1 | |
RemoteFiles = 2 | |
enum | IndentationMode { imNone = 0, imNormal = 1, imCStyle = 2, imPythonStyle = 3, imXmlStyle = 4, imCSAndS = 5, imVarIndent = 6, imScriptIndent = 7 } |
enum | ConfigFlags { cfBackspaceIndents = 0x2, cfWordWrap = 0x4, cfRemoveSpaces = 0x10, cfWrapCursor = 0x20, cfAutoBrackets = 0x40, cfTabIndentsMode = 0x200, cfOvr = 0x1000, 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) |
bool | allowEolDetection () const |
void | setAllowEolDetection (bool on) |
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 |
Constructor & Destructor Documentation
KateDocumentConfig::KateDocumentConfig | ( | KateDocument * | doc | ) |
KateDocumentConfig::~KateDocumentConfig | ( | ) |
Member Function Documentation
void KateDocumentConfig::readConfig | ( | KConfig * | config | ) |
int KateDocumentConfig::searchDirConfigDepth | ( | ) | const |
Should Kate Part search for dir wide config file and if, how depth?
- Returns:
- search depth (< 0 no search)
Definition at line 591 of file kateconfig.cpp.
void KateDocumentConfig::updateConfig | ( | ) | [protected, virtual] |
void KateDocumentConfig::writeConfig | ( | KConfig * | config | ) |
The documentation for this class was generated from the following files: