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

#include <zqb_visible.hpp>

Inheritance diagram for ZqbVisible:
ZqbPlaceholder ZqbPlaceholder ZqObject ZqObject ZqBBox ZqBBox ZqGrid ZqGrid ZqLayout ZqLayout ZqPolygon ZqPolygon ZqRubberBox ZqRubberBox ZqRubberLine ZqRubberLine ZqScale ZqScaledPalette ZqScaledPalette ZqScrollBar ZqScrollBar ZqTitle ZqTitle ZqView ZqView ZqBBox ZqBBox ZqGrid ZqGrid ZqLayout ZqLayout ZqPolygon ZqPolygon ZqRubberBox ZqRubberBox ZqRubberLine ZqRubberLine ZqScale ZqScaledPalette ZqScaledPalette ZqScrollBar ZqScrollBar ZqTitle ZqTitle ZqView ZqView

Public Member Functions

 ZqbVisible (bool bDrawable=false, bool bInputable=false, bool bTipable=false)
 
virtual ~ZqbVisible ()
 
virtual void redraw (QPainter &paint)=0
 
virtual bool isDrawable () const
 
virtual void setDrawable (bool bFlag)
 
virtual void redraw ()
 
virtual bool isHardcopy () const
 
virtual void setDirty ()=0
 
virtual void resetDirty ()=0
 
virtual bool isDirty () const =0
 
virtual void setTipable (bool bFlag)
 
virtual bool isTipable () const
 
virtual bool tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
virtual ZqbEventHint input (QEvent &event)=0
 
virtual bool isInputable () const
 
virtual void setInputable (bool bFlag)
 
virtual void updateGeometry ()=0
 
virtual void updateLimits (QPainter *paint=NULL)=0
 
virtual bool getRect (QRect &)
 
virtual bool setRect (const QRect &)
 
virtual QPainter * getScreenPainter () const =0
 
virtual void setScreenPainter (QPainter *pPainter)=0
 
virtual QWidget * getAreaWidget () const =0
 
virtual void setAreaWidget (QWidget *pWidget)=0
 
 ZqbVisible (bool bDrawable=false, bool bInputable=false, bool bTipable=false)
 
virtual ~ZqbVisible ()
 
virtual void redraw (QPainter &paint)=0
 
virtual bool isDrawable () const
 
virtual void setDrawable (bool bFlag)
 
virtual void redraw ()
 
virtual bool isHardcopy () const
 
virtual void setDirty ()=0
 
virtual void resetDirty ()=0
 
virtual bool isDirty () const =0
 
virtual void setTipable (bool bFlag)
 
virtual bool isTipable () const
 
virtual bool tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
virtual ZqbEventHint input (QEvent &event)=0
 
virtual bool isInputable () const
 
virtual void setInputable (bool bFlag)
 
virtual void updateGeometry ()=0
 
virtual void updateLimits (QPainter *paint=NULL)=0
 
virtual bool getRect (QRect &)
 
virtual bool setRect (const QRect &)
 
virtual QPainter * getScreenPainter () const =0
 
virtual void setScreenPainter (QPainter *pPainter)=0
 
virtual QWidget * getAreaWidget () const =0
 
virtual void setAreaWidget (QWidget *pWidget)=0
 

Detailed Description

Abstract class for every visible object.

A visible object has size and screen position, can draw itself and may process some events. In case of complex structure an object may reconstruct internal geometry.

Constructor & Destructor Documentation

ZqbVisible::ZqbVisible ( bool  bDrawable = false,
bool  bInputable = false,
bool  bTipable = false 
)
inline

Create object with default hints: can't draw itself, can't process events.

virtual ZqbVisible::~ZqbVisible ( )
virtual

Destructor.

ZqbVisible::ZqbVisible ( bool  bDrawable = false,
bool  bInputable = false,
bool  bTipable = false 
)
inline

Create object with default hints: can't draw itself, can't process events.

virtual ZqbVisible::~ZqbVisible ( )
virtual

Destructor.

Member Function Documentation

virtual QWidget* ZqbVisible::getAreaWidget ( ) const
pure virtual

Return pointer to Qt widget used for drawing area or NULL if it's not accessible.

Implemented in ZqObject, ZqObject, ZqbPlaceholder, and ZqbPlaceholder.

virtual QWidget* ZqbVisible::getAreaWidget ( ) const
pure virtual

Return pointer to Qt widget used for drawing area or NULL if it's not accessible.

Implemented in ZqObject, ZqObject, ZqbPlaceholder, and ZqbPlaceholder.

virtual bool ZqbVisible::getRect ( QRect &  )
inlinevirtual

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 in ZqLayout, and ZqLayout.

virtual bool ZqbVisible::getRect ( QRect &  )
inlinevirtual

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 in ZqLayout, and ZqLayout.

virtual QPainter* ZqbVisible::getScreenPainter ( ) const
pure virtual

Return pointer to default graphics context (screen drawing) or NULL if it's not accessible.

