kate Library API Documentation

KateSchemaManager Class Reference

Collaboration diagram for KateSchemaManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KateSchemaManager ()
 ~KateSchemaManager ()
void update (bool readfromfile=true)
KConfig * schema (uint number)
void addSchema (const QString &t)
void removeSchema (uint number)
bool validSchema (uint number)
uint number (const QString &name)
QString name (uint number)
const QStringList & list ()

Static Public Member Functions

static QString normalSchema ()
static QString printingSchema ()

Detailed Description

Definition at line 44 of file kateschema.h.


Member Function Documentation

void KateSchemaManager::update (  bool  readfromfile = true  ) 
 

Schema Config changed, update all renderers.

Definition at line 179 of file kateschema.cpp.

References KConfig::groupList(), normalSchema(), printingSchema(), KConfig::reparseConfiguration(), and QStringList::sort().

Referenced by addSchema(), KateSchemaConfigPage::apply(), KateSchemaManager(), KateSchemaConfigPage::reload(), removeSchema(), and KateSchemaConfigPage::~KateSchemaConfigPage().

KConfig * KateSchemaManager::schema (  uint  number  ) 
 

return kconfig with right group set or set to Normal if not there

Definition at line 197 of file kateschema.cpp.

References normalSchema(), printingSchema(), and KConfigBase::setGroup().

Referenced by KateSchemaConfigPage::apply(), KateSchemaConfigFontTab::apply(), KateSchemaConfigColorTab::apply(), and KateSchemaConfigColorTab::schemaChanged().

bool KateSchemaManager::validSchema (  uint  number  ) 
 

is this schema valid ? (does it exist ?)

Definition at line 230 of file kateschema.cpp.

uint KateSchemaManager::number (  const QString &  name  ) 
 

if not found, defaults to 0

Definition at line 238 of file kateschema.cpp.

References normalSchema(), and printingSchema().

QString KateSchemaManager::name (  uint  number  ) 
 

group names in the end, no i18n involved

Definition at line 253 of file kateschema.cpp.

References normalSchema(), and printingSchema().

Referenced by removeSchema().

const QStringList& KateSchemaManager::list (   )  [inline]
 

Don't modify, list with the names of the schemas (i18n name for the default ones).

Definition at line 82 of file kateschema.h.

Referenced by KateViewSchemaAction::slotAboutToShow().


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.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Dec 1 04:48:22 2005 by doxygen 1.4.3 written by Dimitri van Heesch, © 1997-2003