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

#include <quicklaunchbar.h>

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

Public Slots

void slotAppPreRemove (const DimensionsSystemInterface::ExternalApp &eapp, DimensionsSystemInterface::AppMonitorSignalType::Enum origin=DimensionsSystemInterface::AppMonitorSignalType::INVALID)
 
void slotAppPostRemove (const QUuid &removedAppUid, DimensionsSystemInterface::AppMonitorSignalType::Enum origin=DimensionsSystemInterface::AppMonitorSignalType::INVALID)
 
void slotAppAuxiliaryIconRemove (const QUuid &appUid, const QString &launchpointId, DimensionsSystemInterface::AppMonitorSignalType::Enum origin=DimensionsSystemInterface::AppMonitorSignalType::INVALID)
 

Signals

void signalIconAdded (QUuid iconUid)
 
void signalIconRemoved (QUuid iconUid)
 
void signalQuickLaunchBarTriggerActivatedTap ()
 
void signalQuickLaunchBarTriggerActivatedTapAndHold ()
 
void signalFlickAction (QPointF normVectorDirection=QPointF())
 
void signalToggleLauncher ()
 
void signalTouchFSMTouchBegin_Trigger (QVariant touchId)
 
void signalTouchFSMTouchPausedMotion_Trigger ()
 
void signalTouchFSMTouchResumedMotion_Trigger ()
 
void signalTouchFSMTouchEnd_Trigger ()
 
void signalTouchFSMBeginTrack_Action ()
 
void signalTouchFSMTouchLost_Action ()
 
void signalTouchFSMStationary_Action ()
 
void signalTouchFSMMoving_Action ()
 
void signalTouchEndTrack_Action ()
 
void signalIconActivatedTap (IconBase *pIcon)
 
- 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

 QuickLaunchBar (const QRectF &geom, Quicklauncher *p_quicklauncherWindow)
 
virtual ~QuickLaunchBar ()
 
virtual bool canAcceptIcons ()
 
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 bool acceptIncomingIcon (IconBase *p_newIcon)
 
virtual bool releaseTransferredIcon (IconBase *p_transferredIcon)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option=0, QWidget *widget=0)
 
virtual void paintOffscreen (QPainter *painter)
 
void paintBackground (QPainter *painter)
 
virtual bool fullInit (quint32 screenWidth, quint32 screenHeight)
 
virtual bool resize (const QSize &s)
 
virtual QList< QPointer
< IconBase > > 
iconsInFlowOrder () const
 
virtual bool restoreFromSave ()
 
void cancelLaunchFeedback ()
 
- 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 bool resize (quint32 newWidth, quint32 newHeight)
 
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 uint hashValue () const
 
virtual void touchTrackedPointStarted (int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition)
 
virtual void redirectTouchPrepare (Thing *p_sourceThing, const TouchRegister &touchRegister, int contextHint=0)
 

Static Public Member Functions

static QSize QuickLaunchSizeFromScreenSize (int screenWidth, int screenHeight)
 
- Static Public Member Functions inherited from ThingPaintable
static bool isItemThingPaintable (QGraphicsItem *p_qgitem)
 
static ThingPaintablethingpaintable_cast (QGraphicsItem *p_qgitem)
 

Protected Types

typedef QList< QPointer
< IconBase > >::iterator 
IconListIter
 

Protected Slots

virtual void slotIconDeleted (QObject *p)
 
void slotCancelLaunchFeedback ()
 

Protected Member Functions

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)
 
void setAppLaunchFeedback (IconBase *pIcon)
 
virtual void rearrangeIcons (bool animate=false)
 
virtual qint32 getCurrentIconListIndex (IconBase *p_icon)
 
virtual bool addIcon (quint32 index, IconBase *p_icon, bool animate=false)
 
virtual bool moveIcon (quint32 oldIndex, quint32 newIndex, IconBase *p_icon, bool animate=false)
 
virtual void removeIcon (IconBase *p_icon, bool animate=false)
 
virtual bool detectAndHandleSpecialMoveAreas (int id, const QPointF &pageCoordinate, const RedirectContext &redirContext)
 
virtual void deleteIcon (IconBase *p_icon, bool animate)
 
virtual IconBasegetIconPtr (const QUuid &iconUid, bool paramIsMasterUid=true)
 
virtual void iconActivatedTap (QUuid iconUid)
 
virtual bool anyTouchTracking (int *r_p_mainTouchId=0)
 
virtual bool touchPointTriggerType (int id, TouchTriggerType::Enum &r_type)
 
virtual bool testAndSetTriggerOnRegister (int id, TouchTriggerType::Enum conditionV, TouchTriggerType::Enum setV)
 
virtual bool testAndSetTriggerOnRegisterCreate (int id, TouchTriggerType::Enum conditionV, TouchTriggerType::Enum setV)
 
virtual RedirectingType::Enum isRedirecting (int id, Thing **r_pp_redirectTargetThing, RedirectContext **r_pp_redirContext)
 
virtual bool redirectTo (int id, Thing *p_redirectTargetThing, RedirectContext *p_redirContext=0)
 
virtual bool changeRedirectTo (int id, Thing *p_currentlyRedirectedToThing, Thing *p_newRedirectedToThing, RedirectContext *p_redirContext=0)
 TODO: unsafe...make it more so. More...
 
virtual IconBaseiconAtCoordinate (const QPointF &coord)
 
virtual void setupTouchFSM ()
 
virtual void startTouchFSM ()
 
virtual void stopTouchFSM ()
 
virtual bool touchStartEvent (QTouchEvent *event)
 
virtual bool touchUpdateEvent (QTouchEvent *event)
 
virtual bool touchEndEvent (QTouchEvent *event)
 
virtual void touchTrackedPointMoved (int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition)
 virtual More...
 
virtual void touchTrackedPointReleased (int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition)
 
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)
 
virtual bool cancelRedirection (int id)
 
virtual bool handleLauncherPageSpecialMoveArea (int id, const QPointF &pageCoordinate, const RedirectContext &redirContext)
 
virtual bool okToUseFlick (int id)
 
virtual bool okToUseTap (int id)
 
virtual bool okToUseTapAndHold (int id)
 
virtual qint32 iconSlotForInsertingAtXCoord (qint32 x)
 
- 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)
 

Static Protected Member Functions

static void resetEventCounters ()
 

Protected Attributes

QStateMachinem_p_touchFSM
 
QStatem_p_fsmStateNoTouch
 
QStatem_p_fsmStateTouchMotionTracking
 
QStatem_p_fsmStateTouchStationaryTracking
 
QMap< int, TouchRegisterm_touchRegisters
 
bool m_fullInitPerformed
 
QPointer< Quicklauncherm_qp_ownerWindow
 
QPointer< PixmapObjectm_qp_backgroundTranslucent
 
QPointer< PixmapObjectm_qp_backgroundSolid
 
QPointer< PixmapObjectm_qp_currentBg
 
QPointer< PixButton2Statem_qp_launcherAccessButton
 
QPair< qint32, qint32 > m_itemAreaXrange
 
qint32 m_itemsY
 
QList< qint32 > m_layoutAnchorsXcoords
 
QList< QPointer< IconBase > > m_iconItems
 
QPointer< IconBasem_qp_iconInMotion
 
qint32 m_iconInMotionCurrentIndex
 
QPointer< QParallelAnimationGroup > m_qp_reorderAnimationGroup
 
IconBasem_iconShowingFeedback
 
QTimer m_feedbackTimer
 
- Protected Attributes inherited from ThingPaintable
QRectF m_geom
 
QRectF m_boundingRect
 
QString m_uiState
 
- Protected Attributes inherited from Thing
QPointer< Thingm_qp_takerOwner
 

Static Protected Attributes

static const char * TouchFSMPropertyName_isTracking = "isTracking"
 
static const char * TouchFSMProperyName_trackedId = "trackedId"
 
static qint32 sEventCounter0 = 0
 

Additional Inherited Members

- Static Public Attributes inherited from ThingPaintable
static int MagicTypePropertyKey = 1111
 
static int MagicTypePropertyValue = 2222
 
- Properties inherited from ThingPaintable
QString uistate
 
QPointF animatePosition
 

Member Typedef Documentation

typedef QList<QPointer<IconBase> >::iterator QuickLaunchBar::IconListIter
protected

Constructor & Destructor Documentation

QuickLaunchBar::QuickLaunchBar ( const QRectF &  geom,
Quicklauncher p_quicklauncherWindow 
)
QuickLaunchBar::~QuickLaunchBar ( )
virtual

Member Function Documentation

bool QuickLaunchBar::acceptIncomingIcon ( IconBase p_newIcon)
virtual
bool QuickLaunchBar::addIcon ( quint32  index,
IconBase p_icon,
bool  animate = false 
)
protectedvirtual
bool QuickLaunchBar::anyTouchTracking ( int r_p_mainTouchId = 0)
protectedvirtual
bool QuickLaunchBar::canAcceptIcons ( )
virtual
void QuickLaunchBar::cancelLaunchFeedback ( )
bool QuickLaunchBar::cancelRedirection ( int  id)
protectedvirtual
bool QuickLaunchBar::changeRedirectTo ( int  id,
Thing p_currentlyRedirectedToThing,
Thing p_newRedirectedToThing,
RedirectContext p_redirContext = 0 
)
protectedvirtual

TODO: unsafe...make it more so.

void QuickLaunchBar::deleteIcon ( IconBase p_icon,
bool  animate 
)
protectedvirtual
bool QuickLaunchBar::detectAndHandleSpecialMoveAreas ( int  id,
const QPointF &  pageCoordinate,
const RedirectContext redirContext 
)
protectedvirtual
bool QuickLaunchBar::flickGesture ( FlickGesture flickEvent,
QGestureEvent *  baseGestureEvent 
)
protectedvirtual
bool QuickLaunchBar::fullInit ( quint32  screenWidth,
quint32  screenHeight 
)
virtual

So...just return here and have the launcher call "restore" when it restores its own pages

virtual bool QuickLaunchBar::gestureEvent ( QGestureEvent *  gestureEvent)
inlineprotectedvirtual
qint32 QuickLaunchBar::getCurrentIconListIndex ( IconBase p_icon)
protectedvirtual
IconBase * QuickLaunchBar::getIconPtr ( const QUuid &  iconUid,
bool  paramIsMasterUid = true 
)
protectedvirtual
bool QuickLaunchBar::handleLauncherPageSpecialMoveArea ( int  id,
const QPointF &  pageCoordinate,
const RedirectContext redirContext 
)
protectedvirtual

....well, actually... it BETTER be a Page. And the context should be LauncherPageIconTransferRedirectContext

void QuickLaunchBar::iconActivatedTap ( QUuid  iconUid)
protectedvirtual
IconBase * QuickLaunchBar::iconAtCoordinate ( const QPointF &  coord)
protectedvirtual
QList< QPointer< IconBase > > QuickLaunchBar::iconsInFlowOrder ( ) const
virtual
qint32 QuickLaunchBar::iconSlotForInsertingAtXCoord ( qint32  x)
protectedvirtual
RedirectingType::Enum QuickLaunchBar::isRedirecting ( int  id,
Thing **  r_pp_redirectTargetThing,
RedirectContext **  r_pp_redirContext 
)
protectedvirtual
bool QuickLaunchBar::moveIcon ( quint32  oldIndex,
quint32  newIndex,
IconBase p_icon,
bool  animate = false 
)
protectedvirtual
bool QuickLaunchBar::offer ( Thing p_offer,
Thing p_offeringThing 
)
virtual

Reimplemented from Thing.

bool QuickLaunchBar::okToUseFlick ( int  id)
protectedvirtual
bool QuickLaunchBar::okToUseTap ( int  id)
protectedvirtual
bool QuickLaunchBar::okToUseTapAndHold ( int  id)
protectedvirtual
void QuickLaunchBar::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option = 0,
QWidget *  widget = 0 
)
virtual

Implements ThingPaintable.

void QuickLaunchBar::paintBackground ( QPainter *  painter)
inline
void QuickLaunchBar::paintOffscreen ( QPainter *  painter)
virtual

Implements ThingPaintable.

QSize QuickLaunchBar::QuickLaunchSizeFromScreenSize ( int  screenWidth,
int  screenHeight 
)
static
void QuickLaunchBar::rearrangeIcons ( bool  animate = false)
protectedvirtual
void QuickLaunchBar::redirectedTouchTrackedPointMoved ( Thing p_sourceThing,
int  id,
const QPointF &  scenePosition,
const QPointF &  lastScenePosition,
const QPointF &  initialPosition,
const RedirectContext redirContext 
)
protectedvirtual

Reimplemented from Thing.

void QuickLaunchBar::redirectedTouchTrackedPointReleased ( Thing p_sourceThing,
int  id,
const QPointF &  scenePosition,
const QPointF &  lastScenePosition,
const QPointF &  initialPosition,
const RedirectContext redirContext 
)
protectedvirtual

Reimplemented from Thing.

bool QuickLaunchBar::redirectTo ( int  id,
Thing p_redirectTargetThing,
RedirectContext p_redirContext = 0 
)
protectedvirtual
bool QuickLaunchBar::releaseTransferredIcon ( IconBase p_transferredIcon)
virtual
void QuickLaunchBar::removeIcon ( IconBase p_icon,
bool  animate = false 
)
protectedvirtual
void QuickLaunchBar::resetEventCounters ( )
staticprotected
bool QuickLaunchBar::resize ( const QSize &  s)
virtual

Reimplemented from ThingPaintable.

bool QuickLaunchBar::restoreFromSave ( )
virtual
bool QuickLaunchBar::sceneEvent ( QEvent event)
protectedvirtual
void QuickLaunchBar::setAppLaunchFeedback ( IconBase pIcon)
protected
void QuickLaunchBar::setupTouchFSM ( )
protectedvirtual
void QuickLaunchBar::signalFlickAction ( QPointF  normVectorDirection = QPointF())
signal
void QuickLaunchBar::signalIconActivatedTap ( IconBase pIcon)
signal
void QuickLaunchBar::signalIconAdded ( QUuid  iconUid)
signal
void QuickLaunchBar::signalIconRemoved ( QUuid  iconUid)
signal
void QuickLaunchBar::signalQuickLaunchBarTriggerActivatedTap ( )
signal
void QuickLaunchBar::signalQuickLaunchBarTriggerActivatedTapAndHold ( )
signal
void QuickLaunchBar::signalToggleLauncher ( )
signal
void QuickLaunchBar::signalTouchEndTrack_Action ( )
signal
void QuickLaunchBar::signalTouchFSMBeginTrack_Action ( )
signal
void QuickLaunchBar::signalTouchFSMMoving_Action ( )
signal
void QuickLaunchBar::signalTouchFSMStationary_Action ( )
signal
void QuickLaunchBar::signalTouchFSMTouchBegin_Trigger ( QVariant  touchId)
signal
void QuickLaunchBar::signalTouchFSMTouchEnd_Trigger ( )
signal
void QuickLaunchBar::signalTouchFSMTouchLost_Action ( )
signal
void QuickLaunchBar::signalTouchFSMTouchPausedMotion_Trigger ( )
signal
void QuickLaunchBar::signalTouchFSMTouchResumedMotion_Trigger ( )
signal
void QuickLaunchBar::slotAppAuxiliaryIconRemove ( const QUuid &  appUid,
const QString &  launchpointId,
DimensionsSystemInterface::AppMonitorSignalType::Enum  origin = DimensionsSystemInterface::AppMonitorSignalType::INVALID 
)
inlineslot
void QuickLaunchBar::slotAppPostRemove ( const QUuid &  removedAppUid,
DimensionsSystemInterface::AppMonitorSignalType::Enum  origin = DimensionsSystemInterface::AppMonitorSignalType::INVALID 
)
inlineslot
void QuickLaunchBar::slotCancelLaunchFeedback ( )
protectedslot
void QuickLaunchBar::slotIconDeleted ( QObject p)
protectedvirtualslot
void QuickLaunchBar::startTouchFSM ( )
protectedvirtual
void QuickLaunchBar::stopTouchFSM ( )
protectedvirtual
bool QuickLaunchBar::take ( Thing p_takerThing)
virtual

Reimplemented from Thing.

void QuickLaunchBar::taken ( Thing p_takenThing,
Thing p_takerThing 
)
virtual

Reimplemented from Thing.

bool QuickLaunchBar::taking ( Thing p_victimThing,
Thing p_takerThing 
)
virtual

Reimplemented from Thing.

bool QuickLaunchBar::tapAndHoldGesture ( QTapAndHoldGesture *  tapHoldEvent,
QGestureEvent *  baseGestureEvent 
)
protectedvirtual

theoretically this could be rejected! //TODO: handling

bool QuickLaunchBar::tapGesture ( QTapGesture *  tapEvent,
QGestureEvent *  baseGestureEvent 
)
protectedvirtual
bool QuickLaunchBar::testAndSetTriggerOnRegister ( int  id,
TouchTriggerType::Enum  conditionV,
TouchTriggerType::Enum  setV 
)
protectedvirtual
bool QuickLaunchBar::testAndSetTriggerOnRegisterCreate ( int  id,
TouchTriggerType::Enum  conditionV,
TouchTriggerType::Enum  setV 
)
protectedvirtual
bool QuickLaunchBar::touchEndEvent ( QTouchEvent *  event)
protectedvirtual
bool QuickLaunchBar::touchPointTriggerType ( int  id,
TouchTriggerType::Enum r_type 
)
protectedvirtual
bool QuickLaunchBar::touchStartEvent ( QTouchEvent *  event)
protectedvirtual
void QuickLaunchBar::touchTrackedPointMoved ( int  id,
const QPointF &  scenePosition,
const QPointF &  lastScenePosition,
const QPointF &  initialPosition 
)
protectedvirtual

virtual

Reimplemented from Thing.

void QuickLaunchBar::touchTrackedPointReleased ( int  id,
const QPointF &  scenePosition,
const QPointF &  lastScenePosition,
const QPointF &  initialPosition 
)
protectedvirtual

Reimplemented from Thing.

bool QuickLaunchBar::touchUpdateEvent ( QTouchEvent *  event)
protectedvirtual

Member Data Documentation

QTimer QuickLaunchBar::m_feedbackTimer
protected
bool QuickLaunchBar::m_fullInitPerformed
protected
qint32 QuickLaunchBar::m_iconInMotionCurrentIndex
protected
QList<QPointer<IconBase> > QuickLaunchBar::m_iconItems
protected
IconBase* QuickLaunchBar::m_iconShowingFeedback
protected
QPair<qint32,qint32> QuickLaunchBar::m_itemAreaXrange
protected
qint32 QuickLaunchBar::m_itemsY
protected
QList<qint32> QuickLaunchBar::m_layoutAnchorsXcoords
protected
QState* QuickLaunchBar::m_p_fsmStateNoTouch
protected
QState* QuickLaunchBar::m_p_fsmStateTouchMotionTracking
protected
QState* QuickLaunchBar::m_p_fsmStateTouchStationaryTracking
protected
QStateMachine* QuickLaunchBar::m_p_touchFSM
protected
QPointer<PixmapObject> QuickLaunchBar::m_qp_backgroundSolid
protected
QPointer<PixmapObject> QuickLaunchBar::m_qp_backgroundTranslucent
protected
QPointer<PixmapObject> QuickLaunchBar::m_qp_currentBg
protected
QPointer<IconBase> QuickLaunchBar::m_qp_iconInMotion
protected
QPointer<PixButton2State> QuickLaunchBar::m_qp_launcherAccessButton
protected
QPointer<Quicklauncher> QuickLaunchBar::m_qp_ownerWindow
protected
QPointer<QParallelAnimationGroup> QuickLaunchBar::m_qp_reorderAnimationGroup
protected
QMap<int,TouchRegister> QuickLaunchBar::m_touchRegisters
protected
qint32 QuickLaunchBar::sEventCounter0 = 0
staticprotected
const char * QuickLaunchBar::TouchFSMPropertyName_isTracking = "isTracking"
staticprotected
const char * QuickLaunchBar::TouchFSMProperyName_trackedId = "trackedId"
staticprotected

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