kivio

KivioStencilSpawnerSet Class Reference

List of all members.

Detailed Description

Definition at line 28 of file kivio_stencil_spawner_set.h.


Public Member Functions

 KivioStencilSpawnerSet (const QString &name=QString::null)
virtual ~KivioStencilSpawnerSet ()
bool loadDir (const QString &)
KivioStencilSpawnerloadFile (const QString &)
bool loadXML (const QDomElement &)
QDomElement saveXML (QDomDocument &)
QPtrList< KivioStencilSpawner > * spawners ()
KivioStencilSpawnerselected ()
QString dir ()
QString name ()
QString id ()
void setDir (const QString &s)
void setName (const QString &s)
void setId (const QString &s)
KivioStencilSpawnerspawnerAt (int i)
KivioStencilSpawnerfind (const QString &)
int count ()
QStringList files () const
void addSpawner (KivioStencilSpawner *spawner)
void setHidden (bool hide)
bool hidden () const

Static Public Member Functions

static QString readTitle (const QString &)
static QString readId (const QString &)
static QString readDescription (const QString &)

Protected Attributes

QString m_dir
QString m_name
QString m_id
QStringList m_files
QPtrList< KivioStencilSpawner > * m_pSpawners
KivioStencilSpawnerm_pSelected
bool m_hidden

Member Function Documentation

bool KivioStencilSpawnerSet::loadXML ( const QDomElement &   ) 

Loads a stencil spawners from data defined in an XML file.

Parameters:
e The QDomElement to load from
This is a function that needs to be implemented by all descendant classes. It should search the known stencil-paths for the spawner specified, and load it.

Definition at line 63 of file kivio_stencil_spawner_set.cpp.

QDomElement KivioStencilSpawnerSet::saveXML ( QDomDocument &  doc  ) 

Saves a spawner to a QDomElement.

Parameters:
doc The document to save to
All descendant classes should implement this function. It should save the necessary data to a QDomElement such that when it is loaded again, it can find the spawner and load it from the local filesystem.

Definition at line 79 of file kivio_stencil_spawner_set.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys