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

#include <pagetab.h>

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

Public Slots

virtual void slotHighlight ()
 
virtual void slotUnHighlight ()
 

Signals

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

Public Member Functions

 PageTab (const QRectF &pageTabGeometry, const QString &label, PageTabBar *p_belongsTo, Page *p_refersToPage=0)
 
virtual ~PageTab ()
 
PagerelatedPage () const
 
virtual bool testForIntersect (const QPointF &tabBarPositionICS, bool highlight=false)
 
virtual void syntheticTap ()
 
virtual quint32 tabIndex () const
 
- 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)
 

Static Public Attributes

static const char * PropertyNameIndex = "tab_index"
 
- Static Public Attributes inherited from ThingPaintable
static int MagicTypePropertyKey = 1111
 
static int MagicTypePropertyValue = 2222
 

Protected Slots

virtual void slotSetDisplayMode (PageTabDisplayMode::Enum mode)
 
virtual void slotRelatedPageActive ()
 
virtual void slotRelatedPageDeactivated ()
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
virtual void slotAnimationFinished ()
 
virtual void slotInteractionsBlocked ()
 
virtual void slotInteractionsAllowed ()
 

Protected Member Functions

virtual void setTabIndex (quint32 i)
 
virtual void initObjects ()
 
virtual void initSignalSlotConnections ()
 
virtual PixmapObjectsetBackground (PixmapObject *p_new, PageTabDisplayMode::Enum mode, bool makeCurrent=false)
 
virtual QList< PixmapObject * > setBackgrounds (PixmapObject *p_newNormal, PixmapObject *p_newSelected, PixmapObject *p_newHighlighted)
 
virtual PixmapObjectsetLeftVerticalDivider (PixmapObject *p_new)
 
virtual PixmapObjectsetRightVerticalDivider (PixmapObject *p_new)
 
virtual void setLeftVerticalDividerVisible (bool visible)
 
virtual void setRightVerticalDividerVisible (bool visible)
 
virtual PixmapObjectsetBackgroundShadow (PixmapObject *p_new)
 
virtual bool resize (const QSize &s)
 
virtual bool resize (quint32 newWidth, quint32 newHeight)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option=0, QWidget *widget=0)
 
virtual void paintOffscreen (QPainter *painter)
 
virtual bool touchEvent (QTouchEvent *event)
 
virtual bool touchStartEvent (QTouchEvent *event)
 
virtual bool touchUpdateEvent (QTouchEvent *event)
 
virtual bool touchEndEvent (QTouchEvent *event)
 
virtual bool sceneEvent (QEvent *event)
 
virtual bool gestureEvent (QGestureEvent *gestureEvent)
 
virtual bool flickGesture (FlickGesture *flickEvent, QGestureEvent *baseGestureEvent)
 
virtual bool tapAndHoldGesture (QTapAndHoldGesture *tapHoldEvent, QGestureEvent *baseGestureEvent)
 
virtual bool tapGesture (QTapGesture *tapEvent, QGestureEvent *baseGestureEvent)
 
virtual void recalculateLabelBoundsForCurrentGeom ()
 
virtual void redoLabelTextLayout ()
 
virtual void recalculateLabelPosition ()
 
- 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)
 

Friends

class PageTabBar
 

Additional Inherited Members

- Static Public Member Functions inherited from ThingPaintable
static bool isItemThingPaintable (QGraphicsItem *p_qgitem)
 
static ThingPaintablethingpaintable_cast (QGraphicsItem *p_qgitem)
 
- Protected Attributes inherited from ThingPaintable
QRectF m_geom
 
QRectF m_boundingRect
 
QString m_uiState
 
- Properties inherited from ThingPaintable
QString uistate
 
QPointF animatePosition
 

Constructor & Destructor Documentation

PageTab::PageTab ( const QRectF &  pageTabGeometry,
const QString &  label,
PageTabBar p_belongsTo,
Page p_refersToPage = 0 
)
PageTab::~PageTab ( )
virtual

Member Function Documentation

