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

#include <dimensionslauncher.h>

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

Public Slots

void slotAppScanCompleted (bool initialScan=false)
 
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)
 
void slotAppAdd (const DimensionsSystemInterface::ExternalApp &eapp, DimensionsSystemInterface::AppMonitorSignalType::Enum origin=DimensionsSystemInterface::AppMonitorSignalType::INVALID)
 
void slotAppAuxiliaryIconAdd (const QUuid &appUid, const QUuid &newLaunchPointIconUid, DimensionsSystemInterface::AppMonitorSignalType::Enum)
 
void slotRestorePagesFromSaved ()
 
void slotSavePages ()
 
void slotIconActivatedTap (IconBase *pIcon)
 
void slotTabActivatedTap (Page *tabRelatedPage)
 
void slotTabActivatedTapAndHold (Page *tabRelatedPage)
 
void slotGotoPageIndex (quint32 pageIndex)
 
void slotGotoPageIndexNoAnim (quint32 pageIndex)
 
void slotGotoLeftPage ()
 
void slotGotoRightPage ()
 
void slotSystemShowingLauncher ()
 
void slotSystemHidingLauncher ()
 
void slotSystemShowingLauncherOverlay ()
 
void slotSystemHidingLauncherOverlay ()
 
void slotPageModeChanged (PageMode::Enum, PageMode::Enum)
 
void slotReorderDoneButtonTap ()
 
void slotReorderExitPageRequest ()
 
void slotQuicklaunchFullyOpen ()
 
void slotQuicklaunchFullyClosed ()
 
void slotLauncherFullyOpen ()
 
void slotLauncherFullyClosed ()
 
virtual void slotIconActionRequest (int cmdRequest, IconBase *p_iconSource=0)
 

Signals

void signalGeometryChange ()
 
void signalNumPagesChanged ()
 
void signalUiStateChanged ()
 
void signalReady ()
 
void signalNotReady ()
 
void signalHideMe (DimensionsTypes::HideCause::Enum cause=DimensionsTypes::HideCause::None)
 
void signalShowMe (DimensionsTypes::ShowCause::Enum cause=DimensionsTypes::ShowCause::None)
 
void signalDropIconOnQuicklaunch (const QString &)
 
void signalPageCentered (QUuid pageUid)
 TODO: UNUSED: ? More...
 
void signalPagesStartReorderMode ()
 
void signalPagesEndReorderMode ()
 
void signalPagePanLeft ()
 
void signalPagePanRight ()
 
void signalPageMovementEnd ()
 
void signalBlockPageInteraction ()
 
void signalRestorePageInteraction ()
 
- 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

 LauncherObject (const QRectF &geometry, DimensionsUI *p_mainWindow)
 
virtual ~LauncherObject ()
 
QUuid appUidFromIconUid (const QUuid &iconUid) const
 
QRectF areaTabBar () const
 
QRectF areaQuickLaunchBar () const
 
QRectF areaPageLeftSide (Page *pPage=0) const
 
QRectF areaPageRightSide (Page *pPage=0) const
 
bool canShowRemoveDeleteDecoratorOnIcon (const QUuid &uid)
 
qint32 centerPageIndex () const
 
bool checkAllowedIconTransferInterPage (Page *p_srcPage, Page *p_destPage, IconBase *p_icon)
 
LauncherAreas::Enum classifyPageLocation (const QPointF &launcherCoordinate) const
 
qint32 closestToCenter (qint32 &r_dist) const
 
qint32 closestToCenterDistance () const
 
qint32 closestToCenterPageIndex () const
 
void fullSizeInit (quint32 width, quint32 height)
 
quint32 horizontalLengthOfPageTrain () const
 
QUuid iconUidFromAppUid (const QUuid &appUid) const
 
bool isAppRemovable (const QUuid &uid)
 
quint32 numPages () const
 
virtual bool offer (Thing *p_offer, Thing *p_offeringThing)
 
qint32 pageHorizontalOffsetToCenter (quint32 pageIndex) const
 
PagecurrentPage () const
 
PagepageLeft (Page *p_fromPage) const
 
PagepageRight (Page *p_fromPage) const
 
virtual void resize (int w, int h)
 
void saveCurrentLauncherLayouts ()
 
void sendIconToQuickLaunchBar (IconBase *p_icon)
 
PageTabtabForPage (Page *p_page) const
 
virtual bool take (Thing *p_takerThing)
 
virtual void taken (Thing *p_takenThing, Thing *p_takerThing)
 
virtual bool taking (Thing *p_victimThing, Thing *p_takerThing)
 
PagetestForIntersectOnPageTab (const QPointF &scenePosition, PageTab **r_p_tabForPage=0)
 
bool testForIntersectPageArea (const QPointF &scenePosition)
 
qint32 testForIntersectPageAreaAndPageActive (const QPointF &scenePosition)
 
virtual bool event (QEvent *e)
 
VirtualCameravirtualCamera ()
 
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 void redirectedTTPMovedLimbo (Thing *p_sourceThing, int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition, const RedirectContext &redirContext)
 
virtual void redirectedTTPReleasedLimbo (Thing *p_sourceThing, int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition, const RedirectContext &redirContext)
 
- 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 (const QSize &newSize)
 
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 LauncherObjectprimaryInstance ()
 
static QSize LauncherSizeFromScreenSize (quint32 width, quint32 height)
 
static bool wasIconDroppedOnTab (IconBase *p_icon)
 
static bool wasIconMovedOntoPage (IconBase *p_icon)
 
static void clearIconTxContext (IconBase *p_icon)
 
static void setIconTxContextDroppedOnTab (IconBase *p_icon)
 
static void setIconTxContextMovedOntoPage (IconBase *p_icon)
 
- Static Public Member Functions inherited from ThingPaintable
static bool isItemThingPaintable (QGraphicsItem *p_qgitem)
 
static ThingPaintablethingpaintable_cast (QGraphicsItem *p_qgitem)
 

Protected Types

typedef QMap< QUuid, QUuid > UidTranslationMap
 
typedef UidTranslationMap::iterator UidTranslationMapIter
 
typedef
UidTranslationMap::const_iterator 
UidTranslationMapConstIter
 

Protected Slots

void slotAnimationEnsembleFinished ()
 
void slotStopAnimationEnsemble (bool *r_result=0)
 
void slotStartAnimationEnsemble (bool canInterrupt=true)
 
void slotAddAnimationToEnsemble (QAbstractAnimation *p_anim, DimensionsTypes::AnimationType::Enum animType=DimensionsTypes::AnimationType::None)
 
void slotAddAnimationTo (QAnimationGroup *p_addToGroup, QAbstractAnimation *p_anim, DimensionsTypes::AnimationType::Enum animType=DimensionsTypes::AnimationType::None)
 
void slotHorizontalAnchorStopped ()
 
void slotRedirectedFlick (FlickGesture *flickEvent, QGestureEvent *baseGestureEvent)
 
void slotAppInfoDialogRemoveButtonPressed (const QString &appIdContext, const QString &iconUidAsString)
 
void slotAppInfoDialogCancelButtonPressed ()
 
void slotCancelLaunchFeedback ()
 
void slotDbgPageSaverDebugProcessDone (int exitCode)
 
void dbg_slotTriggerCamera (ThingPaintable *excludeMe)
 
void dbg_slotPrint ()
 

Protected Member Functions

void blockPageInteraction ()
 
void restorePageInteraction ()
 
void appDeleteDecoratorActivated (DimensionsSystemInterface::ExternalApp *p_eapp, const QUuid &iconUid)
 
void showAppInfoDialog (const QString &dialogTitle, const QString &innerText, const QString &appIdContext, const QUuid &iconUid, bool showRemoveButton, const QPointF &dialogPos=QPointF())
 
void hideAppInfoDialog (bool ignoreInvisible=false, bool noAnimation=false)
 
bool appInfoDialogIsVisible () const
 
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, QGestureEvent *baseGestureEvent)
 
virtual bool pinchGesture (QPinchGesture *pinchEvent)
 
virtual bool tapAndHoldGesture (QTapAndHoldGesture *tapHoldEvent)
 
virtual bool tapGesture (QTapGesture *tapEvent)
 
virtual bool customGesture (QGesture *customGesture)
 
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 paint (QPainter *painter, const QStyleOptionGraphicsItem *option=0, QWidget *widget=0)
 
virtual void paintOffscreen (QPainter *painter)
 
void paintBackground (QPainter *painter)
 
bool isAnimationEnsembleRunning () const
 
bool canStopAnimationEnsemble () const
 
bool stopAnimationEnsemble ()
 
QList< QPointer< Page > > pages () const
 
quint32 initPages ()
 
quint32 helperInitPagesInitialConfigurationFavoritesAll ()
 
quint32 helperInitPagesInitialConfigurationFavoritesEmpty ()
 
quint32 helperInitPagesInitialConfigurationMultiPageConfigurator ()
 
quint32 pageIndexForApp (const DimensionsSystemInterface::ExternalApp &eapp)
 pageIndexForApp(): this only checks the stats of the app (if already scanned) and determines the page index, based on the settings More...
 
bool pageIndexForAppByLoadedMappings (const DimensionsSystemInterface::ExternalApp &eapp, quint32 &r_index)
 
bool pageIndexForAppByPredefinedDesignators (const DimensionsSystemInterface::ExternalApp &eapp, quint32 &r_index)
 
quint32 addMissingPredefinedDesignatorPages ()
 
quint32 addRestoredPages (bool ignoreRestoredPageIndex=false)
 
PagefavoritePageWithAll ()
 
PagefavoritePageEmpty ()
 
QList< Page * > dynamicMultiPageConfiguration ()
 
QList< Page * > staticMultiPageConfiguration ()
 
QList< Page * > helperCreatePagesFromConfiguration (QList< QPair< QString, QList< QString > > > &staticLauncherConfig)
 
IconList helperPageIconsFromConfiguration (Page *p_page, const QString &pageDesignator, const QList< QString > &webosAppLaunchPointIdList)
 
qint32 assignLeftoversToPages ()
 
bool setStartupPage ()
 
ReorderablePagefavoritesPage ()
 
ReorderablePagepageByDesignator (const QString &designator)
 
void eraseAllLauncherFiles () const
 
ReorderablePagepageByUid (const QString &uidString)
 
bool isLaunchpointAssignedToSomePage (const QUuid &uid) const
 
void launchPointAssigned (const QUuid &uid)
 
bool createTabsForAllPages ()
 
void activateCenterPage ()
 
void deactivateCenterPage ()
 
void activePageEnteredReorderMode ()
 
void activePageExitedReorderMode ()
 
void initObjects ()
 
void initSignalSlotConnections ()
 
bool gotoPageIndex (quint32 pageIndex, qint32 xSpeed=0, bool canInterrupt=false)
 
bool gotoPageIndexNoAnim (quint32 pageIndex)
 
bool gotoLeftPage (qint32 xSpeed=0)
 
bool gotoRightPage (qint32 xSpeed=0)
 
void _animationFinishedProcessGroup (QAnimationGroup *pAnim)
 
void _animationFinishedProcessAnim (QAbstractAnimation *pAnim)
 
void _pageFinishedAddAnim (Page *p_page)
 
void _pageFinishedHPanAnim ()
 
void _pageAddDirect (Page *p_page, quint32 idx)
 
void acceptIncomingIcon (IconBase *p_icon)
 
void releaseIcon (IconBase *p_icon)
 
IconBasegetIconInLimbo (const QUuid &iconUid)
 
bool iconLimboContains (const QUuid &iconUid)
 
bool iconLimboContains (IconBase *p_icon)
 
bool isPageAnchorInOverscroll ()
 
void setAppLaunchFeedback (IconBase *pIcon)
 
void cancelLaunchFeedback ()
 
bool processNewWebOSApp (DimensionsSystemInterface::WebOSApp *p_app, bool mainIconOnly, IconList &r_iconList)
 
void restoreLauncherLayouts ()
 
void removeIconFromPages (IconBase *p_icon)
 
void removeIconUidFromMaps (const QUuid &iconUid, const QUuid &optAppUid=QUuid())
 
void addIconToPage (IconBase *p_icon, Page *p_page)
 
void dbgHorizPanAnchorContents ()
 
void dbgPageVectorContents ()
 
- 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< DimensionsUIm_qp_mainWindow
 
bool m_fsInitHasRun
 
bool m_drawBackground
 
QPointer< PixmapObjectm_qp_background
 
QSize m_numBackgroundTiles
 
QSize m_edgeTileSizes
 
QSize m_currentPageSize
 
QRectF m_currentPageGeom
 
QPointF m_currentPagePos
 
QRectF m_currentPageLeftBorderArea
 
QRectF m_currentPageRightBorderArea
 
QList< QPointer< Page > > m_pages
 
QSet< QPointer< Page > > m_pageLimbo
 
QMap< QUuid, QPointer< IconBase > > m_iconLimbo
 
GroupAnchorItem m_horizPanAnchor
 
bool m_seenHorizPanFlick
 
qint32 m_touchStartPageIndex
 
QPointer< PageTabBarm_qp_pageTabBar
 
QPointer< QAnimationGroup > m_qp_ensembleAnimation
 
QPointer< PixButton2Statem_qp_doneButton
 
QPointer< ColorRoundRectButtonm_qp_testButton
 
QPointer< OverlayLayerm_qp_overlay
 
QDeclarativeComponent * m_qmlAppInfoDialog
 
QGraphicsObjectm_appInfoDialog
 
IconBasem_iconShowingFeedback
 
QTimer m_feedbackTimer
 
QTimer m_motionControlTimer
 
PageMovementControlm_p_pageMovementController
 
bool m_blockingPageInteractions
 
UidTranslationMap m_appMapByIconUid
 
UidTranslationMap m_appMapByAppUid
 
QSet< QUuid > m_launchPointInitializationTracker
 
VirtualCamera m_dbg_vcam
 only used on initPages, to keep track of what app/launchpt went to what page, to prevent multiple More...
 
bool m_dbg_pageAddTriggered
 
- 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 QPointer< LauncherObjects_qp_primaryInstance = 0
 

Properties

quint32 numPages
 
- Properties inherited from ThingPaintable
QString uistate
 
QPointF animatePosition
 

Friends

class Page
 
class DimensionsSystemInterface::PageSaver
 
class DimensionsSystemInterface::PageRestore
 
class VirtualCamera
 

Additional Inherited Members

- Static Public Attributes inherited from ThingPaintable
static int MagicTypePropertyKey = 1111
 
static int MagicTypePropertyValue = 2222
 

Member Typedef Documentation

typedef QMap<QUuid,QUuid> LauncherObject::UidTranslationMap
protected
typedef UidTranslationMap::const_iterator LauncherObject::UidTranslationMapConstIter
protected
typedef UidTranslationMap::iterator LauncherObject::UidTranslationMapIter
protected

Constructor & Destructor Documentation

LauncherObject::LauncherObject ( const QRectF &  geometry,
DimensionsUI p_mainWindow 
)
LauncherObject::~LauncherObject ( )
virtual

Member Function Documentation

void LauncherObject::_animationFinishedProcessAnim ( QAbstractAnimation *  pAnim)
protected
void LauncherObject::_animationFinishedProcessGroup ( QAnimationGroup *  pAnim)
protected
void LauncherObject::_pageAddDirect ( Page p_page,
quint32  idx 
)
protected
void LauncherObject::_pageFinishedAddAnim ( Page p_page)
protected
void LauncherObject::_pageFinishedHPanAnim ( )
protected
void LauncherObject::acceptIncomingIcon ( IconBase p_icon)
protected
void LauncherObject::activateCenterPage ( )
protected
void LauncherObject::activePageEnteredReorderMode ( )
protected
void LauncherObject::activePageExitedReorderMode ( )
protected
void LauncherObject::addIconToPage ( IconBase p_icon,
Page p_page 
)
protected
quint32 LauncherObject::addMissingPredefinedDesignatorPages ( )
protected
quint32 LauncherObject::addRestoredPages ( bool  ignoreRestoredPageIndex = false)
protected

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

end else normal page restore

void LauncherObject::appDeleteDecoratorActivated ( DimensionsSystemInterface::ExternalApp p_eapp,
const QUuid &  iconUid 
)
protected
bool LauncherObject::appInfoDialogIsVisible ( ) const
protected
QUuid LauncherObject::appUidFromIconUid ( const QUuid &  iconUid) const
QRectF LauncherObject::areaPageLeftSide ( Page pPage = 0) const
QRectF LauncherObject::areaPageRightSide ( Page pPage = 0) const
QRectF LauncherObject::areaQuickLaunchBar ( ) const
QRectF LauncherObject::areaTabBar ( ) const
qint32 LauncherObject::assignLeftoversToPages ( )
protected
void LauncherObject::blockPageInteraction ( )
protected
void LauncherObject::cancelLaunchFeedback ( )
protected
bool LauncherObject::canShowRemoveDeleteDecoratorOnIcon ( const QUuid &  uid)
bool LauncherObject::canStopAnimationEnsemble ( ) const
protected
qint32 LauncherObject::centerPageIndex ( ) const
bool LauncherObject::checkAllowedIconTransferInterPage ( Page p_srcPage,
Page p_destPage,
IconBase p_icon 
)
LauncherAreas::Enum LauncherObject::classifyPageLocation ( const QPointF &  launcherCoordinate) const

?????????

void LauncherObject::clearIconTxContext ( IconBase p_icon)
static
qint32 LauncherObject::closestToCenter ( qint32 &  r_dist) const
qint32 LauncherObject::closestToCenterDistance ( ) const
qint32 LauncherObject::closestToCenterPageIndex ( ) const
bool LauncherObject::createTabsForAllPages ( )
protected
Page * LauncherObject::currentPage ( ) const
virtual bool LauncherObject::customGesture ( QGesture customGesture)
inlineprotectedvirtual
void LauncherObject::dbg_slotPrint ( )
protectedslot
void LauncherObject::dbg_slotTriggerCamera ( ThingPaintable excludeMe)
protectedslot
void LauncherObject::dbgHorizPanAnchorContents ( )
protected
void LauncherObject::dbgPageVectorContents ( )
protected
void LauncherObject::deactivateCenterPage ( )
protected
QList< Page * > LauncherObject::dynamicMultiPageConfiguration ( )
protected
void LauncherObject::eraseAllLauncherFiles ( ) const
protected
bool LauncherObject::event ( QEvent e)
virtual
Page * LauncherObject::favoritePageEmpty ( )
protected
Page * LauncherObject::favoritePageWithAll ( )
protected
ReorderablePage * LauncherObject::favoritesPage ( )
protected
bool LauncherObject::flickGesture ( FlickGesture flickEvent,
QGestureEvent *  baseGestureEvent 
)
protectedvirtual
void LauncherObject::fullSizeInit ( quint32  width,
quint32  height 
)
virtual bool LauncherObject::gestureEvent ( QGestureEvent *  gestureEvent)
inlineprotectedvirtual
IconBase * LauncherObject::getIconInLimbo ( const QUuid &  iconUid)
protected
bool LauncherObject::gotoLeftPage ( qint32  xSpeed = 0)
protected
bool LauncherObject::gotoPageIndex ( quint32  pageIndex,
qint32  xSpeed = 0,
bool  canInterrupt = false 
)
protected
bool LauncherObject::gotoPageIndexNoAnim ( quint32  pageIndex)
protected
bool LauncherObject::gotoRightPage ( qint32  xSpeed = 0)
protected
QList< Page * > LauncherObject::helperCreatePagesFromConfiguration ( QList< QPair< QString, QList< QString > > > &  staticLauncherConfig)
protected
quint32 LauncherObject::helperInitPagesInitialConfigurationFavoritesAll ( )
protected
quint32 LauncherObject::helperInitPagesInitialConfigurationFavoritesEmpty ( )
protected
quint32 LauncherObject::helperInitPagesInitialConfigurationMultiPageConfigurator ( )
protected
IconList LauncherObject::helperPageIconsFromConfiguration ( Page p_page,
const QString &  pageDesignator,
const QList< QString > &  webosAppLaunchPointIdList 
)
protected
void LauncherObject::hideAppInfoDialog ( bool  ignoreInvisible = false,
bool  noAnimation = false 
)
protected
quint32 LauncherObject::horizontalLengthOfPageTrain ( ) const
bool LauncherObject::iconLimboContains ( const QUuid &  iconUid)
protected
bool LauncherObject::iconLimboContains ( IconBase p_icon)
protected
QUuid LauncherObject::iconUidFromAppUid ( const QUuid &  appUid) const
void LauncherObject::initObjects ( )
protected
quint32 LauncherObject::initPages ( )
protected
void LauncherObject::initSignalSlotConnections ( )
protected
bool LauncherObject::isAnimationEnsembleRunning ( ) const
protected
bool LauncherObject::isAppRemovable ( const QUuid &  uid)
bool LauncherObject::isLaunchpointAssignedToSomePage ( const QUuid &  uid) const
protected
bool LauncherObject::isPageAnchorInOverscroll ( )
protected
QSize LauncherObject::LauncherSizeFromScreenSize ( quint32  width,
quint32  height 
)
static
void LauncherObject::launchPointAssigned ( const QUuid &  uid)
protected
quint32 LauncherObject::numPages ( ) const
bool LauncherObject::offer ( Thing p_offer,
Thing p_offeringThing 
)
virtual

Reimplemented from Thing.

ReorderablePage * LauncherObject::pageByDesignator ( const QString &  designator)
protected
ReorderablePage * LauncherObject::pageByUid ( const QString &  uidString)
protected
qint32 LauncherObject::pageHorizontalOffsetToCenter ( quint32  pageIndex) const
quint32 LauncherObject::pageIndexForApp ( const DimensionsSystemInterface::ExternalApp eapp)
protected

pageIndexForApp(): this only checks the stats of the app (if already scanned) and determines the page index, based on the settings

bool LauncherObject::pageIndexForAppByLoadedMappings ( const DimensionsSystemInterface::ExternalApp eapp,
quint32 &  r_index 
)
protected
bool LauncherObject::pageIndexForAppByPredefinedDesignators ( const DimensionsSystemInterface::ExternalApp eapp,
quint32 &  r_index 
)
protected
Page * LauncherObject::pageLeft ( Page p_fromPage) const
Page * LauncherObject::pageRight ( Page p_fromPage) const
QList< QPointer< Page > > LauncherObject::pages ( ) const
protected
void LauncherObject::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option = 0,
QWidget *  widget = 0 
)
protectedvirtual

Implements ThingPaintable.

void LauncherObject::paintBackground ( QPainter *  painter)
protected
void LauncherObject::paintOffscreen ( QPainter *  painter)
protectedvirtual

Implements ThingPaintable.

virtual bool LauncherObject::panGesture ( QPanGesture *  panEvent)
inlineprotectedvirtual
virtual bool LauncherObject::pinchGesture ( QPinchGesture *  pinchEvent)
inlineprotectedvirtual
LauncherObject * LauncherObject::primaryInstance ( )
static
bool LauncherObject::processNewWebOSApp ( DimensionsSystemInterface::WebOSApp p_app,
bool  mainIconOnly,
IconList r_iconList 
)
protected
void LauncherObject::redirectedTouchTrackedPointMoved ( Thing p_sourceThing,
int  id,
const QPointF &  scenePosition,
const QPointF &  lastScenePosition,
const QPointF &  initialPosition,
const RedirectContext redirContext 
)
virtual

TODO: SLOW: this can be improved... The page that redirected here would have already tested for the tab bar position that was hit

Reimplemented from Thing.

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

????? not in limbo...which should be an impossible case for transfers to another page

Reimplemented from Thing.

void LauncherObject::redirectedTTPMovedLimbo ( Thing p_sourceThing,
int  id,
const QPointF &  scenePosition,
const QPointF &  lastScenePosition,
const QPointF &  initialPosition,
const RedirectContext redirContext 
)
virtual

if the motion is back in the page area, then give it to the page

void LauncherObject::redirectedTTPReleasedLimbo ( Thing p_sourceThing,
int  id,
const QPointF &  scenePosition,
const QPointF &  lastScenePosition,
const QPointF &  initialPosition,
const RedirectContext redirContext 
)
virtual

TODO: icon is now going to be lost!!! handle this better

TODO: icon is now going to be lost!!! handle this better

void LauncherObject::releaseIcon ( IconBase p_icon)
protected
void LauncherObject::removeIconFromPages ( IconBase p_icon)
protected
void LauncherObject::removeIconUidFromMaps ( const QUuid &  iconUid,
const QUuid &  optAppUid = QUuid() 
)
protected
void LauncherObject::resize ( int  w,
int  h 
)
virtual
void LauncherObject::restoreLauncherLayouts ( )
inlineprotected
void LauncherObject::restorePageInteraction ( )
protected
void LauncherObject::saveCurrentLauncherLayouts ( )
bool LauncherObject::sceneEvent ( QEvent event)
protectedvirtual
void LauncherObject::sendIconToQuickLaunchBar ( IconBase p_icon)

...I'll do this via the iconheap which has this info associated with the icon

void LauncherObject::setAppLaunchFeedback ( IconBase pIcon)
protected
void LauncherObject::setIconTxContextDroppedOnTab ( IconBase p_icon)
static
void LauncherObject::setIconTxContextMovedOntoPage ( IconBase p_icon)
static
bool LauncherObject::setStartupPage ( )
protected
void LauncherObject::showAppInfoDialog ( const QString &  dialogTitle,
const QString &  innerText,
const QString &  appIdContext,
const QUuid &  iconUid,
bool  showRemoveButton,
const QPointF &  dialogPos = QPointF() 
)
protected
void LauncherObject::signalBlockPageInteraction ( )
signal
void LauncherObject::signalDropIconOnQuicklaunch ( const QString &  )
signal
void LauncherObject::signalGeometryChange ( )
signal
void LauncherObject::signalHideMe ( DimensionsTypes::HideCause::Enum  cause = DimensionsTypes::HideCause::None)
signal
void LauncherObject::signalNotReady ( )
signal
void LauncherObject::signalNumPagesChanged ( )
signal
void LauncherObject::signalPageCentered ( QUuid  pageUid)
signal

TODO: UNUSED: ?

void LauncherObject::signalPageMovementEnd ( )
signal
void LauncherObject::signalPagePanLeft ( )
signal
void LauncherObject::signalPagePanRight ( )
signal
void LauncherObject::signalPagesEndReorderMode ( )
signal
void LauncherObject::signalPagesStartReorderMode ( )
signal
void LauncherObject::signalReady ( )
signal
void LauncherObject::signalRestorePageInteraction ( )
signal
void LauncherObject::signalShowMe ( DimensionsTypes::ShowCause::Enum  cause = DimensionsTypes::ShowCause::None)
signal
void LauncherObject::signalUiStateChanged ( )
signal
void LauncherObject::slotAddAnimationTo ( QAnimationGroup *  p_addToGroup,
QAbstractAnimation *  p_anim,
DimensionsTypes::AnimationType::Enum  animType = DimensionsTypes::AnimationType::None 
)
protectedslot
void LauncherObject::slotAddAnimationToEnsemble ( QAbstractAnimation *  p_anim,
DimensionsTypes::AnimationType::Enum  animType = DimensionsTypes::AnimationType::None 
)
protectedslot
void LauncherObject::slotAnimationEnsembleFinished ( )
protectedslot
void LauncherObject::slotAppAuxiliaryIconAdd ( const QUuid &  appUid,
const QUuid &  newLaunchPointIconUid,
DimensionsSystemInterface::AppMonitorSignalType::Enum  source 
)
slot
void LauncherObject::slotAppAuxiliaryIconRemove ( const QUuid &  appUid,
const QString &  launchpointId,
DimensionsSystemInterface::AppMonitorSignalType::Enum  origin = DimensionsSystemInterface::AppMonitorSignalType::INVALID 
)
slot

TODO: ICON-MANAGE: MEMLEAK:

void LauncherObject::slotAppInfoDialogCancelButtonPressed ( )
protectedslot
void LauncherObject::slotAppInfoDialogRemoveButtonPressed ( const QString &  appIdContext,
const QString &  iconUidAsString 
)
protectedslot
void LauncherObject::slotAppPostRemove ( const QUuid &  removedAppUid,
DimensionsSystemInterface::AppMonitorSignalType::Enum  origin = DimensionsSystemInterface::AppMonitorSignalType::INVALID 
)
slot
void LauncherObject::slotAppScanCompleted ( bool  initialScan = false)
slot
void LauncherObject::slotCancelLaunchFeedback ( )
protectedslot
void LauncherObject::slotDbgPageSaverDebugProcessDone ( int  exitCode)
protectedslot
void LauncherObject::slotGotoLeftPage ( )
slot
void LauncherObject::slotGotoPageIndex ( quint32  pageIndex)
slot
void LauncherObject::slotGotoPageIndexNoAnim ( quint32  pageIndex)
slot
void LauncherObject::slotGotoRightPage ( )
slot
void LauncherObject::slotHorizontalAnchorStopped ( )
protectedslot
void LauncherObject::slotIconActionRequest ( int  cmdRequest,
IconBase p_iconSource = 0 
)
virtualslot
void LauncherObject::slotIconActivatedTap ( IconBase pIcon)
slot
void LauncherObject::slotLauncherFullyClosed ( )
slot
void LauncherObject::slotLauncherFullyOpen ( )
slot
void LauncherObject::slotPageModeChanged ( PageMode::Enum  oldV,
PageMode::Enum  newV 
)
slot
void LauncherObject::slotQuicklaunchFullyClosed ( )
slot
void LauncherObject::slotQuicklaunchFullyOpen ( )
slot
void LauncherObject::slotRedirectedFlick ( FlickGesture flickEvent,
QGestureEvent *  baseGestureEvent 
)
protectedslot
void LauncherObject::slotReorderDoneButtonTap ( )
slot
void LauncherObject::slotReorderExitPageRequest ( )
slot
void LauncherObject::slotRestorePagesFromSaved ( )
slot
void LauncherObject::slotSavePages ( )
slot
void LauncherObject::slotStartAnimationEnsemble ( bool  canInterrupt = true)
protectedslot
void LauncherObject::slotStopAnimationEnsemble ( bool *  r_result = 0)
protectedslot
void LauncherObject::slotSystemHidingLauncher ( )
slot
void LauncherObject::slotSystemHidingLauncherOverlay ( )
slot
void LauncherObject::slotSystemShowingLauncher ( )
slot
void LauncherObject::slotSystemShowingLauncherOverlay ( )
slot
void LauncherObject::slotTabActivatedTap ( Page tabRelatedPage)
slot
void LauncherObject::slotTabActivatedTapAndHold ( Page tabRelatedPage)
slot
QList< Page * > LauncherObject::staticMultiPageConfiguration ( )
protected
bool LauncherObject::stopAnimationEnsemble ( )
protected
virtual bool LauncherObject::swipeGesture ( QSwipeGesture *  swipeEvent)
inlineprotectedvirtual
PageTab * LauncherObject::tabForPage ( Page p_page) const
bool LauncherObject::take ( Thing p_takerThing)
virtual

