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

#include <alphabetpage.h>

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

Public Slots

virtual void dbg_slotPrintLayout ()
 
- Public Slots inherited from Page
virtual void dbg_slotPrintLayout ()
 

Public Member Functions

Q_INVOKABLE AlphabetPage (const QRectF &pageGeometry, LauncherObject *p_belongsTo)
 
virtual ~AlphabetPage ()
 
virtual bool layoutFromItemList (const ThingList &items)
 
virtual bool layoutFromItemList (const IconList &items)
 
virtual bool canAcceptIcons () const
 
virtual PageMode::Enum pageMode () const
 
virtual void setPageMode (PageMode::Enum v)
 
virtual bool releaseTransferredIcon (IconBase *p_transferredIcon)
 
virtual bool resize (quint32 w, quint32 h)
 
virtual bool addIcon (IconBase *p_icon)
 
virtual bool addIconNoAnimations (IconBase *p_icon)
 
virtual bool removeIcon (const QUuid &iconUid)
 
virtual bool removeIconNoAnimations (const QUuid &iconUid)
 
- Public Member Functions inherited from Page
Q_INVOKABLE Page (const QRectF &pageGeometry, LauncherObject *p_belongsTo)
 
More...
 
virtual ~Page ()
 
qint32 pageIndex () const
 
void setPageIndex (const qint32 v)
 
QString pageName () const
 
void setPageName (const QString &v)
 
QString pageDesignator () const
 
void setPageDesignator (const QString &v)
 
bool pageActive () const
 
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 setIconLayout (IconLayout *p_iconLayout)
 
virtual IconLayoutcurrentIconLayout () const
 
virtual IconBaseiconAtLayoutCoordinate (const QPointF &layoutCoord, QPointF *r_p_intraIconCoord)
 
virtual QPointF pageCoordinateFromLayoutCoordinate (const QPointF &layoutCoord)
 
virtual QPointF layoutCoordinateFromPageCoordinate (const QPointF &pageCoordinate)
 
virtual QRectF areaScroller () const
 
virtual QRectF areaTopEdgeShadow () const
 
virtual QRectF areaBottomEdgeShadow () const
 
virtual QRectF areaLeftBorder () const
 
virtual QRectF areaRightBorder () const
 
virtual QRectF areaTopBorder () const
 
virtual QRectF areaBottomBorder () const
 
virtual QRectF areaCenter () const
 
virtual PageAreas::Enum classifyPageLocation (const QPointF &pageCoordinate) const
 
virtual bool changeRedirectTo (int id, Thing *p_currentlyRedirectedToThing, Thing *p_newRedirectedToThing, RedirectContext *p_redirContext=0)
 TODO: unsafe...make it more so. More...
 
virtual bool cancelRedirection (int id, bool deferred=false)
 
- 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 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 uint hashValue () const
 
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 Slots

virtual void slotTrackedIconCancelTrack (const QUuid &uid)
 
virtual void slotReorderInLayoutStarted ()
 
virtual void slotReorderInLayoutEnded ()
 
virtual void slotLauncherCmdStartReorderMode ()
 
virtual void slotLauncherCmdEndReorderMode ()
 
- Protected Slots inherited from Page
virtual void slotAnimationEnsembleFinished ()
 
virtual void slotStopAnimationEnsemble (bool *r_result=0)
 
virtual void slotStartAnimationEnsemble (bool canInterrupt=true)
 
virtual void slotAddAnimationToEnsemble (QAbstractAnimation *p_anim, DimensionsTypes::AnimationType::Enum animType=DimensionsTypes::AnimationType::None)
 
virtual void slotAddAnimationTo (QAnimationGroup *p_addToGroup, QAbstractAnimation *p_anim, DimensionsTypes::AnimationType::Enum animType=DimensionsTypes::AnimationType::None)
 
virtual void slotScrollingPhysicsUpdate (qreal t, qreal d, qreal v, qreal a)
 
virtual void slotPageOverscrolled ()
 
virtual void slotUndoOverscroll ()
 
virtual void slotBroadcastPageActivated (QUuid pageUid)
 
virtual void slotBroadcastAllPagesDeactivated ()
 
virtual void slotKineticScrollerSpew (qreal oldScroll)
 
virtual void slotOkToScroll ()
 
virtual void slotLauncherCmdEndReorderMode ()
 
virtual void slotLauncherBlockedInteractions ()
 
virtual void slotLauncherAllowedInteractions ()
 
virtual void slotClearTouchRegisters ()
 
virtual void slotLauncherActivating ()
 
virtual void slotLauncherDeactivating ()
 
void dbg_slotStatePropertiesAssigned ()
 

Protected Member Functions

virtual bool tapGesture (QTapGesture *tapEvent, QGestureEvent *baseGestureEvent)
 
virtual bool tapAndHoldGesture (QTapAndHoldGesture *tapHoldEvent, QGestureEvent *baseGestureEvent)
 
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 iconRelease ()
 
virtual void paintOffscreen (QPainter *painter)
 ARE YOU LOOKING FOR PAINT() ??? See scrollinglayoutrenderer.h/cpp. More...
 
virtual bool detectAndHandleSpecialMoveAreas (int id, const QPointF &pageCoordinate)
 
virtual bool handleTopBorderSpecialMoveArea (int id, const QPointF &pageCoordinate)
 
virtual bool handleBottomBorderSpecialMoveArea (int id, const QPointF &pageCoordinate)
 
virtual bool handleLeftBorderSpecialMoveArea (int id, const QPointF &pageCoordinate)
 
virtual bool handleRightBorderSpecialMoveArea (int id, const QPointF &pageCoordinate)
 
virtual bool detectAndHandleSpecialReleaseAreas (int id, const QPointF &pageCoordinate)
 
virtual bool handleQuickLaunchSpecialReleaseArea (int id, const QPointF &pageCoordinate)
 
virtual void activatePage ()
 
virtual void deactivatePage ()
 
virtual void switchToNormalMode ()
 
virtual void switchToReorderMode ()
 
- Protected Member Functions inherited from Page
Q_INVOKABLE Page (const QUuid &specificUid, const QRectF &pageGeometry, LauncherObject *p_belongsTo)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option=0, QWidget *widget=0)
 
virtual void paintShadows (QPainter *painter)
 
virtual bool sceneEvent (QEvent *event)
 
virtual bool gestureEvent (QGestureEvent *gestureEvent)
 
virtual bool panGesture (QPanGesture *panEvent)
 
virtual bool swipeGesture (QSwipeGesture *swipeEvent, QGestureEvent *baseGestureEvent)
 
virtual bool flickGesture (FlickGesture *flickEvent, QGestureEvent *baseGestureEvent)
 
virtual bool pinchGesture (QPinchGesture *pinchEvent)
 
virtual bool customGesture (QGesture *customGesture)
 
virtual bool okToUseFlick (int id)
 
virtual bool okToUseTap (int id)
 
virtual bool okToUseTapAndHold (int id)
 
virtual QPointF translatePagePointToScrollSurfacePoint (const QPointF &point, bool clipToGeom=false)
 
virtual bool testAndTranslatePagePointToScrollSurfacePoint (const QPointF &point, QPointF &r_translatedPoint)
 
virtual bool isAnimationEnsembleRunning () const
 
virtual bool stopAnimationEnsemble ()
 
virtual void animationFinishedProcessGroup (QAnimationGroup *pAnim)
 
virtual void animationFinishedProcessAnim (QAbstractAnimation *pAnim)
 
virtual IconBaseremoveIconFromPageAddWaitlist (const QUuid &iconUid)
 
virtual bool isIconInPageAddWaitlist (const QUuid &iconUid)
 
virtual void addIconToPageAddWaitlist (IconBase *p_icon)
 
virtual qint32 addWaitlistHandler ()
 
virtual void removeIconFromPageRemoveWaitlist (const QUuid &iconUid)
 
virtual bool isIconInPageRemoveWaitlist (const QUuid &iconUid)
 
virtual void addIconToPageRemoveWaitlist (IconBase *p_icon)
 
virtual void addIconToPageRemoveWaitlist (const QUuid &iconUid)
 
virtual qint32 removeWaitlistHandler ()
 
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 isDeferCancelled (int id, bool doCancel=false)
 
virtual bool redirectTo (int id, Thing *p_redirectTargetThing, RedirectContext *p_redirContext=0)
 
virtual void setupTouchFSM ()
 
virtual void startTouchFSM ()
 
virtual void stopTouchFSM ()
 
virtual void clearAllTouchRegisters ()
 
virtual bool touchStartEvent (QTouchEvent *event)
 
virtual bool touchUpdateEvent (QTouchEvent *event)
 
virtual bool touchEndEvent (QTouchEvent *event)
 
virtual void handleTrackedTouchPointRelease (QTouchEvent::TouchPoint *touchPoint)
 
virtual void touchTrackedPointStarted (int id, const QPointF &scenePosition, const QPointF &lastScenePosition, const QPointF &initialPosition)
 
virtual void autoScrollDown ()
 
virtual void autoScrollUp ()
 
virtual void setupScrollDelayFSM ()
 
virtual void startScrollDelayFSM ()
 
virtual void stopScrollDelayFSM ()
 
virtual void scrollActionTrigger ()
 
virtual bool okToPerformAutoScroll () const
 
- 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

PageMode::Enum m_pageMode
 
QPair< QUuid, QUuid > m_trackingIconUids
 
QPointer< IconBasem_qp_cached_trackingIcon
 
- Protected Attributes inherited from Page
QString m_pageName
 
qint32 m_pageUiIndex
 
QString m_pageDesignator
 
bool m_pageActive
 
QPointer< LauncherObjectm_qp_currentUIOwner
 
QPointer< PixmapObjectm_qp_backgroundPmo
 
QPixmap m_topBorderShadowPixmap
 
QRectF m_topBorderShadowArea
 
QPixmap m_bottomBorderShadowPixmap
 
QRectF m_bottomBorderShadowArea
 
QBrush m_topBorderShadowBrush
 
QBrush m_bottomBorderShadowBrush
 
KineticScroller m_failmaticScroller
 
ScrollableObjectm_p_scroll
 
QPointer< QAnimationGroup > m_qp_ensembleAnimation
 
PageScrollDirectionLock::Enum m_scrollDirectionLock
 
int m_scrollLockTouchId
 
QPointer< IconLayoutm_qp_iconLayout
 
QPoint m_iconLayoutOffsetCoord
 
QMap< QUuid, QPointer< IconBase > > m_pendingExternalIconAddWaitlist
 
QSet< QUuid > m_pendingExternalIconRemoveWaitlist
 
QStateMachinem_p_touchFSM
 
QStatem_p_fsmStateNoTouch
 
QStatem_p_fsmStateTouchMotionTracking
 
QStatem_p_fsmStateTouchStationaryTracking
 
QMap< int, TouchRegisterm_touchRegisters
 
QStateMachinem_p_scrollDelayFSM
 
QStatem_p_fsmStateScrollOk
 
QStatem_p_fsmStateScrollDelay
 
QTimer m_scrollFSMTimer
 
bool m_interactionsBlocked
 
- Protected Attributes inherited from ThingPaintable
QRectF m_geom
 
QRectF m_boundingRect
 
QString m_uiState
 
- Protected Attributes inherited from Thing
QPointer< Thingm_qp_takerOwner
 

Friends

class AlphabetIconLayout
 

Additional Inherited Members

- Signals inherited from Page
void signalPageIndexChanged (qint32, qint32)
 
void signalPageIndexChanged ()
 
void signalPageNameChanged (const QString &, const QString &)
 
void signalPageNameChanged ()
 
void signalPageDesignatorChanged ()
 
void signalPageModeChanged ()
 
void signalPageModeChanged (PageMode::Enum oldV, PageMode::Enum newV)
 
void signalIconActivatedTap (IconBase *pIcon)
 
void signalPageActive ()
 
void signalPageDeactivated ()
 
void signalRedirectFlick (FlickGesture *flickEvent, QGestureEvent *baseGestureEvent)
 
void signalPageNeedsSave ()
 
void signalPageRequestExitReorder ()
 
