UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
ZqbContainer Class Reference

#include <zqb_container.hpp>

Inheritance diagram for ZqbContainer:
ZqbPlaceholder ZqbPlaceholder ZqLayout ZqLayout

Public Member Functions

virtual ~ZqbContainer ()
 
virtual int numberOfObjects () const
 
virtual bool isEmpty () const
 
virtual bool addObject (ZqObject *obj)
 
virtual bool removeObject (ZqObject *obj)
 
virtual bool toFront (ZqObject *obj)
 
virtual bool toBack (ZqObject *obj)
 
virtual int setDrawOrder (const ZqbObjectArray &objects)
 
virtual int setDrawOrder (ZqObject *obj1,...)
 
ZqbObjectArray::iterator begin ()
 
ZqbObjectArray::iterator end ()
 
ZqbObjectArray::reverse_iterator rbegin ()
 
ZqbObjectArray::reverse_iterator rend ()
 
void addInteractiveObjects (bool bFlag, ZqbContainer &cont)
 
void redrawObjects (QPainter *paint)
 
size_t size () const
 
virtual ~ZqbContainer ()
 
virtual int numberOfObjects () const
 
virtual bool isEmpty () const
 
virtual bool addObject (ZqObject *obj)
 
virtual bool removeObject (ZqObject *obj)
 
virtual bool toFront (ZqObject *obj)
 
virtual bool toBack (ZqObject *obj)
 
virtual int setDrawOrder (const ZqbObjectArray &objects)
 
virtual int setDrawOrder (ZqObject *obj1,...)
 
ZqbObjectArray::iterator begin ()
 
ZqbObjectArray::iterator end ()
 
ZqbObjectArray::reverse_iterator rbegin ()
 
ZqbObjectArray::reverse_iterator rend ()
 
void addInteractiveObjects (bool bFlag, ZqbContainer &cont)
 
void redrawObjects (QPainter *paint)
 
size_t size () const
 

Protected Attributes

ZqbObjectArray m_Objects
 

Detailed Description

Absract container for zq objects.

Container allows to store pointers to many objects and provide operations for their ordering.

Constructor & Destructor Documentation

virtual ZqbContainer::~ZqbContainer ( )
inlinevirtual

Let's make compiler happy.

virtual ZqbContainer::~ZqbContainer ( )
inlinevirtual

Let's make compiler happy.

Member Function Documentation

void ZqbContainer::addInteractiveObjects ( bool  bFlag,
ZqbContainer cont 
)

Add to the container list of interactive (bFlag = true) or non-interactive (bFlag = false) objects from another container.

void ZqbContainer::addInteractiveObjects ( bool  bFlag,
ZqbContainer cont 
)

Add to the container list of interactive (bFlag = true) or non-interactive (bFlag = false) objects from another container.

virtual bool ZqbContainer::addObject ( ZqObject obj)
inlinevirtual

Insert new object on the top of previous objects and return true. If object already added to this container or to another one lets do nothing and return false.

Reimplemented in ZqbPlaceholder, and ZqbPlaceholder.

virtual bool ZqbContainer::addObject ( ZqObject obj)
inlinevirtual

Insert new object on the top of previous objects and return true. If object already added to this container or to another one lets do nothing and return false.

Reimplemented in ZqbPlaceholder, and ZqbPlaceholder.

ZqbObjectArray::iterator ZqbContainer::begin ( )
inline

Provide start of forward iteration.

ZqbObjectArray::iterator ZqbContainer::begin ( )
inline

Provide start of forward iteration.

ZqbObjectArray::iterator ZqbContainer::end ( )
inline

Provide end of forward iteration.

ZqbObjectArray::iterator ZqbContainer::end ( )
inline

Provide end of forward iteration.

virtual bool ZqbContainer::isEmpty ( ) const
inlinevirtual

Return true if container does not contain objects and false otherwise.

virtual bool ZqbContainer::isEmpty ( ) const
inlinevirtual

Return true if container does not contain objects and false otherwise.

