Kate
KateDocumentConfig Class Reference
#include <kateconfig.h>

Public Types | |
enum | BackupFlags { LocalFiles = 1, RemoteFiles = 2 } |
enum | ConfigFlags { cfBackspaceIndents = 0x2, cfWordWrap = 0x4, cfRemoveSpaces = 0x10, cfWrapCursor = 0x20, cfAutoBrackets = 0x40, cfTabIndentsMode = 0x200, cfOvr = 0x1000, cfKeepExtraSpaces = 0x10000, cfTabIndents = 0x80000, cfShowTabs = 0x200000, cfShowSpaces = 0x400000, cfSmartHome = 0x800000, cfTabInsertsTab = 0x1000000, cfReplaceTabsDyn = 0x2000000, cfRemoveTrailingDyn = 0x4000000, cfIndentPastedText = 0x10000000 } |
enum | Eol { eolUnix = 0, eolDos = 1, eolMac = 2 } |
enum | TabHandling { tabInsertsTab = 0, tabIndents = 1, tabSmart = 2 } |
Public Member Functions | |
bool | allowEolDetection () const |
bool | allowSimpleMode () const |
uint | backupFlags () const |
const QString & | backupPrefix () const |
const QString & | backupSuffix () const |
QTextCodec * | codec () const |
uint | configFlags () const |
const QString & | encoding () const |
KEncodingProber::ProberType | encodingProberType () const |
int | eol () const |
QString | eolString () |
const QString & | indentationMode () const |
int | indentationWidth () const |
bool | isGlobal () const |
bool | isSetEncoding () const |
KateDocumentConfig (KateDocument *doc) | |
bool | pageUpDownMovesCursor () const |
void | readConfig (const KConfigGroup &config) |
int | searchDirConfigDepth () const |
void | setAllowEolDetection (bool on) |
void | setAllowSimpleMode (bool on) |
void | setBackupFlags (uint flags) |
void | setBackupPrefix (const QString &prefix) |
void | setBackupSuffix (const QString &suffix) |
void | setConfigFlags (uint fullFlags) |
void | setConfigFlags (KateDocumentConfig::ConfigFlags flag, bool enable) |
bool | setEncoding (const QString &encoding, bool resetDetection=true) |
void | setEncodingProberType (KEncodingProber::ProberType) |
void | setEol (int mode) |
void | setIndentationMode (const QString &identationMode) |
void | setIndentationWidth (int indentationWidth) |
void | setPageUpDownMovesCursor (bool on) |
void | setSearchDirConfigDepth (int depth) |
void | setTabHandling (uint tabHandling) |
void | setTabWidth (int tabWidth) |
void | setWordWrap (bool on) |
void | setWordWrapAt (unsigned int col) |
uint | tabHandling () const |
int | tabWidth () const |
bool | wordWrap () const |
unsigned int | wordWrapAt () const |
void | writeConfig (KConfigGroup &config) |
~KateDocumentConfig () | |
Static Public Member Functions | |
static KateDocumentConfig * | global () |
Protected Member Functions | |
void | updateConfig () |
Detailed Description
Definition at line 90 of file kateconfig.h.
Member Enumeration Documentation
- Enumerator:
Definition at line 158 of file kateconfig.h.
Definition at line 139 of file kateconfig.h.
Constructor & Destructor Documentation
KateDocumentConfig::KateDocumentConfig | ( | KateDocument * | doc | ) |
KateDocumentConfig::~KateDocumentConfig | ( | ) |
Member Function Documentation
bool KateDocumentConfig::allowEolDetection | ( | ) | const |
Definition at line 511 of file kateconfig.cpp.
bool KateDocumentConfig::allowSimpleMode | ( | ) | const |
Definition at line 530 of file kateconfig.cpp.
uint KateDocumentConfig::backupFlags | ( | ) | const |
Definition at line 548 of file kateconfig.cpp.
const QString & KateDocumentConfig::backupPrefix | ( | ) | const |
Definition at line 566 of file kateconfig.cpp.
const QString & KateDocumentConfig::backupSuffix | ( | ) | const |
Definition at line 574 of file kateconfig.cpp.
QTextCodec * KateDocumentConfig::codec | ( | ) | const |
Definition at line 408 of file kateconfig.cpp.
uint KateDocumentConfig::configFlags | ( | ) | const |
Definition at line 368 of file kateconfig.cpp.
const QString & KateDocumentConfig::encoding | ( | ) | const |
Definition at line 400 of file kateconfig.cpp.
KEncodingProber::ProberType KateDocumentConfig::encodingProberType | ( | ) | const |
Definition at line 465 of file kateconfig.cpp.
int KateDocumentConfig::eol | ( | ) | const |
Definition at line 481 of file kateconfig.cpp.
QString KateDocumentConfig::eolString | ( | ) |
Definition at line 489 of file kateconfig.cpp.
static KateDocumentConfig* KateDocumentConfig::global | ( | ) | [inline, static] |
Definition at line 111 of file kateconfig.h.
const QString & KateDocumentConfig::indentationMode | ( | ) | const |
Definition at line 274 of file kateconfig.cpp.
int KateDocumentConfig::indentationWidth | ( | ) | const |
Definition at line 253 of file kateconfig.cpp.
bool KateDocumentConfig::isGlobal | ( | ) | const [inline] |
Definition at line 113 of file kateconfig.h.
bool KateDocumentConfig::isSetEncoding | ( | ) | const |
Definition at line 460 of file kateconfig.cpp.
bool KateDocumentConfig::pageUpDownMovesCursor | ( | ) | const |
Definition at line 350 of file kateconfig.cpp.
void KateDocumentConfig::readConfig | ( | const KConfigGroup & | 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 602 of file kateconfig.cpp.
void KateDocumentConfig::setAllowEolDetection | ( | bool | on | ) |
Definition at line 519 of file kateconfig.cpp.
void KateDocumentConfig::setAllowSimpleMode | ( | bool | on | ) |
Definition at line 538 of file kateconfig.cpp.
void KateDocumentConfig::setBackupFlags | ( | uint | flags | ) |
Definition at line 556 of file kateconfig.cpp.
void KateDocumentConfig::setBackupPrefix | ( | const QString & | prefix | ) |
Definition at line 582 of file kateconfig.cpp.
void KateDocumentConfig::setBackupSuffix | ( | const QString & | suffix | ) |
Definition at line 592 of file kateconfig.cpp.
void KateDocumentConfig::setConfigFlags | ( | uint | fullFlags | ) |
Definition at line 390 of file kateconfig.cpp.
void KateDocumentConfig::setConfigFlags | ( | KateDocumentConfig::ConfigFlags | flag, | |
bool | enable | |||
) |
Definition at line 376 of file kateconfig.cpp.
bool KateDocumentConfig::setEncoding | ( | const QString & | encoding, | |
bool | resetDetection = true | |||
) |
Definition at line 423 of file kateconfig.cpp.
void KateDocumentConfig::setEncodingProberType | ( | KEncodingProber::ProberType | proberType | ) |
Definition at line 470 of file kateconfig.cpp.
void KateDocumentConfig::setEol | ( | int | mode | ) |
Definition at line 501 of file kateconfig.cpp.
void KateDocumentConfig::setIndentationMode | ( | const QString & | identationMode | ) |
Definition at line 282 of file kateconfig.cpp.
void KateDocumentConfig::setIndentationWidth | ( | int | indentationWidth | ) |
Definition at line 261 of file kateconfig.cpp.
void KateDocumentConfig::setPageUpDownMovesCursor | ( | bool | on | ) |
Definition at line 358 of file kateconfig.cpp.
void KateDocumentConfig::setSearchDirConfigDepth | ( | int | depth | ) |
Definition at line 610 of file kateconfig.cpp.
void KateDocumentConfig::setTabHandling | ( | uint | tabHandling | ) |
Definition at line 302 of file kateconfig.cpp.
void KateDocumentConfig::setTabWidth | ( | int | tabWidth | ) |
Definition at line 240 of file kateconfig.cpp.
void KateDocumentConfig::setWordWrap | ( | bool | on | ) |
Definition at line 319 of file kateconfig.cpp.
void KateDocumentConfig::setWordWrapAt | ( | unsigned int | col | ) |
Definition at line 337 of file kateconfig.cpp.
uint KateDocumentConfig::tabHandling | ( | ) | const |
Definition at line 292 of file kateconfig.cpp.
int KateDocumentConfig::tabWidth | ( | ) | const |
Definition at line 232 of file kateconfig.cpp.
void KateDocumentConfig::updateConfig | ( | ) | [protected, virtual] |
bool KateDocumentConfig::wordWrap | ( | ) | const |
Definition at line 311 of file kateconfig.cpp.
unsigned int KateDocumentConfig::wordWrapAt | ( | ) | const |
Definition at line 329 of file kateconfig.cpp.
void KateDocumentConfig::writeConfig | ( | KConfigGroup & | config | ) |
The documentation for this class was generated from the following files: