#include <KoProperties.h>
Fonctions membres publiques | |
KoProperties () | |
KoProperties (const KoProperties &rhs) | |
virtual | ~KoProperties () |
virtual void | load (const QString &) |
virtual QString | store () |
virtual void | setProperty (const QString &name, const QVariant &value) |
virtual bool | getProperty (const QString &name, QVariant &value) const |
virtual QVariant | getProperty (const QString &name) const |
int | getInt (const QString &name, int def=0) const |
double | getDouble (const QString &name, double def=0.0) const |
bool | getBool (const QString &name, bool def=false) const |
QString | getString (const QString &name, const QString &def=QString::null) const |
Attributs protégés | |
QMap< QString, QVariant > | m_properties |
Fonctions membres privées | |
void | dump () |
Définition à la ligne 34 du fichier KoProperties.h.
KoProperties::KoProperties | ( | ) | [inline] |
Create a new filter config.
Définition à la ligne 41 du fichier KoProperties.h.
KoProperties::KoProperties | ( | const KoProperties & | rhs | ) |
Deep copy the filter configFile
Définition à la ligne 25 du fichier KoProperties.cpp.
virtual KoProperties::~KoProperties | ( | ) | [inline, virtual] |
Définition à la ligne 48 du fichier KoProperties.h.
void KoProperties::load | ( | const QString & | ) | [virtual] |
Fill the filter configuration object from the XML encoded representation in s.
Définition à la ligne 30 du fichier KoProperties.cpp.
Références m_properties, KoPageFormat::name(), Py::type(), et Py::value().
Voici le graphe d'appel pour cette fonction :
QString KoProperties::store | ( | ) | [virtual] |
Create a serialized version of this filter config
Définition à la ligne 55 du fichier KoProperties.cpp.
Références m_properties.
void KoProperties::setProperty | ( | const QString & | name, | |
const QVariant & | value | |||
) | [virtual] |
Set the property with name to value.
Définition à la ligne 78 du fichier KoProperties.cpp.
Références m_properties.
Référencé par KoTextShapeFactory::KoTextShapeFactory().
Voici le graphe d'appel pour cette fonction :
bool KoProperties::getProperty | ( | const QString & | name, | |
QVariant & | value | |||
) | const [virtual] |
Set value to the value associated with property name
Définition à la ligne 84 du fichier KoProperties.cpp.
Références m_properties.
Référencé par KoTextShapeFactory::createShape(), getBool(), getDouble(), getInt(), et getString().
Voici le graphe d'appel pour cette fonction :
QVariant KoProperties::getProperty | ( | const QString & | name | ) | const [virtual] |
Return a property by name, wrapped in a QVariant. A typical usage:
KoProperties *props = new KoProperties(); props->setProperty("name", "Marcy"); props->setProperty("age", 25); QString name = props->getProperty("name").toString(); int age = props->getProperty("age").toInt();
name | the name (or key) with which the variant was registered. |
Définition à la ligne 96 du fichier KoProperties.cpp.
Références m_properties.
int KoProperties::getInt | ( | const QString & | name, | |
int | def = 0 | |||
) | const |
Return an integer property by name. A typical usage:
KoProperties *props = new KoProperties(); props->setProperty("age", 25); int age = props->getInt("age");
name | the name (or key) with which the variant was registered. | |
def | the default value, should there not be any property by the name this will be returned. |
Définition à la ligne 102 du fichier KoProperties.cpp.
Références getProperty().
Voici le graphe d'appel pour cette fonction :
double KoProperties::getDouble | ( | const QString & | name, | |
double | def = 0.0 | |||
) | const |
Return a double property by name.
name | the name (or key) with which the variant was registered. | |
def | the default value, should there not be any property by the name this will be returned. |
Définition à la ligne 112 du fichier KoProperties.cpp.
Références getProperty().
Voici le graphe d'appel pour cette fonction :
bool KoProperties::getBool | ( | const QString & | name, | |
bool | def = false | |||
) | const |
Return a boolean property by name.
name | the name (or key) with which the variant was registered. | |
def | the default value, should there not be any property by the name this will be returned. |
Définition à la ligne 121 du fichier KoProperties.cpp.
Références getProperty().
Voici le graphe d'appel pour cette fonction :
QString KoProperties::getString | ( | const QString & | name, | |
const QString & | def = QString::null | |||
) | const |
Return an QString property by name. A typical usage:
KoProperties *props = new KoProperties(); props->setProperty("name", "Marcy"); QString name = props->getString("name");
name | the name (or key) with which the variant was registered. |
def | the default value, should there not be any property by the name this will be returned. |
Définition à la ligne 130 du fichier KoProperties.cpp.
Références getProperty().
Voici le graphe d'appel pour cette fonction :
void KoProperties::dump | ( | ) | [private] |
QMap<QString, QVariant> KoProperties::m_properties [protected] |
Définition à la ligne 137 du fichier KoProperties.h.
Référencé par dump(), getProperty(), load(), setProperty(), et store().