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

#include <pagetabbar.h>

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

Public Slots

void slotAddTab (const QString &labelString, Page *p_refersToPage=0)
 
void slotUnHighlightAll ()
 

Signals

void signalTabForPageActivatedTap (Page *)
 
void signalTabForPageActivatedTapAndHold (Page *)
 
void signalAllTabHighlightsOff ()
 
void signalInteractionsBlocked ()
 
void signalInteractionsRestored ()
 
- 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

 PageTabBar (const QRectF &pageBarGeometry, LauncherObject *p_belongsTo)
 
virtual ~PageTabBar ()
 
PixmapObjectsetBackground (PixmapObject *p_newBackground)
 
PixmapObjectsetBackgroundShadow (PixmapObject *p_new)
 
virtual PagetestForIntersectOnPageTab (const QPointF &sceneCoordinate, bool highlight=false)
 
virtual PagetestForIntersectOnPageTab (const QPointF &sceneCoordinate, PageTab **r_p_pageTab, bool highlight=false)
 
virtual void highlightTabForPage (Page *p_page)
 
virtual void unHighlightTabForPage (Page *p_page)
 
- 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 Member Functions

static QSize PageTabSizeFromLauncherSize (quint32 launcherWidth, quint32 launcherHeight)
 
static QFont staticLabelFontForTabs ()
 
- Static Public Member Functions inherited from ThingPaintable
static bool isItemThingPaintable (QGraphicsItem *p_qgitem)
 
static ThingPaintablethingpaintable_cast (QGraphicsItem *p_qgitem)
 

Protected Slots

virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
virtual void slotAnimationFinished ()
 
virtual void slotTabActivatedTap ()
 
virtual void slotTabActivatedTapAndHold ()
 
virtual void slotHighlighted ()
 
virtual void slotLauncherBlockedInteractions ()
 
virtual void slotLauncherAllowedInteractions ()
 

Protected Member Functions

virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option=0, QWidget *widget=0)
 
virtual void paintOffscreen (QPainter *painter)
 
virtual bool resize (quint32 newWidth, quint32 newHeight)
 
virtual bool resize (const QSize &s)
 
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 panGesture (QPanGesture *panEvent)
 
virtual bool swipeGesture (QSwipeGesture *swipeEvent)
 
virtual bool flickGesture (FlickGesture *flickEvent)
 
virtual bool pinchGesture (QPinchGesture *pinchEvent)
 
virtual bool tapAndHoldGesture (QTapAndHoldGesture *tapHoldEvent)
 
virtual bool tapGesture (QTapGesture *tapEvent)
 
virtual bool customGesture (QGesture *customGesture)
 
virtual QList< QPointer
< PageTab > > 
tabs ()
 
virtual PageTabtabByPage (Page *p_page)
 
virtual void relayoutExistingTabs ()
 
virtual void relayoutExistingTabs (const qreal toWidth, const qreal toHeight)
 
virtual void resetTabSpaces ()
 
virtual void recalculateUnusedSpace ()
 
- 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 LauncherObject
 

Additional Inherited Members

- Static Public Attributes inherited from ThingPaintable
static int MagicTypePropertyKey = 1111
 
static int MagicTypePropertyValue = 2222
 
- 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

PageTabBar::PageTabBar ( const QRectF &  pageBarGeometry,
LauncherObject p_belongsTo 
)
PageTabBar::~PageTabBar ( )
virtual

Member Function Documentation

virtual bool PageTabBar::customGesture ( QGesture customGesture)
inlineprotectedvirtual
bool PageTabBar::flickGesture ( FlickGesture flickEvent)
protectedvirtual
virtual bool PageTabBar::gestureEvent ( QGestureEvent *  gestureEvent)
inlineprotectedvirtual
void PageTabBar::highlightTabForPage ( Page p_page)
virtual
void PageTabBar::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtualslot
void PageTabBar::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtualslot
void PageTabBar::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtualslot
QSize PageTabBar::PageTabSizeFromLauncherSize ( quint32  launcherWidth,
quint32  launcherHeight 
)
static
void PageTabBar::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option = 0,
QWidget *  widget = 0 
)
protectedvirtual

Implements ThingPaintable.

void PageTabBar::paintOffscreen ( QPainter *  painter)
protectedvirtual

Implements ThingPaintable.

virtual bool PageTabBar::panGesture ( QPanGesture *  panEvent)
inlineprotectedvirtual
virtual bool PageTabBar::pinchGesture ( QPinchGesture *  pinchEvent)
inlineprotectedvirtual
void PageTabBar::recalculateUnusedSpace ( )
protectedvirtual
void PageTabBar::relayoutExistingTabs ( )
protectedvirtual
void PageTabBar::relayoutExistingTabs ( const qreal  toWidth,
const qreal  toHeight 
)
protectedvirtual
void PageTabBar::resetTabSpaces ( )
protectedvirtual
bool PageTabBar::resize ( quint32  newWidth,
quint32  newHeight 
)
protectedvirtual

Reimplemented from ThingPaintable.

bool PageTabBar::resize ( const QSize &  s)
protectedvirtual

Reimplemented from ThingPaintable.

bool PageTabBar::sceneEvent ( QEvent event)
protectedvirtual
PixmapObject * PageTabBar::setBackground ( PixmapObject p_newBackground)
PixmapObject * PageTabBar::setBackgroundShadow ( PixmapObject p_new)
void PageTabBar::signalAllTabHighlightsOff ( )
signal
void PageTabBar::signalInteractionsBlocked ( )
signal
void PageTabBar::signalInteractionsRestored ( )
signal
void PageTabBar::signalTabForPageActivatedTap ( Page )
signal
void PageTabBar::signalTabForPageActivatedTapAndHold ( Page )
signal
void PageTabBar::slotAddTab ( const QString &  labelString,
Page p_refersToPage = 0 
)
slot

careful, don't get circular here... (keep straight what is an "action" slot and what is a "alert" slot)

virtual void PageTabBar::slotAnimationFinished ( )
inlineprotectedvirtualslot
void PageTabBar::slotHighlighted ( )
protectedvirtualslot
void PageTabBar::slotLauncherAllowedInteractions ( )
protectedvirtualslot
void PageTabBar::slotLauncherBlockedInteractions ( )
protectedvirtualslot
void PageTabBar::slotTabActivatedTap ( )
protectedvirtualslot
void PageTabBar::slotTabActivatedTapAndHold ( )
protectedvirtualslot
void PageTabBar::slotUnHighlightAll ( )
slot
QFont PageTabBar::staticLabelFontForTabs ( )
static
bool PageTabBar::swipeGesture ( QSwipeGesture *  swipeEvent)
protectedvirtual
PageTab * PageTabBar::tabByPage ( Page p_page)
protectedvirtual
QList< QPointer< PageTab > > PageTabBar::tabs ( )
protectedvirtual
virtual bool PageTabBar::tapAndHoldGesture ( QTapAndHoldGesture *  tapHoldEvent)
inlineprotectedvirtual
virtual bool PageTabBar::tapGesture ( QTapGesture *  tapEvent)
inlineprotectedvirtual
Page * PageTabBar::testForIntersectOnPageTab ( const QPointF &  sceneCoordinate,
bool  highlight = false 
)
virtual
Page * PageTabBar::testForIntersectOnPageTab ( const QPointF &  sceneCoordinate,
PageTab **  r_p_pageTab,
bool  highlight = false 
)
virtual
virtual bool PageTabBar::touchEndEvent ( QTouchEvent *  event)
inlineprotectedvirtual
virtual bool PageTabBar::touchEvent ( QTouchEvent *  event)
inlineprotectedvirtual
virtual bool PageTabBar::touchStartEvent ( QTouchEvent *  event)
inlineprotectedvirtual
virtual bool PageTabBar::touchUpdateEvent ( QTouchEvent *  event)
inlineprotectedvirtual
void PageTabBar::unHighlightTabForPage ( Page p_page)
virtual

Friends And Related Function Documentation

friend class LauncherObject
friend

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