bool PageTab::flickGesture ( FlickGesture flickEvent,
QGestureEvent *  baseGestureEvent 
)
protectedvirtual
virtual bool PageTab::gestureEvent ( QGestureEvent *  gestureEvent)
inlineprotectedvirtual
void PageTab::initObjects ( )
protectedvirtual
void PageTab::initSignalSlotConnections ( )
protectedvirtual
void PageTab::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtualslot
void PageTab::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtualslot
void PageTab::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtualslot
void PageTab::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option = 0,
QWidget *  widget = 0 
)
protectedvirtual

Implements ThingPaintable.

void PageTab::paintOffscreen ( QPainter *  painter)
protectedvirtual

Implements ThingPaintable.

void PageTab::recalculateLabelBoundsForCurrentGeom ( )
protectedvirtual
void PageTab::recalculateLabelPosition ( )
protectedvirtual
void PageTab::redoLabelTextLayout ( )
protectedvirtual
Page * PageTab::relatedPage ( ) const
bool PageTab::resize ( const QSize &  s)
protectedvirtual

Reimplemented from ThingPaintable.

bool PageTab::resize ( quint32  newWidth,
quint32  newHeight 
)
protectedvirtual

Reimplemented from ThingPaintable.

bool PageTab::sceneEvent ( QEvent event)
protectedvirtual
PixmapObject * PageTab::setBackground ( PixmapObject p_new,
PageTabDisplayMode::Enum  mode,
bool  makeCurrent = false 
)
protectedvirtual
QList< PixmapObject * > PageTab::setBackgrounds ( PixmapObject p_newNormal,
PixmapObject p_newSelected,
PixmapObject p_newHighlighted 
)
protectedvirtual
PixmapObject * PageTab::setBackgroundShadow ( PixmapObject p_new)
protectedvirtual
PixmapObject * PageTab::setLeftVerticalDivider ( PixmapObject p_new)
protectedvirtual
void PageTab::setLeftVerticalDividerVisible ( bool  visible)
protectedvirtual
PixmapObject * PageTab::setRightVerticalDivider ( PixmapObject p_new)
protectedvirtual
void PageTab::setRightVerticalDividerVisible ( bool  visible)
protectedvirtual
void PageTab::setTabIndex ( quint32  i)
protectedvirtual
void PageTab::signalActivatedTap ( )
signal
void PageTab::signalActivatedTapAndHold ( )
signal
void PageTab::signalSlotHighlighted ( )
signal
virtual void PageTab::slotAnimationFinished ( )
inlineprotectedvirtualslot
void PageTab::slotHighlight ( )
virtualslot
void PageTab::slotInteractionsAllowed ( )
protectedvirtualslot
void PageTab::slotInteractionsBlocked ( )
protectedvirtualslot
void PageTab::slotRelatedPageActive ( )
protectedvirtualslot
void PageTab::slotRelatedPageDeactivated ( )
protectedvirtualslot
void PageTab::slotSetDisplayMode ( PageTabDisplayMode::Enum  mode)
protectedvirtualslot
void PageTab::slotUnHighlight ( )
virtualslot
void PageTab::syntheticTap ( )
virtual
quint32 PageTab::tabIndex ( ) const
virtual
bool PageTab::tapAndHoldGesture ( QTapAndHoldGesture *  tapHoldEvent,
QGestureEvent *  baseGestureEvent 
)
protectedvirtual
bool PageTab::tapGesture ( QTapGesture *  tapEvent,
QGestureEvent *  baseGestureEvent 
)
protectedvirtual
bool PageTab::testForIntersect ( const QPointF &  tabBarPositionICS,
bool  highlight = false 
)
virtual
virtual bool PageTab::touchEndEvent ( QTouchEvent *  event)
inlineprotectedvirtual
virtual bool PageTab::touchEvent ( QTouchEvent *  event)
inlineprotectedvirtual
virtual bool PageTab::touchStartEvent ( QTouchEvent *  event)
inlineprotectedvirtual
virtual bool PageTab::touchUpdateEvent ( QTouchEvent *  event)
inlineprotectedvirtual

Friends And Related Function Documentation

friend class PageTabBar
friend

Member Data Documentation

const char * PageTab::PropertyNameIndex = "tab_index"
static

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