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

#include <overlaylayer.h>

Inheritance diagram for OverlayLayer:
Collaboration diagram for OverlayLayer:

Public Member Functions

 OverlayLayer (const QRectF &geometry)
virtual ~OverlayLayer ()
void setTabBarShadow (PixmapObject *p_shadowPmo)
void setQuickLaunchShadow (PixmapObject *p_shadowPmo)
virtual int mode () const
virtual void setMode (int v)
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
virtual void paintOffscreen (QPainter *painter)
virtual bool resize (const QSize &newSize)
virtual bool resize (quint32 newWidth, quint32 newHeight)
void recomputeShadowPositions ()
- 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 geometry () const
virtual QRectF positionRelativeGeometry () const
virtual QRectF untranslateFromPosition (const QRectF &rect) const
virtual QRectF boundingRect () const
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)

Protected Member Functions

void recomputeTabBarShadowPosition ()
void recomputeQuickLaunchShadowPosition ()
- Protected Member Functions inherited from ThingPaintable
 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

OverlayLayerMode::Enum m_mode
QPointer< PixmapObjectm_qp_tabBarShadow
QRectF m_tabBarShadowArea
QPointer< PixmapObjectm_qp_quickLaunchShadow
QRectF m_quickLaunchShadowArea
- Protected Attributes inherited from ThingPaintable
QRectF m_geom
QRectF m_boundingRect
QString m_uiState
- Protected Attributes inherited from Thing
QPointer< Thingm_qp_takerOwner


int mode
- Properties inherited from ThingPaintable
QString uistate
QPointF animatePosition

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 Member Functions inherited from ThingPaintable
static bool isItemThingPaintable (QGraphicsItem *p_qgitem)
static ThingPaintablethingpaintable_cast (QGraphicsItem *p_qgitem)
- Static Public Attributes inherited from ThingPaintable
static int MagicTypePropertyKey = 1111
static int MagicTypePropertyValue = 2222

Constructor & Destructor Documentation

OverlayLayer::OverlayLayer ( const QRectF &  geometry)
OverlayLayer::~OverlayLayer ( )

Member Function Documentation

virtual int OverlayLayer::mode ( ) const
void OverlayLayer::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 

TODO: WARNING: change this if there are more modes or INVALID is a likely case that shouldn't paint "normal" mode things

Implements ThingPaintable.

void OverlayLayer::paintOffscreen ( QPainter *  painter)

Implements ThingPaintable.

void OverlayLayer::recomputeQuickLaunchShadowPosition ( )
void OverlayLayer::recomputeShadowPositions ( )
void OverlayLayer::recomputeTabBarShadowPosition ( )
bool OverlayLayer::resize ( const QSize &  newSize)

Reimplemented from ThingPaintable.

bool OverlayLayer::resize ( quint32  newWidth,
quint32  newHeight 

Reimplemented from ThingPaintable.

void OverlayLayer::setMode ( int  v)
void OverlayLayer::setQuickLaunchShadow ( PixmapObject p_shadowPmo)
void OverlayLayer::setTabBarShadow ( PixmapObject p_shadowPmo)

Member Data Documentation

OverlayLayerMode::Enum OverlayLayer::m_mode
QPointer<PixmapObject> OverlayLayer::m_qp_quickLaunchShadow
QPointer<PixmapObject> OverlayLayer::m_qp_tabBarShadow
QRectF OverlayLayer::m_quickLaunchShadowArea
QRectF OverlayLayer::m_tabBarShadowArea

Property Documentation

int OverlayLayer::mode

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