Reimplemented from Thing.

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

Reimplemented from Thing.

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

Reimplemented from Thing.

virtual bool LauncherObject::tapAndHoldGesture ( QTapAndHoldGesture *  tapHoldEvent)
inlineprotectedvirtual
virtual bool LauncherObject::tapGesture ( QTapGesture *  tapEvent)
inlineprotectedvirtual
Page * LauncherObject::testForIntersectOnPageTab ( const QPointF &  scenePosition,
PageTab **  r_p_tabForPage = 0 
)
bool LauncherObject::testForIntersectPageArea ( const QPointF &  scenePosition)
qint32 LauncherObject::testForIntersectPageAreaAndPageActive ( const QPointF &  scenePosition)
virtual bool LauncherObject::touchEndEvent ( QTouchEvent *  event)
inlineprotectedvirtual
virtual bool LauncherObject::touchEvent ( QTouchEvent *  event)
inlineprotectedvirtual
virtual bool LauncherObject::touchStartEvent ( QTouchEvent *  event)
inlineprotectedvirtual
void LauncherObject::touchTrackedPointMoved ( int  id,
const QPointF &  scenePosition,
const QPointF &  lastScenePosition,
const QPointF &  initialPosition 
)
protectedvirtual

Reimplemented from Thing.

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

Reimplemented from Thing.

virtual bool LauncherObject::touchUpdateEvent ( QTouchEvent *  event)
inlineprotectedvirtual
VirtualCamera* LauncherObject::virtualCamera ( )
inline
bool LauncherObject::wasIconDroppedOnTab ( IconBase p_icon)
static
bool LauncherObject::wasIconMovedOntoPage ( IconBase p_icon)
static

Friends And Related Function Documentation

friend class Page
friend
friend class VirtualCamera
friend

Member Data Documentation

QGraphicsObject* LauncherObject::m_appInfoDialog
protected
UidTranslationMap LauncherObject::m_appMapByAppUid
protected
UidTranslationMap LauncherObject::m_appMapByIconUid
protected
bool LauncherObject::m_blockingPageInteractions
protected
QRectF LauncherObject::m_currentPageGeom
protected
QRectF LauncherObject::m_currentPageLeftBorderArea
protected
QPointF LauncherObject::m_currentPagePos
protected
QRectF LauncherObject::m_currentPageRightBorderArea
protected
QSize LauncherObject::m_currentPageSize
protected
bool LauncherObject::m_dbg_pageAddTriggered
protected
VirtualCamera LauncherObject::m_dbg_vcam
protected

only used on initPages, to keep track of what app/launchpt went to what page, to prevent multiple

bool LauncherObject::m_drawBackground
protected
QSize LauncherObject::m_edgeTileSizes
protected
QTimer LauncherObject::m_feedbackTimer
protected
bool LauncherObject::m_fsInitHasRun
protected
GroupAnchorItem LauncherObject::m_horizPanAnchor
protected
QMap<QUuid,QPointer<IconBase> > LauncherObject::m_iconLimbo
protected
IconBase* LauncherObject::m_iconShowingFeedback
protected
QSet<QUuid> LauncherObject::m_launchPointInitializationTracker
protected
QTimer LauncherObject::m_motionControlTimer
protected
QSize LauncherObject::m_numBackgroundTiles
protected
PageMovementControl* LauncherObject::m_p_pageMovementController
protected
QSet<QPointer<Page> > LauncherObject::m_pageLimbo
protected
QList<QPointer<Page> > LauncherObject::m_pages
protected
QDeclarativeComponent* LauncherObject::m_qmlAppInfoDialog
protected
QPointer<PixmapObject> LauncherObject::m_qp_background
protected
QPointer<PixButton2State> LauncherObject::m_qp_doneButton
protected
QPointer<QAnimationGroup> LauncherObject::m_qp_ensembleAnimation
protected
QPointer<DimensionsUI> LauncherObject::m_qp_mainWindow
protected
QPointer<OverlayLayer> LauncherObject::m_qp_overlay
protected
QPointer<PageTabBar> LauncherObject::m_qp_pageTabBar
protected
QPointer<ColorRoundRectButton> LauncherObject::m_qp_testButton
protected
bool LauncherObject::m_seenHorizPanFlick
protected
qint32 LauncherObject::m_touchStartPageIndex
protected
QPointer< LauncherObject > LauncherObject::s_qp_primaryInstance = 0
staticprotected

Property Documentation

quint32 LauncherObject::numPages
read

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