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

#include <zq_scrollbar.hpp>

Inheritance diagram for ZqScrollBar:
ZqObject ZqbNatGrpMember ZqObject ZqbNatGrpMember ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName

Public Member Functions

 ZqScrollBar (ZqbNatGroup &rNatAxis, Qt::Orientation eOrient, const char *szName=NULL)
 
 ZqScrollBar (ZqbNatGroup &rNatAxis, Qt::Orientation eOrient, ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual ~ZqScrollBar ()
 
virtual void redraw (QPainter &paint)
 
virtual void setDrawable (bool bFlag)
 
virtual void updateGeometry ()
 
virtual bool attachToPlace (ZqbPlaceholder *pPh)
 
virtual bool detachFromPlace ()
 
virtual void onSetCoords ()
 
virtual void valueChanged (int iNewValue)
 
 ZqScrollBar (ZqbNatGroup &rNatAxis, Qt::Orientation eOrient, const char *szName=NULL)
 
 ZqScrollBar (ZqbNatGroup &rNatAxis, Qt::Orientation eOrient, ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual ~ZqScrollBar ()
 
virtual void redraw (QPainter &paint)
 
virtual void setDrawable (bool bFlag)
 
virtual void updateGeometry ()
 
virtual bool attachToPlace (ZqbPlaceholder *pPh)
 
virtual bool detachFromPlace ()
 
virtual void onSetCoords ()
 
virtual void valueChanged (int iNewValue)
 
- 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 ZqbPlaceholderVector * placeholders ()
 
virtual ZqbEventHint input (QEvent &event)
 
virtual void updateLimits (QPainter *paint=NULL)
 
virtual QPainter * getScreenPainter () const
 
virtual void setScreenPainter (QPainter *pPainter)
 
virtual QzqAreagetArea () const
 
virtual QWidget * getAreaWidget () const
 
virtual void setAreaWidget (QWidget *pWidget)
 
virtual bool isHardcopy () const
 
bool isPlaced () const
 
ZqbPlaceholdergetPlace () const
 
ZqbPixGrpMemberpx () const
 
ZqbPixGrpMemberpy () const
 
bool getRect (QRect &rect) const
 
virtual void setDirty ()
 
virtual void resetDirty ()
 
virtual bool isDirty () 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 ZqbPlaceholderVector * placeholders ()
 
virtual ZqbEventHint input (QEvent &event)
 
virtual void updateLimits (QPainter *paint=NULL)
 
virtual QPainter * getScreenPainter () const
 
virtual void setScreenPainter (QPainter *pPainter)
 
virtual QzqAreagetArea () const
 
virtual QWidget * getAreaWidget () const
 
virtual void setAreaWidget (QWidget *pWidget)
 
virtual bool isHardcopy () const
 
bool isPlaced () const
 
ZqbPlaceholdergetPlace () const
 
ZqbPixGrpMemberpx () const
 
ZqbPixGrpMemberpy () const
 
bool getRect (QRect &rect) const
 
virtual void setDirty ()
 
virtual void resetDirty ()
 
virtual bool isDirty () 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 redraw ()
 
virtual void setTipable (bool bFlag)
 
virtual bool isTipable () const
 
virtual bool tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
virtual bool isInputable () const
 
virtual void setInputable (bool bFlag)
 
virtual bool getRect (QRect &)
 
virtual bool setRect (const QRect &)
 
 ZqbVisible (bool bDrawable=false, bool bInputable=false, bool bTipable=false)
 
virtual ~ZqbVisible ()
 
virtual bool isDrawable () const
 
virtual void redraw ()
 
virtual void setTipable (bool bFlag)
 
virtual bool isTipable () const
 
virtual bool tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
virtual bool isInputable () const
 
virtual void setInputable (bool bFlag)
 
virtual bool getRect (QRect &)
 
virtual bool setRect (const QRect &)
 
- Public Member Functions inherited from ZqbNatGrpMember
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup)
 
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup, void(*CustomOnSetCoord)(void *), void *pUserData=NULL)
 
virtual ~ZqbNatGrpMember ()
 
virtual ZqbNatGroupgroup () const
 
virtual void unsetBounds ()
 
virtual void setBounds (double b[2])
 
void setBounds (double b1, double b2)
 
virtual bool getBounds (double b[2]=NULL) const
 
virtual void onTickChange ()
 
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup)
 
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup, void(*CustomOnSetCoord)(void *), void *pUserData=NULL)
 
virtual ~ZqbNatGrpMember ()
 
virtual ZqbNatGroupgroup () const
 
virtual void unsetBounds ()
 
virtual void setBounds (double b[2])
 
void setBounds (double b1, double b2)
 
virtual bool getBounds (double b[2]=NULL) const
 

Protected Member Functions

void calcValueAndPageStep (int &iValue, int &iPageStep)
 
void createScrollBar ()
 
void calcValueAndPageStep (int &iValue, int &iPageStep)
 
void createScrollBar ()
 

Protected Attributes

QScrollBar * m_pqScrollbar
 
