kate Library API Documentation

KateViewConfig Class Reference

Inheritance diagram for KateViewConfig:

Inheritance graph
[legend]
Collaboration diagram for KateViewConfig:

Collaboration graph
[legend]
List of all members.

Public Types

enum  TextToSearch {
  Nowhere = 0, SelectionOnly = 1, SelectionWord = 2, WordOnly = 3,
  WordSelection = 4
}

Public Member Functions

 KateViewConfig (KateView *view)
 ~KateViewConfig ()
bool isGlobal () const
void readConfig (KConfig *config)
void writeConfig (KConfig *config)
bool dynWordWrap () const
void setDynWordWrap (bool wrap)
int dynWordWrapIndicators () const
void setDynWordWrapIndicators (int mode)
int dynWordWrapAlignIndent () const
void setDynWordWrapAlignIndent (int indent)
bool lineNumbers () const
void setLineNumbers (bool on)
bool scrollBarMarks () const
void setScrollBarMarks (bool on)
bool iconBar () const
void setIconBar (bool on)
bool foldingBar () const
void setFoldingBar (bool on)
int bookmarkSort () const
void setBookmarkSort (int mode)
int autoCenterLines () const
void setAutoCenterLines (int lines)
long searchFlags () const
void setSearchFlags (long flags)
bool cmdLine () const
void setCmdLine (bool on)
uint defaultMarkType () const
void setDefaultMarkType (uint type)
int textToSearchMode () const
void setTextToSearchMode (int mode)

Static Public Member Functions

static KateViewConfigglobal ()

Protected Member Functions

void updateConfig ()

Friends

class KateFactory

Detailed Description

Definition at line 277 of file kateconfig.h.


Constructor & Destructor Documentation

KateViewConfig::KateViewConfig KateView view  ) 
 

Construct a DocumentConfig.

Definition at line 615 of file kateconfig.cpp.

KateViewConfig::~KateViewConfig  ) 
 

Cu DocumentConfig.

Definition at line 634 of file kateconfig.cpp.


Member Function Documentation

void KateViewConfig::readConfig KConfig config  ) 
 

Read config from object.

Definition at line 638 of file kateconfig.cpp.

References KateConfig::configEnd(), KateConfig::configStart(), KConfigBase::readBoolEntry(), KConfigBase::readNumEntry(), setAutoCenterLines(), setBookmarkSort(), setCmdLine(), setDefaultMarkType(), setDynWordWrap(), setDynWordWrapAlignIndent(), setDynWordWrapIndicators(), setFoldingBar(), setIconBar(), setLineNumbers(), setScrollBarMarks(), setSearchFlags(), and setTextToSearchMode().

Referenced by KateDocument::readConfig().

void KateViewConfig::writeConfig KConfig config  ) 
 

Write config to object.

Definition at line 669 of file kateconfig.cpp.

References autoCenterLines(), bookmarkSort(), cmdLine(), defaultMarkType(), dynWordWrap(), dynWordWrapAlignIndent(), dynWordWrapIndicators(), foldingBar(), iconBar(), lineNumbers(), scrollBarMarks(), searchFlags(), textToSearchMode(), and KConfigBase::writeEntry().

Referenced by KateDocument::writeConfig().

void KateViewConfig::updateConfig  )  [protected, virtual]
 

do the real update

Implements KateConfig.

Definition at line 696 of file kateconfig.cpp.

References QPtrList::at(), isGlobal(), KateFactory::self(), KateView::updateConfig(), and KateFactory::views().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kate Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 15 11:22:54 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003