LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ThingPaintable Class Referenceabstract

#include <thingpaintable.h>

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

Signals

void signalGeometryChanged (const QRectF &, const QRectF &)
 
void signalGeometryChanged ()
 
void signalUiStateChanged ()
 
void signalPositionChanged ()
 
- Signals inherited from Thing
void signalThingGeometryChanged (const QRectF &)
 

Public Member Functions

 ThingPaintable (const QRectF &geom)
 
virtual ~ThingPaintable ()
 
virtual QString readUiState () const
 
virtual void writeUiState (const QString &s)
 
virtual void resetUiState ()
 
virtual QRectF geometry () const
 
virtual QRectF positionRelativeGeometry () const
 
virtual QRectF untranslateFromPosition (const QRectF &rect) const
 
virtual QRectF boundingRect () 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)=0
 
virtual void paintOffscreen (QPainter *painter)=0
 
virtual void paint (QPainter *painter, const QRectF &sourceRect)
 
virtual void paint (QPainter *painter, const QRectF &sourceRect, qint32 renderOpt)
 
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 bool isItemThingPaintable (QGraphicsItem *p_qgitem)
 
static ThingPaintablethingpaintable_cast (QGraphicsItem *p_qgitem)
 

Static Public Attributes

static int MagicTypePropertyKey = 1111
 
static int MagicTypePropertyValue = 2222
 

Protected Member Functions

 ThingPaintable (const QUuid &specificUid, const QRectF &geom)
 
virtual void recomputeBoundingRect ()
 
virtual void recomputeBoundingRect (const QRectF &virtualGeom)
 
- Protected Member Functions inherited from Thing
 Thing (const QUuid &specificUid)
 

Protected Attributes

QRectF m_geom
 
QRectF m_boundingRect
 
QString m_uiState
 
- Protected Attributes inherited from Thing
QPointer< Thingm_qp_takerOwner
 

Properties

QString uistate
 
QPointF animatePosition
 

Additional Inherited Members

- Public Slots inherited from Thing
virtual void slotEnableIconAutoRepaint ()
 
virtual void slotDisableIconAutoRepaint ()
 

Constructor & Destructor Documentation

ThingPaintable::ThingPaintable ( const QRectF &  geom)
ThingPaintable::~ThingPaintable ( )
virtual
ThingPaintable::ThingPaintable ( const QUuid &  specificUid,
const QRectF &  geom 
)
protected

Member Function Documentation

virtual QRectF ThingPaintable::boundingRect ( ) const
inlinevirtual
virtual QRectF ThingPaintable::geometry ( ) const
inlinevirtual

Implements Thing.

Reimplemented in IconBase, and HorizontalLabeledDivider.

bool ThingPaintable::isItemThingPaintable ( QGraphicsItem p_qgitem)
static
virtual void ThingPaintable::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option = 0,
QWidget *  widget = 0 
)
pure virtual
void ThingPaintable::paint ( QPainter *  painter,
const QRectF &  sourceRect 
)
virtual

Reimplemented in HorizontalLabeledDivider.

void ThingPaintable::paint ( QPainter *  painter,
const QRectF &  sourceRect,
qint32  renderOpt 
)
virtual

Reimplemented in HorizontalLabeledDivider.

void ThingPaintable::paint ( QPainter *  painter,
const QRectF &  sourceRect,
const QPointF &  painterTranslate 
)
virtual
void ThingPaintable::paint ( QPainter *  painter,
const QRectF &  sourceRect,
const QPointF &  painterTranslate,
qint32  renderOpt 
)
virtual
void ThingPaintable::paintOffscreen ( QPainter *  painter,
const QRect &  sourceRect,
const QPoint &  targetOrigin 
)
virtual
void ThingPaintable::paintOffscreen ( QPainter *  painter,
const QRect &  sourceRect,
const QRect &  targetRect 
)
virtual
QRectF ThingPaintable::positionRelativeGeometry ( ) const
virtual

Reimplemented in IconBase, and HorizontalLabeledDivider.

virtual QString ThingPaintable::readUiState ( ) const
inlinevirtual
void ThingPaintable::recomputeBoundingRect ( )
protectedvirtual
void ThingPaintable::recomputeBoundingRect ( const QRectF &  virtualGeom)
protectedvirtual
virtual void ThingPaintable::resetUiState ( )
inlinevirtual
bool ThingPaintable::resize ( const QSize &  newSize)
virtual
bool ThingPaintable::resize ( quint32  newWidth,
quint32  newHeight 
)
virtual
void ThingPaintable::signalGeometryChanged ( const QRectF &  ,
const QRectF &   
)
signal
void ThingPaintable::signalGeometryChanged ( )
signal
void ThingPaintable::signalPositionChanged ( )
signal
void ThingPaintable::signalUiStateChanged ( )
signal
ThingPaintable * ThingPaintable::thingpaintable_cast ( QGraphicsItem p_qgitem)
static
QRectF ThingPaintable::untranslateFromPosition ( const QRectF &  rect) const
virtual
virtual void ThingPaintable::writeUiState ( const QString &  s)
inlinevirtual

Member Data Documentation

QRectF ThingPaintable::m_boundingRect
protected
QRectF ThingPaintable::m_geom
protected
QString ThingPaintable::m_uiState
protected
int ThingPaintable::MagicTypePropertyKey = 1111
static
int ThingPaintable::MagicTypePropertyValue = 2222
static

Property Documentation

QPointF ThingPaintable::animatePosition
readwrite
QString ThingPaintable::uistate
readwrite

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