Qt::Orientation m_eOrient
 
QzqSbSensorm_pqSbSensor
 
bool m_bSelfProcess
 
- 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 ZqbNatGrpMember
ZqbNatGroupm_pNatGroup
 
bool m_bKnownBounds
 
double m_fBounds [2]
 
void(* m_pCustomOnSetCoord )(void *pUserData)
 
void * m_pUserData
 

Detailed Description

Object for ScrollBar implementation in the zqools area with link to some natural group.

test_zq_scrollbar_1.png

Constructor & Destructor Documentation

ZqScrollBar::ZqScrollBar ( ZqbNatGroup rNatAxis,
Qt::Orientation  eOrient,
const char *  szName = NULL 
)

Create scrollbar of given orientation to control given natural group. Initially placeholder is not specified.

ZqScrollBar::ZqScrollBar ( ZqbNatGroup rNatAxis,
Qt::Orientation  eOrient,
ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create scrollbar of given orientation at given place to control given natural group.

virtual ZqScrollBar::~ZqScrollBar ( )
virtual

Destroy scrollbar object.

ZqScrollBar::ZqScrollBar ( ZqbNatGroup rNatAxis,
Qt::Orientation  eOrient,
const char *  szName = NULL 
)

Create scrollbar of given orientation to control given natural group. Initially placeholder is not specified.

ZqScrollBar::ZqScrollBar ( ZqbNatGroup rNatAxis,
Qt::Orientation  eOrient,
ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create scrollbar of given orientation at given place to control given natural group.

virtual ZqScrollBar::~ZqScrollBar ( )
virtual

Destroy scrollbar object.

Member Function Documentation

virtual bool ZqScrollBar::attachToPlace ( ZqbPlaceholder pPh)
virtual

Attach to the placeholder, create actual QScrollBar object and return true. If the object is already attached to some placeholder returns false.

Reimplemented from ZqObject.

virtual bool ZqScrollBar::attachToPlace ( ZqbPlaceholder pPh)
virtual

Attach to the placeholder, create actual QScrollBar object and return true. If the object is already attached to some placeholder returns false.

Reimplemented from ZqObject.

void ZqScrollBar::calcValueAndPageStep ( int &  iValue,
int &  iPageStep 
)
protected

Calculate QScrollBar value and page step using current natural group coordinates and bounds.

void ZqScrollBar::calcValueAndPageStep ( int &  iValue,
int &  iPageStep 
)
protected

Calculate QScrollBar value and page step using current natural group coordinates and bounds.

void ZqScrollBar::createScrollBar ( )
protected

Create QScrollBar widget.

void ZqScrollBar::createScrollBar ( )
protected

Create QScrollBar widget.

virtual bool ZqScrollBar::detachFromPlace ( )
virtual

Detach from the placeholder, destroy QScrollBar object and return true. If the object is not attached returns false.

Reimplemented from ZqObject.

virtual bool ZqScrollBar::detachFromPlace ( )
virtual

Detach from the placeholder, destroy QScrollBar object and return true. If the object is not attached returns false.

Reimplemented from ZqObject.

virtual void ZqScrollBar::onSetCoords ( )
virtual

Adjust size of the scrollbar and its position when new natural coordinates become available.

Reimplemented from ZqbNatGrpMember.

virtual void ZqScrollBar::onSetCoords ( )
virtual

Adjust size of the scrollbar and its position when new natural coordinates become available.

Reimplemented from ZqbNatGrpMember.

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

Draw scrollbar.

Reimplemented from ZqObject.

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

Draw scrollbar.

Reimplemented from ZqObject.

virtual void ZqScrollBar::setDrawable ( bool  bFlag)
virtual

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

Reimplemented from ZqbVisible.

virtual void ZqScrollBar::setDrawable ( bool  bFlag)
virtual

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

Reimplemented from ZqbVisible.

virtual void ZqScrollBar::updateGeometry ( )
virtual

Set geometry of the scrollbar according to the pixel groups' coordinates.

Reimplemented from ZqObject.

virtual void ZqScrollBar::updateGeometry ( )
virtual

Set geometry of the scrollbar according to the pixel groups' coordinates.

Reimplemented from ZqObject.

virtual void ZqScrollBar::valueChanged ( int  iNewValue)
virtual

Called when value of scrollbar is changed.

virtual void ZqScrollBar::valueChanged ( int  iNewValue)
virtual

Called when value of scrollbar is changed.

Member Data Documentation

bool ZqScrollBar::m_bSelfProcess
protected

Self-processing flag is set to true if setValue() to scrollbar is set by the object itself and thus does not need to be processed by valueChanged().

Qt::Orientation ZqScrollBar::m_eOrient
protected

Scrollbar orientation: Qt::Horizontal or Qt::Vertical.

QzqSbSensor * ZqScrollBar::m_pqSbSensor
protected

Pointer to object used for communication with QScrollBar.

QScrollBar * ZqScrollBar::m_pqScrollbar
protected

Actual QScrollBar pointer. It's NULL if the object is detached from placeholder.


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