Implemented in ZqObject, ZqObject, ZqbPlaceholder, and ZqbPlaceholder.

virtual QPainter* ZqbVisible::getScreenPainter ( ) const
pure virtual

Return pointer to default graphics context (screen drawing) or NULL if it's not accessible.

Implemented in ZqObject, ZqObject, ZqbPlaceholder, and ZqbPlaceholder.

virtual ZqbEventHint ZqbVisible::input ( QEvent &  event)
pure virtual

General event processing method. Returns hint for futher processing of this event.

Implemented in ZqCoordMarker, ZqCoordMarker, ZqZoom, ZqZoom, ZqScaledPalette, ZqScaledPalette, ZqObject, ZqObject, ZqRubberBox, ZqPolygon, ZqPolygon, ZqRubberLine, ZqRubberBox, ZqRubberLine, ZqbPlaceholder, ZqbPlaceholder, ZqLayout, and ZqLayout.

virtual ZqbEventHint ZqbVisible::input ( QEvent &  event)
pure virtual

General event processing method. Returns hint for futher processing of this event.

Implemented in ZqCoordMarker, ZqCoordMarker, ZqZoom, ZqZoom, ZqScaledPalette, ZqScaledPalette, ZqObject, ZqObject, ZqRubberBox, ZqPolygon, ZqPolygon, ZqRubberLine, ZqRubberBox, ZqRubberLine, ZqbPlaceholder, ZqbPlaceholder, ZqLayout, and ZqLayout.

virtual bool ZqbVisible::isDirty ( ) const
pure virtual

Return value of the redraw request flag.

Implemented in ZqObject, ZqObject, ZqbPlaceholder, ZqbPlaceholder, ZqLayout, and ZqLayout.

virtual bool ZqbVisible::isDirty ( ) const
pure virtual

Return value of the redraw request flag.

Implemented in ZqObject, ZqObject, ZqbPlaceholder, ZqbPlaceholder, ZqLayout, and ZqLayout.

virtual bool ZqbVisible::isDrawable ( ) const
inlinevirtual

Return true if object wants to draw itself and false otherwise. If the method returns false then caller code should solve to do not call redraw() for this visible object.

virtual bool ZqbVisible::isDrawable ( ) const
inlinevirtual

Return true if object wants to draw itself and false otherwise. If the method returns false then caller code should solve to do not call redraw() for this visible object.

virtual bool ZqbVisible::isHardcopy ( ) const
inlinevirtual

Return true if the object should be drawn to produce hardcopy (that is, painter is some external device or pixmap prepared for output). Return false in case of normal screen painting.

This implementation returns false always.

Reimplemented in ZqObject, and ZqObject.

virtual bool ZqbVisible::isHardcopy ( ) const
inlinevirtual

Return true if the object should be drawn to produce hardcopy (that is, painter is some external device or pixmap prepared for output). Return false in case of normal screen painting.

This implementation returns false always.

Reimplemented in ZqObject, and ZqObject.

virtual bool ZqbVisible::isInputable ( ) const
inlinevirtual

Return true if object wants to process events and false otherwise. If the method returns false then caller code should solve to do not call input() for this visible object.

virtual bool ZqbVisible::isInputable ( ) const
inlinevirtual

Return true if object wants to process events and false otherwise. If the method returns false then caller code should solve to do not call input() for this visible object.

virtual bool ZqbVisible::isTipable ( ) const
inlinevirtual

Return true if tips are enabled and false otherwise.

virtual bool ZqbVisible::isTipable ( ) const
inlinevirtual

Return true if tips are enabled and false otherwise.

virtual void ZqbVisible::redraw ( QPainter &  paint)
pure virtual
virtual void ZqbVisible::redraw ( QPainter &  paint)
pure virtual
virtual void ZqbVisible::redraw ( )
inlinevirtual

General drawing method in default graphics context (to the screen). May poroduce buggy results in case of isHardcopy() is true.

virtual void ZqbVisible::redraw ( )
inlinevirtual

General drawing method in default graphics context (to the screen). May poroduce buggy results in case of isHardcopy() is true.

virtual void ZqbVisible::resetDirty ( )
pure virtual

Undo request for redraw.

Implemented in ZqObject, ZqObject, ZqbPlaceholder, ZqbPlaceholder, ZqLayout, and ZqLayout.

virtual void ZqbVisible::resetDirty ( )
pure virtual

Undo request for redraw.

Implemented in ZqObject, ZqObject, ZqbPlaceholder, ZqbPlaceholder, ZqLayout, and ZqLayout.

virtual void ZqbVisible::setAreaWidget ( QWidget *  pWidget)
pure virtual

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

Implemented in ZqObject, ZqObject, ZqLayout, ZqLayout, ZqbPlaceholder, and ZqbPlaceholder.

virtual void ZqbVisible::setAreaWidget ( QWidget *  pWidget)
pure virtual

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

Implemented in ZqObject, ZqObject, ZqLayout, ZqLayout, ZqbPlaceholder, and ZqbPlaceholder.

