#include <list.h>
Inheritance diagram for YSet:
Public Slots | |
void | ItemChanged (YObject *) |
This slot is called every time a child emits the signal YObject::UpdateObject(). | |
Signals | |
void | UpdateItem (YObject *) |
Signals that a child item was changed. | |
void | NewItem (YObject *object) |
Signals that a new child item was created and was inserted into the list. | |
void | ItemRemoved (YObject *object) |
Public Member Functions | |
YSet (const CONFIG_STRING key, const QString &defaultname, const YObjectArgs &args=YObjectArgs(), YObject *p=0) | |
void | RemoveItem (YObject *item) |
void | GetUniqueEntryName (QString &) const |
const CONFIG_STRING | GetSectionKey () const |
Return the section key for configuration issues or NULL if not set (default). | |
YObject * | CreateNewItem (const QString &name=QString::null) |
virtual int | SetConfig (YInputParser &parser) |
virtual int | GetConfig (YOutputParser &parser) |
void | ClearSet () |
void | SetParent (YObject *) |
YObject * | GetParent () const |
Returns the parent object of this list, if used. | |
unsigned int | GetCount () const |
Returns the number of items in the list. | |
virtual YObject * | At (unsigned int n) |
Returns the item at index n or NULL if the item could not be found. | |
int | FillStringList (QStringList &list, bool sort=true) |
unsigned int | FindItemIndex (const YObject *object) |
Returns the index number of the given object. If no object was found. | |
Protected Member Functions | |
virtual void | AppendItem (YObject *object) |
This item is fully initialized and should be appended to the list. | |
virtual YActions * | GetItemActions () const |
virtual YObject * | AllocNewItem (const YObjectArgs &id)=0 |
Private Attributes | |
Q_OBJECT const CONFIG_STRING | sectionkey |
This is the configuration identifier e.g. "PROJECT", "EXECUTIVE". | |
YObject * | parent |
Ptr to an parent object, which contains several lists. | |
QString | uniquename |
This is a part of the default name e.g. "project_%1". |
|
|
|
Item will be allocated but not inserted into list. This function is provied for convenience to enable derived lists to create its own derived list objects. Implemented in YEnvironmentSet, YLogFileTaskSet, YLogFileMutexSet, YEnvironmentLogFileSet, YMutexSet, YSchedulerPlugIns, YExecutivePlugIns, YProjectSet, YSchedulerSet, YFilePathSet, YResumeTimeSet, YResourceActionSet, and YTaskSet. |
|
This item is fully initialized and should be appended to the list.
Reimplemented in YResumeTimeSet, and YResourceActionSet. |
|
Returns the item at index n or NULL if the item could not be found.
|
|
|
|
SetConfig is used here to add or configure the elements of the set. Signals "ObjectChanged" and "NewItem" will be sent |
|
Fills the given string list with the names of the list item. There are strings returned by GetName() used. |
|
Returns the index number of the given object. If no object was found.
|
|
Reimplemented from YObject. |
|
Returns the number of items in the list.
|
|
This function is provided for convenience to get the YAction Ptr of derived lists during CreateNewItem(). Default=0 Reimplemented in YEnvironmentSet, YMutexSet, YProjectSet, YSchedulerSet, YFilePathSet, and YTaskSet. |
|
Returns the parent object of this list, if used.
|
|
Return the section key for configuration issues or NULL if not set (default).
|
|
|
|
This slot is called every time a child emits the signal YObject::UpdateObject(). This is a slot which is called after changing an item in this list. It sends the signal "UpdateItem(YObject *item)" first and then UpdateObject(YSet *this) to signal a change of the whole list It is not called after creating or destroying an item! |
|
Signals that a child item should be destroyed. Currently the item is already in list and will be removed and destroyed if the signal handling is completed |
|
Signals that a new child item was created and was inserted into the list.
|
|
Items will not be deleted here. Maybe they will be deleted during qlist::remove() due to switching on autodelete Signals "ItemRemoved" will be called before destroying the item and "ObjectChanged" will be called after destroying the object |
|
Reimplemented from YObject. |
|
|
|
Signals that a child item was changed.
|
|
Ptr to an parent object, which contains several lists.
|
|
This is the configuration identifier e.g. "PROJECT", "EXECUTIVE".
|
|
This is a part of the default name e.g. "project_%1".
|