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

#include <scrollinglayoutrenderer.h>

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

Public Member Functions

 ScrollingLayoutRenderer (const QRectF &geometry, IconLayout &layout)
 
virtual ~ScrollingLayoutRenderer ()
 
virtual qint32 scrollValue () const
 
virtual void setScrollValue (qint32 v)
 
virtual qint32 rawScrollValue () const
 
virtual bool inOverscroll () const
 
virtual qint32 scrollValueNeededToEscapeOverscroll ()
 
virtual quint32 scrollAmountUntilTopOverscroll ()
 
virtual quint32 scrollAmountUntilBottomOverscroll ()
 
virtual qint32 topLimit () const
 
virtual qint32 bottomLimit () const
 
virtual QPointF mapToContentSpace (const QPointF &scrollerSpacePointF)
 
virtual QPointF mapToContentSpace (const QPoint &scrollerSpacePoint)
 
virtual QPointF mapFromContentSpace (const QPointF &contentSpacePointF)
 
virtual bool mapToContentSpace (const QPointF &scrollerSpacePointF, QPointF &r_mappedPointF)
 
virtual bool mapToContentSpace (const QPoint &scrollerSpacePoint, QPointF &r_mappedPointF)
 
virtual bool mapFromContentSpace (const QPointF &contentSpacePointF, QPointF &r_mappedScrollerSpacePointF)
 
virtual bool resize (quint32 w, quint32 h)
 
- Public Member Functions inherited from ScrollableObject
 ScrollableObject (const QRectF &geometry)
 
virtual ~ScrollableObject ()
 
virtual QRect screenGeometry () const
 
virtual void enable ()
 
virtual void disable ()
 
virtual bool resize (const QSize &newSize)
 
virtual bool isInOverscroll ()
 
virtual qint32 overscrollAmount ()
 
- 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 Slots

virtual void slotSourceGeomChanged (const QRectF &newGeom)
 
virtual void slotSourceContentSizeChanged (const QSizeF &newContentSize)
 
virtual void slotSourceContentSizeChanged (const QSize &newContentSize)
 

Protected Member Functions

virtual void resetToInitialSourceArea ()
 
virtual void resetToInitialTargetArea ()
 
virtual void setScrollValueSmallContent (qint32)
 
virtual void setSourceContentGeom (const QRectF &newContentGeom)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option=0, QWidget *widget=0)
 
- Protected Member Functions inherited from ScrollableObject
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
virtual void paintOffscreen (QPainter *painter)
 
- 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

QPointer< IconLayoutm_qp_layoutObject
 
QSize m_sourceContentSize
 
- Protected Attributes inherited from ScrollableObject
QRect m_screenGeom
 
QRectF m_sourceRect
 
QRect m_targetRect
 
bool m_inOverscroll
 
qint32 m_overscrollVal
 
qint32 m_overscrollBottomStart
 
qint32 m_maxSourceRectHeight
 
qint32 m_maxSourceRectWidth
 
QRectF m_sourceGeom
 
- Protected Attributes inherited from ThingPaintable
QRectF m_geom
 
QRectF m_boundingRect
 
QString m_uiState
 
- Protected Attributes inherited from Thing
QPointer< Thingm_qp_takerOwner
 

Additional Inherited Members

- Public Slots inherited from ScrollableObject
virtual void slotSourceGeomChanged (const QRectF &newGeom)=0
 
virtual void slotSourceContentSizeChanged (const QSizeF &newContentSize)=0
 
virtual void slotSourceContentSizeChanged (const QSize &newContentSize)=0
 
- 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
 
- Properties inherited from ScrollableObject
qint32 scroll
 

Constructor & Destructor Documentation

ScrollingLayoutRenderer::ScrollingLayoutRenderer ( const QRectF &  geometry,
IconLayout layout 
)
ScrollingLayoutRenderer::~ScrollingLayoutRenderer ( )
virtual

Member Function Documentation

qint32 ScrollingLayoutRenderer::bottomLimit ( ) const
virtual

Reimplemented from ScrollableObject.

bool ScrollingLayoutRenderer::inOverscroll ( ) const
virtual
QPointF ScrollingLayoutRenderer::mapFromContentSpace ( const QPointF &  contentSpacePointF)
virtual

Reimplemented from ScrollableObject.

bool ScrollingLayoutRenderer::mapFromContentSpace ( const QPointF &  contentSpacePointF,
QPointF &  r_mappedScrollerSpacePointF 
)
virtual

Reimplemented from ScrollableObject.

QPointF ScrollingLayoutRenderer::mapToContentSpace ( const QPointF &  scrollerSpacePointF)
virtual

Reimplemented from ScrollableObject.

QPointF ScrollingLayoutRenderer::mapToContentSpace ( const QPoint &  scrollerSpacePoint)
virtual

Reimplemented from ScrollableObject.

bool ScrollingLayoutRenderer::mapToContentSpace ( const QPointF &  scrollerSpacePointF,
QPointF &  r_mappedPointF 
)
virtual

Reimplemented from ScrollableObject.

bool ScrollingLayoutRenderer::mapToContentSpace ( const QPoint &  scrollerSpacePoint,
QPointF &  r_mappedPointF 
)
virtual

Reimplemented from ScrollableObject.

void ScrollingLayoutRenderer::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option = 0,
QWidget *  widget = 0 
)
protectedvirtual

Reimplemented from ScrollableObject.

qint32 ScrollingLayoutRenderer::rawScrollValue ( ) const
virtual

Reimplemented from ScrollableObject.

void ScrollingLayoutRenderer::resetToInitialSourceArea ( )
protectedvirtual

Reimplemented from ScrollableObject.

void ScrollingLayoutRenderer::resetToInitialTargetArea ( )
protectedvirtual

Reimplemented from ScrollableObject.

bool ScrollingLayoutRenderer::resize ( quint32  w,
quint32  h 
)
virtual

Reimplemented from ScrollableObject.

quint32 ScrollingLayoutRenderer::scrollAmountUntilBottomOverscroll ( )
virtual

Reimplemented from ScrollableObject.

quint32 ScrollingLayoutRenderer::scrollAmountUntilTopOverscroll ( )
virtual

Reimplemented from ScrollableObject.

qint32 ScrollingLayoutRenderer::scrollValue ( ) const
virtual

Implements ScrollableObject.

qint32 ScrollingLayoutRenderer::scrollValueNeededToEscapeOverscroll ( )
virtual

Reimplemented from ScrollableObject.

void ScrollingLayoutRenderer::setScrollValue ( qint32  v)
virtual

Implements ScrollableObject.

void ScrollingLayoutRenderer::setScrollValueSmallContent ( qint32  v)
protectedvirtual
void ScrollingLayoutRenderer::setSourceContentGeom ( const QRectF &  newContentGeom)
protectedvirtual

Implements ScrollableObject.

void ScrollingLayoutRenderer::slotSourceContentSizeChanged ( const QSizeF &  newContentSize)
protectedvirtualslot
void ScrollingLayoutRenderer::slotSourceContentSizeChanged ( const QSize &  newContentSize)
protectedvirtualslot
void ScrollingLayoutRenderer::slotSourceGeomChanged ( const QRectF &  newGeom)
protectedvirtualslot
qint32 ScrollingLayoutRenderer::topLimit ( ) const
virtual

Reimplemented from ScrollableObject.

Member Data Documentation

QPointer<IconLayout> ScrollingLayoutRenderer::m_qp_layoutObject
protected
QSize ScrollingLayoutRenderer::m_sourceContentSize
protected

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