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

#include <zq_layout.hpp>

Inheritance diagram for ZqLayout:
ZqObject ZqbContainer ZqObject ZqbContainer ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName

Public Member Functions

 ZqLayout (const char *szLayoutName=NULL)
 
 ZqLayout (ZqbPlaceholder *pPh, const char *szLayoutName=NULL)
 
virtual ZqbPlaceholderVector * placeholders ()
 
virtual void redraw (QPainter &paint)
 
virtual ZqbEventHint input (QEvent &event)
 
virtual bool tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
virtual void updateGeometry ()
 
virtual void updateLimits (QPainter *paint=NULL)
 
virtual bool getRect (QRect &rect)
 
virtual bool setRect (const QRect &rect)
 
virtual void setScreenPainter (QPainter *pPainter)
 
virtual void setAreaWidget (QWidget *pWidget)
 
virtual bool removeObject (ZqObject *obj)
 
virtual ZqbPlaceholderplaceholder (const char *szPixGroupX, const char *szPixGroupY, const char *szPhName=NULL)
 
virtual bool remove (ZqbPlaceholder *pPh)
 
virtual void setDirty ()
 
virtual void resetDirty ()
 
virtual bool isDirty () const
 
virtual bool attachToPlace (ZqbPlaceholder *pPh)
 
virtual bool detachFromPlace ()
 
 ZqLayout (const char *szLayoutName=NULL)
 
 ZqLayout (ZqbPlaceholder *pPh, const char *szLayoutName=NULL)
 
virtual ZqbPlaceholderVector * placeholders ()
 
virtual void redraw (QPainter &paint)
 
virtual ZqbEventHint input (QEvent &event)
 
virtual bool tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
virtual void updateGeometry ()
 
virtual void updateLimits (QPainter *paint=NULL)
 
virtual bool getRect (QRect &rect)
 
virtual bool setRect (const QRect &rect)
 
virtual void setScreenPainter (QPainter *pPainter)
 
virtual void setAreaWidget (QWidget *pWidget)
 
virtual bool removeObject (ZqObject *obj)
 
virtual ZqbPlaceholderplaceholder (const char *szPixGroupX, const char *szPixGroupY, const char *szPhName=NULL)
 
virtual bool remove (ZqbPlaceholder *pPh)
 
virtual void setDirty ()
 
virtual void resetDirty ()
 
virtual bool isDirty () const
 
virtual bool attachToPlace (ZqbPlaceholder *pPh)
 
virtual bool detachFromPlace ()
 