virtual void ZqbVisible::setDirty ( )
pure virtual

Request for redraw.

Implemented in ZqObject, ZqObject, ZqbPlaceholder, ZqbPlaceholder, ZqLayout, and ZqLayout.

virtual void ZqbVisible::setDirty ( )
pure virtual

Request for redraw.

Implemented in ZqObject, ZqObject, ZqbPlaceholder, ZqbPlaceholder, ZqLayout, and ZqLayout.

virtual void ZqbVisible::setDrawable ( bool  bFlag)
inlinevirtual

The method allows to turn off (false) or turn on (true) drawing ability of the object.

Reimplemented in ZqScrollBar, and ZqScrollBar.

virtual void ZqbVisible::setDrawable ( bool  bFlag)
inlinevirtual

The method allows to turn off (false) or turn on (true) drawing ability of the object.

Reimplemented in ZqScrollBar, and ZqScrollBar.

virtual void ZqbVisible::setInputable ( bool  bFlag)
inlinevirtual

The method allows to turn off (false) or turn on (true) events processing ability of the object.

Reimplemented in ZqRubberBox, ZqRubberLine, ZqRubberBox, and ZqRubberLine.

virtual void ZqbVisible::setInputable ( bool  bFlag)
inlinevirtual

The method allows to turn off (false) or turn on (true) events processing ability of the object.

Reimplemented in ZqRubberBox, ZqRubberLine, ZqRubberBox, and ZqRubberLine.

virtual bool ZqbVisible::setRect ( const QRect &  )
inlinevirtual

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 in ZqLayout, and ZqLayout.

virtual bool ZqbVisible::setRect ( const QRect &  )
inlinevirtual

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 in ZqLayout, and ZqLayout.

virtual void ZqbVisible::setScreenPainter ( QPainter *  pPainter)
pure virtual

Set pointer to default graphics context (screen drawing). NULL pointer is acceptable.

Implemented in ZqObject, ZqObject, ZqLayout, ZqLayout, ZqbPlaceholder, and ZqbPlaceholder.

virtual void ZqbVisible::setScreenPainter ( QPainter *  pPainter)
pure virtual

Set pointer to default graphics context (screen drawing). NULL pointer is acceptable.

Implemented in ZqObject, ZqObject, ZqLayout, ZqLayout, ZqbPlaceholder, and ZqbPlaceholder.

virtual void ZqbVisible::setTipable ( bool  bFlag)
inlinevirtual

Enable/disable dynamic tip processing. If the flag is set to false then the tip() method will not be called.

virtual void ZqbVisible::setTipable ( bool  bFlag)
inlinevirtual

Enable/disable dynamic tip processing. If the flag is set to false then the tip() method will not be called.

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

Display tip at this point (short and long forms) and return true or return false if no tips are associated with this point.

The short form of tip label is displayed nearby mouse pointer position. The long form is displayed in the status line (if defined in a program).

Returns false by default.

Reimplemented in ZqSeismicView, ZqSeismicView, ZqLayout, and ZqLayout.

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

Display tip at this point (short and long forms) and return true or return false if no tips are associated with this point.

The short form of tip label is displayed nearby mouse pointer position. The long form is displayed in the status line (if defined in a program).

Returns false by default.

Reimplemented in ZqSeismicView, ZqSeismicView, ZqLayout, and ZqLayout.

virtual void ZqbVisible::updateGeometry ( )
pure virtual

General method to recalculate geometry of children objects (if any) because it's called when own geometry of the object is already calculated and assigned via pixel groups membership. Optional painter may be passed just for obtaining device dependent information about font metrics etc.

Implemented in ZqObject, ZqObject, ZqScrollBar, ZqbPlaceholder, ZqScrollBar, ZqbPlaceholder, ZqLayout, and ZqLayout.

virtual void ZqbVisible::updateGeometry ( )
pure virtual

General method to recalculate geometry of children objects (if any) because it's called when own geometry of the object is already calculated and assigned via pixel groups membership. Optional painter may be passed just for obtaining device dependent information about font metrics etc.

Implemented in ZqObject, ZqObject, ZqScrollBar, ZqbPlaceholder, ZqScrollBar, ZqbPlaceholder, ZqLayout, and ZqLayout.

virtual void ZqbVisible::updateLimits ( QPainter *  paint = NULL)
pure virtual

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

Implemented in ZqScale, ZqScale, ZqTitle, ZqTitle, ZqObject, ZqObject, ZqScaledPalette, ZqScaledPalette, ZqLayout, ZqLayout, ZqbPlaceholder, and ZqbPlaceholder.

virtual void ZqbVisible::updateLimits ( QPainter *  paint = NULL)
pure virtual

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

Implemented in ZqScale, ZqScale, ZqTitle, ZqTitle, ZqObject, ZqObject, ZqScaledPalette, ZqScaledPalette, ZqLayout, ZqLayout, ZqbPlaceholder, and ZqbPlaceholder.


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