![]() |
VR-Forces 4.1.1 Class Documentation
|
An extension of a QDict that includes signals for when model gets added or removed from itself. More...

Public Slots | |
| virtual void | updateModelData (const DtModelData &data, int changedFlags) |
| virtual void | modelDataDestroyed (const QString &) |
Signals | |
| void | modelDataAdded (const DtModelKey &) |
| Sent when a modelData is added to the dictionary. | |
| void | modelDataAboutToBeRemoved (const DtModelKey &) |
| Sent right before a modelData is to be removed from the dictionary. | |
| void | modelDataUpdated (const DtModelData &data, int iChangedFlags) |
| Sent in response to the updateModelData() method being called. | |
Public Member Functions | |
| DtModelDataDict () | |
| virtual | ~DtModelDataDict () |
| virtual void | insert (const QString &key, const DtModelData *item) |
| virtual void | replace (const QString &key, const DtModelData *item) |
| virtual bool | remove (const QString &key) |
| virtual DtModelData * | take (const QString &key) |
| virtual void | setAutoDelete (bool b) |
| Call with true to delete data when removed from dictionary. | |
| virtual void | removeDataOfType (int) |
| Removes all model data from dictionary that matches the particular type. | |
| DtModelData * | find (const QString &key) const |
| virtual void | clear () |
| Implement clear() method to respect auto-delete flag. | |
Public Member Functions inherited from DtArchiver | |
| DtArchiver (QString name) | |
| virtual | ~DtArchiver () |
| virtual void | add (QString value, int *toWrite) |
| Use these routines to schedule a variable to be archived. | |
| virtual void | add (QString value, short *toWrite) |
| virtual void | add (QString value, DtArchivableObject *toWrite) |
| virtual void | add (QString value, QPen *toWrite) |
| virtual void | add (QString value, QColor *toWrite) |
| virtual void | add (QString value, double *toWrite) |
| virtual void | add (QString value, bool *toWrite) |
| virtual void | add (QString value, float *toWrite) |
| virtual void | add (QString value, QString *toWrite) |
| virtual void | add (QString value, char *toWrite) |
| virtual void | add (QString value, QPoint *toWrite) |
| virtual void | add (QString value, QPointF *toWrite) |
| virtual void | add (QString value, QRect *toWrite) |
| virtual void | add (QString value, QStringList *toWrite) |
| virtual void | add (QString value, void *toWrite, DtArchiverFunction write, DtArchiverFunction read, bool writeLevel=false) |
| template<typename Key , typename Value > | |
| void | add (QString value, QHash< Key, Value > *toWrite) |
| Currently only supports QDict. | |
| template<typename T > | |
| void | add (QString value, QList< T > *toWrite) |
| template<typename T > | |
| void | add (QString value, QLinkedList< T > *toWrite) |
| template<typename T > | |
| void | add (QString value, QVector< T > *toWrite) |
| virtual void | remove (void *toWrite) |
| Removes the specified item from the archiver. | |
| virtual void | setLevel (int iLevel) |
| virtual int | level () const |
| virtual void | setName (QString name) |
| virtual QString | name () const |
| virtual void | read (QTextStream &ts) |
| archival operators | |
| virtual void | write (QTextStream &ts) |
| virtual void | writeObject (QTextStream &ts, int level, DtArchiveObject *obj) |
| virtual void | readObject (DtArchiveObject *obj) |
Protected Attributes | |
| bool | myAutoDelete |
Protected Attributes inherited from DtArchiver | |
| DtPtrQList< DtArchiveObject * > | myArchivableObjects |
| QHash< QString, QString > | myArchiveBlocks |
| int | myLevel |
| QString | myName |
Private Member Functions | |
| DtModelDataDict (const DtModelDataDict &orig) | |
| DtModelDataDict & | operator= (const DtModelDataDict &orig) |
Additional Inherited Members | |
Static Public Member Functions inherited from DtArchiver | |
| static void | addCreator (const QString &name, DtArchivableObjectCreator fnc) |
| static bool | hasCreatorFor (DtArchivableObject *obj) |
| static DtArchivableCreatorInfo * | creatorFor (const QString &name) |
| static DtArchivableObject * | createObject (const QString &name) |
| static void | cleanupCreators () |
| Call to cleanup memory owned by myObjectCreators member. | |
Protected Member Functions inherited from DtArchiver | |
| virtual void | writeLevel (QTextStream &ts, int iLevel) |
| virtual void | parseBlock (QTextStream &ts) |
| This call will read a block of code that can be used to parse out other object information. | |
| virtual QString | readBlock (QTextStream &ts) |
| Reads a balanced block (parens) of text. | |
| virtual QString | readNamedBlock (QString &name, QTextStream &ts) |
| Reads a block and strips out the main name. | |
| virtual void | buildArchiveDictionary (QTextStream &block) |
| Builds the dictionary for object/name pairs from the stream supplied. | |
Static Protected Attributes inherited from DtArchiver | |
| static QHash< QString, DtArchivableCreatorInfo > * | myObjectCreators |
An extension of a QDict that includes signals for when model gets added or removed from itself.
| DtModelDataDict::DtModelDataDict | ( | ) |
|
virtual |
|
private |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Call with true to delete data when removed from dictionary.
By default it is not
|
virtual |
Removes all model data from dictionary that matches the particular type.
Note that the modelDataAboutToBeRemoved signal will be emitted for each removal
|
inline |
|
virtual |
Implement clear() method to respect auto-delete flag.
|
virtualslot |
|
virtualslot |
|
signal |
Sent when a modelData is added to the dictionary.
|
signal |
Sent right before a modelData is to be removed from the dictionary.
|
signal |
Sent in response to the updateModelData() method being called.
|
private |
|
protected |