LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HorizontalLabeledDivider Class Reference

#include <horizontallabeleddivider.h>

Inheritance diagram for HorizontalLabeledDivider:
[legend]
Collaboration diagram for HorizontalLabeledDivider:
[legend]

Public Member Functions

virtual ~HorizontalLabeledDivider ()
 
virtual QRectF geometry () const
 
virtual QRectF positionRelativeGeometry () const
 
virtual bool resize (const QSize &newSize)
 
virtual bool resize (quint32 newWidth, quint32 newHeight)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option=0, QWidget *widget=0)
 
virtual void paint (QPainter *painter, const QRectF &sourceRect)
 
virtual void paint (QPainter *painter, const QRectF &sourceRect, qint32 renderOpts)
 
virtual void paintOffscreen (QPainter *painter)
 
- Public Member Functions inherited from HorizontalDivider
 HorizontalDivider (const QRectF &geom)
 
virtual ~HorizontalDivider ()
 
- Public Member Functions inherited from ThingPaintable
 ThingPaintable (const QRectF &geom)
 
virtual ~ThingPaintable ()
 
virtual QString readUiState () const
 
virtual void writeUiState (const QString &s)
 
virtual void resetUiState ()
 
virtual QRectF untranslateFromPosition (const QRectF &rect) const
 
virtual QRectF boundingRect () const
 
virtual void paint (QPainter *painter, const QRectF &sourceRect, const QPointF &painterTranslate)
 
virtual void paint (QPainter *painter, const QRectF &sourceRect, const QPointF &painterTranslate, qint32 renderOpt)
 
virtual void paintOffscreen (QPainter *painter, const QRect &sourceRect, const QPoint &targetOrigin)
 
virtual void paintOffscreen (QPainter *painter, const QRect &sourceRect, const QRect &targetRect)
 
- Public Member Functions inherited from Thing
 Thing ()
 
virtual ~Thing ()
 
virtual QUuid uid () const
 
virtual bool offer (Thing *p_offer, Thing *p_offeringThing)
 
virtual bool take (Thing *p_takerThing)
 
virtual bool taking (Thing *p_victimThing, Thing *p_takerThing)
 
virtual void taken (Thing *p_takenThing, Thing *p_takerThing)
 
virtual uint hashValue () const
 
virtual void touchTrackedPointStarted (int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition)
 
virtual void touchTrackedPointMoved (int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition)
 
virtual void touchTrackedPointReleased (int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition)
 
virtual void redirectTouchPrepare (Thing *p_sourceThing, const TouchRegister &touchRegister, int contextHint=0)
 
virtual void redirectedTouchTrackedPointMoved (Thing *p_sourceThing, int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition, const RedirectContext &redirContext)
 
virtual void redirectedTouchTrackedPointReleased (Thing *p_sourceThing, int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition, const RedirectContext &redirContext)
 

Static Public Member Functions

static HorizontalLabeledDividerNewHorizontalLabeledDivider (const QString &label, quint32 width, PixmapObject *p_dividerPixmapObject)
 
static QFont staticLabelFontForHDiv ()
 
static QRectF AGEOM (const QRectF &geom)
 

Protected Slots

virtual void slotPixmapObjectInvalidated ()
 

Protected Member Functions

 HorizontalLabeledDivider ()
 
 HorizontalLabeledDivider (const QRectF &geom, const QString &label, PixmapObject *p_dividerPixmapObject)
 
virtual void redoLabelTextLayout ()
 protected: More...
 
virtual void recalculateLabelPosition ()
 
virtual void recalculateDividerPixmapSizeAndPosition ()
 

Protected Attributes

QRectF m_alignmentGeomPrecomputed
 
QPointer< PixmapObjectm_qp_divPixmap
 
QPoint m_pixmapPosICS
 
QRect m_pixmapGeom
 
qreal m_labelPixmapSpacing
 
QString m_labelString
 
QColor m_labelFontColor
 
QPoint m_labelPosICS
 
QRect m_labelGeom
 
QTextLayout m_textLayoutObject
 

Additional Inherited Members

- Public Slots inherited from Thing
virtual void slotEnableIconAutoRepaint ()
 
virtual void slotDisableIconAutoRepaint ()
 
- Signals inherited from ThingPaintable
void signalGeometryChanged (const QRectF &, const QRectF &)
 
void signalGeometryChanged ()
 
void signalUiStateChanged ()
 
void signalPositionChanged ()
 
- Static Public Attributes inherited from ThingPaintable
static int MagicTypePropertyKey = 1111
 
static int MagicTypePropertyValue = 2222
 
- Properties inherited from ThingPaintable
QString uistate
 
QPointF animatePosition
 

Constructor & Destructor Documentation

HorizontalLabeledDivider::~HorizontalLabeledDivider ( )
virtual
HorizontalLabeledDivider::HorizontalLabeledDivider ( )
protected
HorizontalLabeledDivider::HorizontalLabeledDivider ( const QRectF &  geom,
const QString &  label,
PixmapObject p_dividerPixmapObject 
)
protected

Member Function Documentation

QRectF HorizontalLabeledDivider::AGEOM ( const QRectF &  geom)
static
QRectF HorizontalLabeledDivider::geometry ( ) const
virtual

Reimplemented from ThingPaintable.

HorizontalLabeledDivider * HorizontalLabeledDivider::NewHorizontalLabeledDivider ( const QString &  label,
quint32  width,
PixmapObject p_dividerPixmapObject 
)
static
void HorizontalLabeledDivider::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option = 0,
QWidget *  widget = 0 
)
virtual

Implements ThingPaintable.

void HorizontalLabeledDivider::paint ( QPainter *  painter,
const QRectF &  sourceRect 
)
virtual

Reimplemented from ThingPaintable.

void HorizontalLabeledDivider::paint ( QPainter *  painter,
const QRectF &  sourceRect,
qint32  renderOpts 
)
virtual

Reimplemented from ThingPaintable.

void HorizontalLabeledDivider::paintOffscreen ( QPainter *  painter)
virtual

Implements ThingPaintable.

QRectF HorizontalLabeledDivider::positionRelativeGeometry ( ) const
virtual

Reimplemented from ThingPaintable.

void HorizontalLabeledDivider::recalculateDividerPixmapSizeAndPosition ( )
protectedvirtual
void HorizontalLabeledDivider::recalculateLabelPosition ( )
protectedvirtual
void HorizontalLabeledDivider::redoLabelTextLayout ( )
protectedvirtual

protected:

bool HorizontalLabeledDivider::resize ( const QSize &  newSize)
virtual

Reimplemented from HorizontalDivider.

bool HorizontalLabeledDivider::resize ( quint32  newWidth,
quint32  newHeight 
)
virtual

Reimplemented from HorizontalDivider.

void HorizontalLabeledDivider::slotPixmapObjectInvalidated ( )
protectedvirtualslot
QFont HorizontalLabeledDivider::staticLabelFontForHDiv ( )
static

Member Data Documentation

QRectF HorizontalLabeledDivider::m_alignmentGeomPrecomputed
protected
QColor HorizontalLabeledDivider::m_labelFontColor
protected
QRect HorizontalLabeledDivider::m_labelGeom
protected
qreal HorizontalLabeledDivider::m_labelPixmapSpacing
protected
QPoint HorizontalLabeledDivider::m_labelPosICS
protected
QString HorizontalLabeledDivider::m_labelString
protected
QRect HorizontalLabeledDivider::m_pixmapGeom
protected
QPoint HorizontalLabeledDivider::m_pixmapPosICS
protected
QPointer<PixmapObject> HorizontalLabeledDivider::m_qp_divPixmap
protected
QTextLayout HorizontalLabeledDivider::m_textLayoutObject
protected

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