void signalTouchFSMTouchBegin_Trigger (int 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 signalScrollDelayFSM_UserScrolled ()
 
void dbg_signalTriggerCamera (ThingPaintable *pTp)
 
- Static Public Member Functions inherited from Page
static QString PageDesignatorAll ()
 
static QString PageDesignatorFavorites ()
 
static QSize PageSizeFromLauncherSize (quint32 width, quint32 height)
 
- Static Public Attributes inherited from Page
static const char * PageNamePropertyName = "pagename"
 
static const char * PageIndexPropertyName = "pageuiindex"
 
static const char * PageDesignatorPropertyName = "pagedesignator"
 
static QString PageDesignator_AllAlphabetic = QString("all")
 
static QString PageDesignator_Favorites = QString("favorites")
 
- Static Protected Attributes inherited from Page
static const char * TouchFSMPropertyName_isTracking = "isTracking"
 
static const char * TouchFSMProperyName_trackedId = "trackedId"
 
static const char * ScrollDelayFSMPropertyName_isScrollOk = "isScrollOk"
 
- Properties inherited from Page
qint32 pageuiindex
 
QString pagename
 
QString pagedesignator
 
bool pageactive
 

Constructor & Destructor Documentation

AlphabetPage::AlphabetPage ( const QRectF &  pageGeometry,
LauncherObject p_belongsTo 
)
AlphabetPage::~AlphabetPage ( )
virtual

Member Function Documentation

void AlphabetPage::activatePage ( )
protectedvirtual

Reimplemented from Page.

bool AlphabetPage::addIcon ( IconBase p_icon)
virtual

Reimplemented from Page.

bool AlphabetPage::addIconNoAnimations ( IconBase p_icon)
virtual

Reimplemented from Page.

bool AlphabetPage::canAcceptIcons ( ) const
virtual

Reimplemented from Page.

void AlphabetPage::dbg_slotPrintLayout ( )
virtualslot
void AlphabetPage::deactivatePage ( )
protectedvirtual

Reimplemented from Page.

bool AlphabetPage::detectAndHandleSpecialMoveAreas ( int  id,
const QPointF &  pageCoordinate 
)
protectedvirtual
bool AlphabetPage::detectAndHandleSpecialReleaseAreas ( int  id,
const QPointF &  pageCoordinate 
)
protectedvirtual
bool AlphabetPage::handleBottomBorderSpecialMoveArea ( int  id,
const QPointF &  pageCoordinate 
)
protectedvirtual
bool AlphabetPage::handleLeftBorderSpecialMoveArea ( int  id,
const QPointF &  pageCoordinate 
)
protectedvirtual
bool AlphabetPage::handleQuickLaunchSpecialReleaseArea ( int  id,
const QPointF &  pageCoordinate 
)
protectedvirtual
bool AlphabetPage::handleRightBorderSpecialMoveArea ( int  id,
const QPointF &  pageCoordinate 
)
protectedvirtual
bool AlphabetPage::handleTopBorderSpecialMoveArea ( int  id,
const QPointF &  pageCoordinate 
)
protectedvirtual
void AlphabetPage::iconRelease ( )
protectedvirtual
bool AlphabetPage::layoutFromItemList ( const ThingList items)
virtual

Reimplemented from Page.

bool AlphabetPage::layoutFromItemList ( const IconList items)
virtual

Reimplemented from Page.

PageMode::Enum AlphabetPage::pageMode ( ) const
virtual

Reimplemented from Page.

void AlphabetPage::paintOffscreen ( QPainter *  painter)
protectedvirtual

ARE YOU LOOKING FOR PAINT() ??? See scrollinglayoutrenderer.h/cpp.

Reimplemented from Page.

bool AlphabetPage::releaseTransferredIcon ( IconBase p_transferredIcon)
virtual

Reimplemented from Page.

bool AlphabetPage::removeIcon ( const QUuid &  iconUid)
virtual

Reimplemented from Page.

bool AlphabetPage::removeIconNoAnimations ( const QUuid &  iconUid)
virtual

Reimplemented from Page.

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

Reimplemented from Page.

void AlphabetPage::setPageMode ( PageMode::Enum  v)
virtual

Reimplemented from Page.

void AlphabetPage::slotLauncherCmdEndReorderMode ( )
protectedvirtualslot
void AlphabetPage::slotLauncherCmdStartReorderMode ( )
protectedvirtualslot
void AlphabetPage::slotReorderInLayoutEnded ( )
protectedvirtualslot
void AlphabetPage::slotReorderInLayoutStarted ( )
protectedvirtualslot
void AlphabetPage::slotTrackedIconCancelTrack ( const QUuid &  uid)
protectedvirtualslot
void AlphabetPage::switchToNormalMode ( )
protectedvirtual
void AlphabetPage::switchToReorderMode ( )
protectedvirtual
bool AlphabetPage::tapAndHoldGesture ( QTapAndHoldGesture *  tapHoldEvent,
QGestureEvent *  baseGestureEvent 
)
protectedvirtual

<<<— This should abort the whole process

theoretically this could be rejected! //TODO: handling

Reimplemented from Page.

bool AlphabetPage::tapGesture ( QTapGesture *  tapEvent,
QGestureEvent *  baseGestureEvent 
)
protectedvirtual

Reimplemented from Page.

void AlphabetPage::touchTrackedPointMoved ( int  id,
const QPointF &  scenePosition,
const QPointF &  lastScenePosition,
const QPointF &  initialPosition 
)
protectedvirtual

virtual

Reimplemented from Page.

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

Reimplemented from Page.

Friends And Related Function Documentation

friend class AlphabetIconLayout
friend

Member Data Documentation

PageMode::Enum AlphabetPage::m_pageMode
protected
QPointer<IconBase> AlphabetPage::m_qp_cached_trackingIcon
protected
QPair<QUuid,QUuid> AlphabetPage::m_trackingIconUids
protected

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