#include <qscobject.h>
Inheritance diagram for QSCObjectCollection:
Signals | |
void | sigParametersChanging () |
void | sigParametersChanged () |
void | sigAdded (QSCObject *o) |
void | sigAdded (QSCObjectCollection *collection, QSCObject *o) |
void | sigRemoved (QSCObject *o) |
void | sigRemoved (QSCObjectCollection *collection, QSCObject *o) |
void | sigOrderChanged () |
void | sigOrderChanged (QSCObjectCollection *collection) |
void | sigListChanged () |
void | sigListChanged (QSCObjectCollection *collection) |
void | sigDataChildListChanged () |
void | sigChanged () |
void | sigDrawEnds () |
Public Methods | |
QSCObjectCollection (QObject *parent=NULL, bool autoDelete=true) | |
~QSCObjectCollection () | |
void | setAutoUpdates (bool enable) |
bool | autoUpdates () const |
bool | isEmpty () const |
int | count () const |
void | clear () |
void | add (QSCObject *newObject) |
virtual void | insert (int position, QSCObject *object) |
virtual void | remove (int index) |
void | removeDelete (int index) |
void | raise (int index) |
void | lower (int index) |
void | toFront (int index) |
void | toBack (int index) |
void | reorder (int position, int index) |
int | find (QSCObject *object) const |
QSCObject * | object (int index) const |
void | paintSkeleton (QPainter *p, double dpi=72.0) |
void | paint (QPainter *p, double dpi=72.0, bool blocking=true, bool transparent=true) |
void | draw (QSDrv *drv, bool blocking=true, bool transparent=true) |
bool | busy () const |
void | stop () |
QSCObject * | objectAt (const QSPt2f &p, QSDrv *drv, bool recursive=false) |
bool | contains (QSCObject *object, bool recursive=false) |
virtual void | loadStateFromStream (QDataStream &stream, QSObjectFactory *factory) |
virtual void | saveStateToStream (QDataStream &stream, QSObjectFactory *factory) |
Protected Methods | |
virtual void | parametersChanging () |
virtual void | parametersChanged () |
virtual void | orderChanged () |
virtual void | listChanged () |
virtual void | changed () |
bool | tempAutoUpdatesOff () |
void | tempAutoUpdatesRestore (bool enable) |
Protected Attributes | |
bool | m_auto_updates |
QSChildList< QSCObject > * | m_objects |
Object collection- it holds a list of QSCObjects. QSCGroup and QSPage contains object collections. Selection in QSPlotView is also an object collection. See also: QSCObject
|
Constructor. set 'autoDelete' to false if you dont want objects to be deleted when collection is deleted or when callig 'removeDelete'. |
|
Destructor. If autoDelete is true deletes all objects |
|
Adds a new object to the collection. |
|
Returns auto updates setting. |
|
Returns if there is a busy object in this group. |
|
Deletes ( if autoDelete is false - only removes ) all objects in collection. |
|
Returns if selection contains given object |
|
Number of objects in collection. |
|
Draws all object using the given driver. If blocking is false, driver is copied using QSDrv::copy() and each object gets its own driver object and draws itself in the background. |
|
Returns the position of the object 'object'. |
|
Insert object into the collection at the given position ( 0 - at the back, count() - at the front ). Reimplemented in QSSelection. |
|
Returns true if selection doesn't contain any object. |
|
Saves all objects Reimplemented from QSSerializable. |
|
Lowers an object at the position 'index'. |
|
Returns object at the position 'index' |
|
Returns object at position 'p'. |
|
Paints all object. If 'blocking' is false painter is copied using QSDrvQt::copyPainter each object gets its own painter object, and paints itself in the background. |
|
Paints skeletons of all objects. |
|
Raises an object at the position 'index'. |
|
Removes an object at the position 'index' from the collection Reimplemented in QSSelection. |
|
Removes an object at the position 'index' from the collection and deletes it ( if autoDelete is true ). |
|
Moves to position 'position' an object at the position 'index'. |
|
Loads all objects Reimplemented from QSSerializable. |
|
Blocks / Enables and sends sigListChanged and sigChanged |
|
Object added to the collection 'collection' ( which is this collection or the collection of any QSCGroup object in this collection ). |
|
Object added. |
|
Object on the list changed. Collection needs redrawing |
|
Emitted when QSData child object list ( QSAxis and QSPlot are child objects of QSAxes ) has changed. Emmitted for all QSData objects ( QSAxes ) in this collection. I really needed such signal. |
|
Draw ends. |
|
Object list changed. |
|
Object list changed. |
|
Order of objects changed ( including all grouped object ) |
|
Object raised, lowered, reordered. |
|
Emitted after collection was changed |
|
Emitted before collection is changed |
|
Object added to the collection 'collection'. |
|
Object removed from this collection |
|
Stops drawing. |
|
Sends to back an object at the position 'index'. |
|
Brings to front an object at the position 'index'. |