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

#include <scrollableobject.h>

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

Public Slots

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

Public Member Functions

 ScrollableObject (const QRectF &geometry)
 
virtual ~ScrollableObject ()
 
virtual QRect screenGeometry () const
 
virtual qint32 scrollValue () const =0
 
virtual void setScrollValue (qint32 v)=0
 
virtual qint32 rawScrollValue () const
 
virtual qint32 scrollValueNeededToEscapeOverscroll ()
 
virtual quint32 scrollAmountUntilTopOverscroll ()
 
virtual quint32 scrollAmountUntilBottomOverscroll ()
 
virtual void enable ()
 
virtual void disable ()
 
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 &contentSpacePoint, QPointF &r_mappedScrollerSpacePointF)
 
virtual bool resize (const QSize &newSize)
 
virtual bool resize (quint32 w, quint32 h)
 
virtual qint32 topLimit () const
 
virtual qint32 bottomLimit () const
 
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 Member Functions

virtual void resetToInitialSourceArea ()
 
virtual void resetToInitialTargetArea ()
 
virtual void setSourceContentGeom (const QRectF &newContentGeom)=0
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option=0, QWidget *widget=0)
 
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

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
 

Properties

qint32 scroll
 
- Properties inherited from ThingPaintable
QString uistate
 
QPointF animatePosition
 

Additional Inherited Members

- 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

ScrollableObject::ScrollableObject ( const QRectF &  geometry)
ScrollableObject::~ScrollableObject ( )
virtual

Member Function Documentation

qint32 ScrollableObject::bottomLimit ( ) const
virtual

Reimplemented in ScrollingLayoutRenderer.

void ScrollableObject::disable ( )
virtual
void ScrollableObject::enable ( )
virtual
virtual bool ScrollableObject::isInOverscroll ( )
inlinevirtual
QPointF ScrollableObject::mapFromContentSpace ( const QPointF &  contentSpacePointF)
virtual

Reimplemented in ScrollingLayoutRenderer.

bool ScrollableObject::mapFromContentSpace ( const QPointF &  contentSpacePoint,
QPointF &  r_mappedScrollerSpacePointF 
)
virtual

Reimplemented in ScrollingLayoutRenderer.

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

Reimplemented in ScrollingLayoutRenderer.

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

Reimplemented in ScrollingLayoutRenderer.

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

Reimplemented in ScrollingLayoutRenderer.

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

Reimplemented in ScrollingLayoutRenderer.

void ScrollableObject::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual
void ScrollableObject::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual
void ScrollableObject::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual
virtual qint32 ScrollableObject::overscrollAmount ( )
inlinevirtual
void ScrollableObject::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option = 0,
QWidget *  widget = 0 
)
protectedvirtual

Implements ThingPaintable.

Reimplemented in ScrollingLayoutRenderer, and ScrollingSurface.

void ScrollableObject::paintOffscreen ( QPainter *  painter)
protectedvirtual

Implements ThingPaintable.

qint32 ScrollableObject::rawScrollValue ( ) const
virtual

Reimplemented in ScrollingSurface, and ScrollingLayoutRenderer.

void ScrollableObject::resetToInitialSourceArea ( )
protectedvirtual

Reimplemented in ScrollingLayoutRenderer.

void ScrollableObject::resetToInitialTargetArea ( )
protectedvirtual

Reimplemented in ScrollingLayoutRenderer.

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

Reimplemented from ThingPaintable.

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

Reimplemented from ThingPaintable.

Reimplemented in ScrollingLayoutRenderer.

QRect ScrollableObject::screenGeometry ( ) const
virtual
quint32 ScrollableObject::scrollAmountUntilBottomOverscroll ( )
virtual

Reimplemented in ScrollingLayoutRenderer.

quint32 ScrollableObject::scrollAmountUntilTopOverscroll ( )
virtual

Reimplemented in ScrollingLayoutRenderer.

virtual qint32 ScrollableObject::scrollValue ( ) const
pure virtual
qint32 ScrollableObject::scrollValueNeededToEscapeOverscroll ( )
virtual

Reimplemented in ScrollingLayoutRenderer.

virtual void ScrollableObject::setScrollValue ( qint32  v)
pure virtual
virtual void ScrollableObject::setSourceContentGeom ( const QRectF &  newContentGeom)
protectedpure virtual
virtual void ScrollableObject::slotSourceContentSizeChanged ( const QSizeF &  newContentSize)
pure virtualslot
virtual void ScrollableObject::slotSourceContentSizeChanged ( const QSize &  newContentSize)
pure virtualslot
virtual void ScrollableObject::slotSourceGeomChanged ( const QRectF &  newGeom)
pure virtualslot
qint32 ScrollableObject::topLimit ( ) const
virtual

Reimplemented in ScrollingLayoutRenderer.

Member Data Documentation

bool ScrollableObject::m_inOverscroll
protected
qint32 ScrollableObject::m_maxSourceRectHeight
protected
qint32 ScrollableObject::m_maxSourceRectWidth
protected
qint32 ScrollableObject::m_overscrollBottomStart
protected
qint32 ScrollableObject::m_overscrollVal
protected
QRect ScrollableObject::m_screenGeom
protected
QRectF ScrollableObject::m_sourceGeom
protected
QRectF ScrollableObject::m_sourceRect
protected
QRect ScrollableObject::m_targetRect
protected

Property Documentation

qint32 ScrollableObject::scroll
readwrite

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