- Public Member Functions inherited from ZqObject
 ZqObject (const char *szName=NULL)
 
 ZqObject (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual ~ZqObject ()
 
virtual void debugState ()
 
virtual void clearPlace ()
 
virtual QPainter * getScreenPainter () const
 
virtual QzqAreagetArea () const
 
virtual QWidget * getAreaWidget () const
 
virtual bool isHardcopy () const
 
bool isPlaced () const
 
ZqbPlaceholdergetPlace () const
 
ZqbPixGrpMemberpx () const
 
ZqbPixGrpMemberpy () const
 
bool getRect (QRect &rect) const
 
void setInteractive (bool bInteractive)
 
bool isInteractive () const
 
virtual void fullRedraw (bool bForce=false)
 
virtual void interactiveRedraw ()
 
 ZqObject (const char *szName=NULL)
 
 ZqObject (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual ~ZqObject ()
 
virtual void debugState ()
 
virtual void clearPlace ()
 
virtual QPainter * getScreenPainter () const
 
virtual QzqAreagetArea () const
 
virtual QWidget * getAreaWidget () const
 
virtual bool isHardcopy () const
 
bool isPlaced () const
 
ZqbPlaceholdergetPlace () const
 
ZqbPixGrpMemberpx () const
 
ZqbPixGrpMemberpy () const
 
bool getRect (QRect &rect) const
 
void setInteractive (bool bInteractive)
 
bool isInteractive () const
 
virtual void fullRedraw (bool bForce=false)
 
virtual void interactiveRedraw ()
 
- Public Member Functions inherited from ZqbAutoName
 ZqbAutoName (int *pCounter, const char *szRoot, const char *szCustomName=NULL)
 
virtual ~ZqbAutoName ()
 
 ZqbAutoName (int *pCounter, const char *szRoot, const char *szCustomName=NULL)
 
virtual ~ZqbAutoName ()
 
- Public Member Functions inherited from ZqbName
 ZqbName (const char *szRoot, const char *szCustomName=NULL)
 
 ZqbName (const ZqbName &name)
 
virtual ~ZqbName ()
 
ZqbNameoperator= (const ZqbName &name)
 
virtual const char * getName () const
 
virtual const char * getType () const
 
bool hasName (const char *szString) const
 
 ZqbName (const char *szRoot, const char *szCustomName=NULL)
 
 ZqbName (const ZqbName &name)
 
virtual ~ZqbName ()
 
ZqbNameoperator= (const ZqbName &name)
 
virtual const char * getName () const
 
virtual const char * getType () const
 
bool hasName (const char *szString) const
 
- Public Member Functions inherited from ZqbVisible
 ZqbVisible (bool bDrawable=false, bool bInputable=false, bool bTipable=false)
 
virtual ~ZqbVisible ()
 
virtual bool isDrawable () const
 
virtual void setDrawable (bool bFlag)
 
virtual void redraw ()
 
virtual void setTipable (bool bFlag)
 
virtual bool isTipable () const
 
virtual bool isInputable () const
 
virtual void setInputable (bool bFlag)
 
 ZqbVisible (bool bDrawable=false, bool bInputable=false, bool bTipable=false)
 
virtual ~ZqbVisible ()
 
virtual bool isDrawable () const
 
virtual void setDrawable (bool bFlag)
 
virtual void redraw ()
 
virtual void setTipable (bool bFlag)
 
virtual bool isTipable () const
 
virtual bool isInputable () const
 
virtual void setInputable (bool bFlag)
 
- Public Member Functions inherited from ZqbContainer
virtual ~ZqbContainer ()
 
virtual int numberOfObjects () const
 
virtual bool isEmpty () const
 
virtual bool addObject (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 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
 

Public Attributes

ZqbPixGrpManager pgmx
 
ZqbPixGrpManager pgmy
 

Additional Inherited Members

- Protected Attributes inherited from ZqObject
ZqbPlaceholderm_pPh
 
ZqbPixGrpMemberm_pPx
 
ZqbPixGrpMemberm_pPy
 
bool m_bInteractive
 
- Protected Attributes inherited from ZqbName
char * m_szName
 
char * m_szRoot
 
- Protected Attributes inherited from ZqbContainer
ZqbObjectArray m_Objects
 

Detailed Description

Layout manages geometry of placeholder members.

Placeholders are created on request for given pair of groups.

Constructor & Destructor Documentation

ZqLayout::ZqLayout ( const char *  szLayoutName = NULL)

Create layout without attachment to placeholder.

ZqLayout::ZqLayout ( ZqbPlaceholder pPh,
const char *  szLayoutName = NULL 
)

Create layout inside given placeholder.

ZqLayout::ZqLayout ( const char *  szLayoutName = NULL)

Create layout without attachment to placeholder.

ZqLayout::ZqLayout ( ZqbPlaceholder pPh,
const char *  szLayoutName = NULL 
)

Create layout inside given placeholder.

Member Function Documentation

virtual bool ZqLayout::attachToPlace ( ZqbPlaceholder pPh)
virtual

In addition to usual ZqObject::attachToPlace() behavior this method manages actual state of default graphics context.

Reimplemented from ZqObject.

virtual bool ZqLayout::attachToPlace ( ZqbPlaceholder pPh)
virtual

In addition to usual ZqObject::attachToPlace() behavior this method manages actual state of default graphics context.

Reimplemented from ZqObject.

virtual bool ZqLayout::detachFromPlace ( )
virtual

In addition to usual ZqObject::detachFromPlace() behavior this method manages actual state of default graphics context.

Reimplemented from ZqObject.

virtual bool ZqLayout::detachFromPlace ( )
virtual

In addition to usual ZqObject::detachFromPlace() behavior this method manages actual state of default graphics context.

Reimplemented from ZqObject.

virtual bool ZqLayout::getRect ( QRect &  rect)
virtual

General method to obtain position and size. If the method returns false then the object does not have position and size and rectangle does not have proper value.

Reimplemented from ZqbVisible.

virtual bool ZqLayout::getRect ( QRect &  rect)
virtual

General method to obtain position and size. If the method returns false then the object does not have position and size and rectangle does not have proper value.

Reimplemented from ZqbVisible.

virtual ZqbEventHint ZqLayout::input ( QEvent &  event)
virtual

General event processing method for all objects in reverse order.

Reimplemented from ZqObject.

virtual ZqbEventHint ZqLayout::input ( QEvent &  event)
virtual

General event processing method for all objects in reverse order.

Reimplemented from ZqObject.

virtual bool ZqLayout::isDirty ( ) const
virtual

Return value of the redraw request flag. It's obtained and OR for every placeholders.

Reimplemented from ZqObject.

virtual bool ZqLayout::isDirty ( ) const
virtual

Return value of the redraw request flag. It's obtained and OR for every placeholders.

Reimplemented from ZqObject.

virtual ZqbPlaceholder* ZqLayout::placeholder ( const char *  szPixGroupX,
const char *  szPixGroupY,
const char *  szPhName = NULL 
)
virtual

Return pointer to placeholder with given groups. If such placeholder does not exist it is created on the fly, so result is always not NULL. If placeholder is created then optionally its name may be specified.

virtual ZqbPlaceholder* ZqLayout::placeholder ( const char *  szPixGroupX,
const char *  szPixGroupY,
const char *  szPhName = NULL 
)
virtual

Return pointer to placeholder with given groups. If such placeholder does not exist it is created on the fly, so result is always not NULL. If placeholder is created then optionally its name may be specified.

virtual ZqbPlaceholderVector* ZqLayout::placeholders ( )
virtual

Return internal list of placeholders.

Reimplemented from ZqObject.

virtual ZqbPlaceholderVector* ZqLayout::placeholders ( )
virtual

Return internal list of placeholders.

Reimplemented from ZqObject.

virtual void ZqLayout::redraw ( QPainter &  paint)
virtual

General drawing method for all objects in direct order.

Reimplemented from ZqObject.

virtual void ZqLayout::redraw ( QPainter &  paint)
virtual

General drawing method for all objects in direct order.

Reimplemented from ZqObject.

virtual bool ZqLayout::remove ( ZqbPlaceholder pPh)
virtual

Remove placeholder if there is no object attached to it. Return true in case of success and false if placeholder does not belong to this layout, or NULL is passed, or some objects are still attached to it.

virtual bool ZqLayout::remove ( ZqbPlaceholder pPh)
virtual

Remove placeholder if there is no object attached to it. Return true in case of success and false if placeholder does not belong to this layout, or NULL is passed, or some objects are still attached to it.

virtual bool ZqLayout::removeObject ( ZqObject obj)
virtual

Remove object from container and return true. If object is not found in this placeholder lets do nothing and return false. Take care of grabber.

Reimplemented from ZqbContainer.

virtual bool ZqLayout::removeObject ( ZqObject obj)
virtual

Remove object from container and return true. If object is not found in this placeholder lets do nothing and return false. Take care of grabber.

Reimplemented from ZqbContainer.

virtual void ZqLayout::resetDirty ( )
virtual

Turn off dirty flag (which mean force for redraw) for all placeholders in this layout and recursively in depths.

Reimplemented from ZqObject.

virtual void ZqLayout::resetDirty ( )
virtual

Turn off dirty flag (which mean force for redraw) for all placeholders in this layout and recursively in depths.

Reimplemented from ZqObject.

virtual void ZqLayout::setAreaWidget ( QWidget *  pWidget)
virtual

Set pointer to Qt widget used for drawing area in each placeholder. NULL pointer is acceptable.

Reimplemented from ZqObject.

virtual void ZqLayout::setAreaWidget ( QWidget *  pWidget)
virtual

Set pointer to Qt widget used for drawing area in each placeholder. NULL pointer is acceptable.

Reimplemented from ZqObject.

virtual void ZqLayout::setDirty ( )
virtual

Turn on dirty flag (which mean force for redraw) for all placeholders in this layout and recursively in depths.

Reimplemented from ZqObject.

virtual void ZqLayout::setDirty ( )
virtual

Turn on dirty flag (which mean force for redraw) for all placeholders in this layout and recursively in depths.

Reimplemented from ZqObject.

virtual bool ZqLayout::setRect ( const QRect &  rect)
virtual

General method to set position and size of the visible object. In some cases object don't allow to set size in such manner. In this case the method will return false and position and size will not be changed.

Reimplemented from ZqbVisible.

virtual bool ZqLayout::setRect ( const QRect &  rect)
virtual

General method to set position and size of the visible object. In some cases object don't allow to set size in such manner. In this case the method will return false and position and size will not be changed.

Reimplemented from ZqbVisible.

virtual void ZqLayout::setScreenPainter ( QPainter *  pPainter)
virtual

Set pointer to default graphics context (screen drawing) in each placeholder.

Reimplemented from ZqObject.

virtual void ZqLayout::setScreenPainter ( QPainter *  pPainter)
virtual

Set pointer to default graphics context (screen drawing) in each placeholder.

Reimplemented from ZqObject.

virtual bool ZqLayout::tip ( const QPoint &  p,
QString &  qsShort,
QString &  qsLong 
)
virtual

General dynamic tip method. Calls for every object in the container until the first one with valid tip will be found.

Reimplemented from ZqbVisible.

virtual bool ZqLayout::tip ( const QPoint &  p,
QString &  qsShort,
QString &  qsLong 
)
virtual

General dynamic tip method. Calls for every object in the container until the first one with valid tip will be found.

Reimplemented from ZqbVisible.

virtual void ZqLayout::updateGeometry ( )
virtual

General method to recalculate geometry of children objects according to pixel group management. Optional painter may be passed for device dependent information.

Reimplemented from ZqObject.

virtual void ZqLayout::updateGeometry ( )
virtual

General method to recalculate geometry of children objects according to pixel group management. Optional painter may be passed for device dependent information.

Reimplemented from ZqObject.

virtual void ZqLayout::updateLimits ( QPainter *  paint = NULL)
virtual

General method to recalculate size limitations of all objects in container. In case the painter isn't a NULL it should be used for device specific sizes such as QFontMetrics.

Reimplemented from ZqObject.

virtual void ZqLayout::updateLimits ( QPainter *  paint = NULL)
virtual

General method to recalculate size limitations of all objects in container. In case the painter isn't a NULL it should be used for device specific sizes such as QFontMetrics.

Reimplemented from ZqObject.

Member Data Documentation

ZqbPixGrpManager ZqLayout::pgmx

Manager for 1D geometry along X axis of the screen.

ZqbPixGrpManager ZqLayout::pgmy

Manager for 1D geometry along Y axis of the screen.


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