virtual int ZqbContainer::numberOfObjects ( ) const
inlinevirtual

Return number of objects in container.

virtual int ZqbContainer::numberOfObjects ( ) const
inlinevirtual

Return number of objects in container.

ZqbObjectArray::reverse_iterator ZqbContainer::rbegin ( )
inline

Provide start of backward iteration.

ZqbObjectArray::reverse_iterator ZqbContainer::rbegin ( )
inline

Provide start of backward iteration.

void ZqbContainer::redrawObjects ( QPainter *  paint)

Draw all objects in the container in direct order.

void ZqbContainer::redrawObjects ( QPainter *  paint)

Draw all objects in the container in direct order.

virtual bool ZqbContainer::removeObject ( ZqObject obj)
inlinevirtual

Remove object from container and return true. If object is not found in this container lets do nothing and return false.

Reimplemented in ZqbPlaceholder, ZqbPlaceholder, ZqLayout, and ZqLayout.

virtual bool ZqbContainer::removeObject ( ZqObject obj)
inlinevirtual

Remove object from container and return true. If object is not found in this container lets do nothing and return false.

Reimplemented in ZqbPlaceholder, ZqbPlaceholder, ZqLayout, and ZqLayout.

ZqbObjectArray::reverse_iterator ZqbContainer::rend ( )
inline

Provide end of backward iteration.

ZqbObjectArray::reverse_iterator ZqbContainer::rend ( )
inline

Provide end of backward iteration.

virtual int ZqbContainer::setDrawOrder ( const ZqbObjectArray objects)
inlinevirtual

Place listed objects in given order of drawing. The first listed object will be drawn the first, the last one will be drawn the last atop of other objects. Returns number of objects actually found in the container.

Reimplemented in ZqbPlaceholder, and ZqbPlaceholder.

virtual int ZqbContainer::setDrawOrder ( const ZqbObjectArray objects)
inlinevirtual

Place listed objects in given order of drawing. The first listed object will be drawn the first, the last one will be drawn the last atop of other objects. Returns number of objects actually found in the container.

Reimplemented in ZqbPlaceholder, and ZqbPlaceholder.

virtual int ZqbContainer::setDrawOrder ( ZqObject obj1,
  ... 
)
inlinevirtual

Place listed objects in given order of drawing. List should be terminated by NULL. The first listed object will be drawn the first, the last one will be drawn the last atop of other objects. Returns number of objects actually found in the container.

virtual int ZqbContainer::setDrawOrder ( ZqObject obj1,
  ... 
)
inlinevirtual

Place listed objects in given order of drawing. List should be terminated by NULL. The first listed object will be drawn the first, the last one will be drawn the last atop of other objects. Returns number of objects actually found in the container.

size_t ZqbContainer::size ( void  ) const
inline

Return number of objects.

size_t ZqbContainer::size ( void  ) const
inline

Return number of objects.

virtual bool ZqbContainer::toBack ( ZqObject obj)
inlinevirtual

Move the object under other objects and return true. If object is not found in this container then do nothing and return false.

Reimplemented in ZqbPlaceholder, and ZqbPlaceholder.

virtual bool ZqbContainer::toBack ( ZqObject obj)
inlinevirtual

Move the object under other objects and return true. If object is not found in this container then do nothing and return false.

Reimplemented in ZqbPlaceholder, and ZqbPlaceholder.

virtual bool ZqbContainer::toFront ( ZqObject obj)
inlinevirtual

Move the object atop of other objects and return true. If object is not found in this container then do nothing and return false.

Reimplemented in ZqbPlaceholder, and ZqbPlaceholder.

virtual bool ZqbContainer::toFront ( ZqObject obj)
inlinevirtual

Move the object atop of other objects and return true. If object is not found in this container then do nothing and return false.

Reimplemented in ZqbPlaceholder, and ZqbPlaceholder.

Member Data Documentation

ZqbObjectArray ZqbContainer::m_Objects
protected

List of objects.


The documentation for this class was generated from the following files: