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

#include <alphabeticonlayout.h>

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

Signals

void signalReorderStarted ()
 
void signalReorderEnded ()
 
void signalFSMTrackStarted_Trigger ()
 
void signalFSMTrackEnded_Trigger ()
 
void signalFSMLastTrackEndedTrigger ()
 
void signalFSMReorderStarted_Trigger ()
 
void signalFSMReorderEnded_Trigger ()
 

Public Member Functions

 AlphabetIconLayout (AlphabetPage *p_owner)
 
virtual ~AlphabetIconLayout ()
 
QRectF constGeometry () const
 
virtual void setLayoutUniformRowSpacing (const qreal rowSpace, const quint32 anchorRowNum=0)
 
virtual void setLayoutRowSpacing (const qreal intraAlphaRowSpace, const qreal interAlphaRowSpace, const quint32 anchorRowNum=0)
 
virtual void resetLayoutRowSpacingToDefaultSettings ()
 
virtual QList< IconOperationaddIconAt (quint32 row, quint32 column)
 
virtual QList< IconOperationremoveIconFrom (quint32 row, quint32 column)
 
virtual QList< quint32 > rowListForAlpha (const QString &alphaDesignator)
 
virtual void paint (QPainter *painter)
 
virtual void paint (const QPointF &translate, QPainter *painter)
 
virtual void paint (QPainter *painter, const QRectF &sourceRect)
 
virtual void paint (QPainter *painter, const QRectF &sourceRect, qint32 renderOpt)
 
virtual void paintOffscreen (QPainter *painter)
 
virtual void paintOffscreen (PixmapObject *p_pmo)
 
virtual void paintOffscreen (PixmapHugeObject *p_hugePmo)
 
virtual void enableAutoPaint ()
 
virtual void disableAutoPaint ()
 
virtual void relayout (bool force=false)
 
virtual void resizeWidth (const quint32 w)
 
virtual void setPosition (const QPointF &pos)
 
virtual void setUniformCellSize (const QSize &size)
 
virtual IconCelliconCellAtLayoutCoordinate (const QPointF &coordinate)
 
virtual IconCelliconCellAtLayoutCoordinate (const QPointF &layoutCoordinate, QPoint &r_gridCoordinate)
 
virtual IconCellfindIconByUid (const QUuid &iconUid, QPoint &r_gridCoordinate)
 
virtual qreal verticalDistanceToNearestUpperRow (const QPointF &layoutCoordinate)
 
virtual qreal verticalDistanceToNearestLowerRow (const QPointF &layoutCoordinate)
 
virtual quint32 maximumRowHeight () const
 
virtual quint32 minimumRowHeight () const
 
virtual bool startTrackingIcon (const QPointF &layoutCoordinate, QPair< QUuid, QUuid > &r_iconUids)
 
virtual bool trackedIconLeavingLayout (const QUuid &trackedIconUid)
 
virtual void stopTrackingIcon (const QUuid &trackedIconUid)
 
virtual IconBasegetTrackedIcon (const QUuid &trackedIconUid)
 
virtual void stopTrackingAll ()
 
virtual bool commitTracked (const QUuid &iconUid)
 
virtual QAbstractAnimation * animationForTrackedIconFinal (const QUuid &trackedIconUid)
 
virtual void cancelAllReorder ()
 
virtual void commitTrackedImmediately (const QUuid &iconUid)
 
virtual bool removeIconCell (const QPoint &gridCoordinate)
 
- Public Member Functions inherited from IconLayout
 IconLayout (Page *p_owner)
 
virtual ~IconLayout ()
 
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 QRectF geometry ()
 
virtual QRectF relativeGeometry ()
 
virtual QPointF position ()
 
virtual void iconCellReleaseIcon (const QPoint &cellCoordinate)
 
virtual QRectF rowArea (quint32 rowIndex) const
 
virtual qint32 rowAtLayoutCoordinate (const QPointF &layoutCoordinate, bool clipMinMax=false)
 
virtual QPointF sceneCoordinateFromLayoutCoordinate (const QPointF &layoutCoordinate)
 
virtual QPointF pageCoordinateFromLayoutCoordinate (const QPointF &layoutCoordinate)
 
virtual QPointF rawPageCoordinateFromLayoutCoordinate (const QPointF &layoutCoordinate) const
 
virtual QPointF rawLayoutCoordinateFromPageCoordinate (const QPointF &pageCoordinate) const
 
virtual QRectF rawPageRectFromLayoutRect (const QRectF &layoutRect) const
 
virtual QRectF rawLayoutRectFromPageRect (const QRectF &pageRect) const
 
virtual void recomputePageLayoutTransforms ()
 
- Public Member Functions inherited from LayoutItem
 LayoutItem ()
 
virtual ~LayoutItem ()
 

Static Public Member Functions

static void initDefaultEmptyLayoutFullEnglishAlpha (AlphabetIconLayout &layout)
 
static void initLayoutFromSequentialIconListFullEnglishAlpha (AlphabetIconLayout &layout, const IconList iconList)
 

Protected Types

typedef QList< IconRowAlpha * > IconRowAlphaList
 
typedef
IconRowAlphaList::const_iterator 
IconRowConstIter
 
typedef IconRowAlphaList::iterator IconRowIter
 
typedef QMap< QString,
HorizontalDivider * > 
RowDividerMap
 
typedef
RowDividerMap::const_iterator 
RowDividerMapConstIter
 
typedef RowDividerMap::iterator RowDividerMapIter
 

Protected Slots

virtual void slotTrackedIconAnimationFinished ()
 protected Q_SLOTS: More...
 
virtual void slotTrackForIconEnded ()
 
virtual void dbg_reorderFSMStateEntered ()
 

Protected Member Functions

virtual void destroyTrackedIcon (const QUuid &iconUid)
 
virtual void destroyAllRows ()
 used by relayoutExisting() More...
 
virtual QList< IconCell * > iconCellsInFlowOrder ()
 
virtual qint32 calculateAndSetHorizontalSpaceParameters ()
 
virtual void relayoutExisting ()
 
virtual quint32 insertAlphabetically (IconBase *p_icon)
 
virtual quint32 insertAlphabetically (IconCell *p_cell)
 
virtual HorizontalLabeledDividercreateNewDivider (const QString &alphaLabel)
 
virtual QSize horizontalDividerSize ()
 
QPropertyAnimation * fadeAnimationForTrackedIcon (IconBase *p_icon)
 
virtual void setupReorderFSM ()
 
virtual void startReorderFSM ()
 
virtual void stopReorderFSM ()
 
virtual bool isReorderStateConsistent () const
 
virtual void switchIconsToReorderGraphics ()
 
virtual void switchIconsToNormalGraphics ()
 
virtual void switchIconToReorderGraphics (IconCell *p_iconCell)
 
virtual void switchIconToNormalGraphics (IconCell *p_iconCell)
 
virtual void switchIconToReorderGraphics (IconBase *p_icon)
 
virtual void switchIconToNormalGraphics (IconBase *p_icon)
 

Static Protected Member Functions

static bool iconRowLessThan (const IconRowAlpha *p_a, const IconRowAlpha *p_b)
 

Protected Attributes

IconRowAlphaList m_iconRows
 
RowDividerMap m_rowDividers
 
bool m_layoutSync
 
quint32 m_relayoutCount
 
bool m_disabledPaint
 
bool m_usingReorderModeGraphics
 
quint32 m_maxWidthForRows
 
quint32 m_maxIconsPerRow
 
qint32 m_horizIconSpacingAdjust
 
quint32 m_leftMarginForDividers
 
quint32 m_topMarginForDividers
 
quint32 m_leftMarginForRows
 
quint32 m_topMarginForRows
 
quint32 m_intraAlphaRowSpace
 
More...
 
quint32 m_interAlphaRowSpace
 
quint32 m_anchorRow
 
QSize m_iconCellSize
 
quint32 m_horizIconSpacing
 
QSize m_layoutSizeInPixels
 
quint32 m_minRowHeight
 
quint32 m_maxRowHeight
 
quint32 m_reorderEventSampleRate
 
QMap< QUuid, QPointer
< QAbstractAnimation > > 
m_trackedIconAnimations
 
QMap< QUuid, QPointer< IconBase > > m_trackedIcons
 
QStateMachinem_p_reorderFSM
 
QStatem_p_fsmStateConsistent
 
QStatem_p_fsmStateTrackedFloating
 
- Protected Attributes inherited from IconLayout
QPointer< Pagem_qp_ownerPage
 
QRectF m_geom
 
QPointF m_pos
 
QTransform m_layoutToPageTran
 
QTransform m_pageToLayoutTran
 

Static Protected Attributes

static const char * TrackedAnimationPropertyName_iconUid = "iconUid"
 
static const char * ReorderFSMPropertyName_isConsistent = "isConsistent"
 

Friends

class IconRowAlpha
 
class AlphabetPage
 
QDataStream & operator<< (QDataStream &stream, const AlphabetIconLayout &s)
 
QDataStream & operator>> (QDataStream &stream, AlphabetIconLayout &s)
 
QDebug operator<< (QDebug dbg, const AlphabetIconLayout &s)
 

Member Typedef Documentation

typedef IconRowAlphaList::const_iterator AlphabetIconLayout::IconRowConstIter
protected
typedef IconRowAlphaList::iterator AlphabetIconLayout::IconRowIter
protected
typedef QMap<QString,HorizontalDivider *> AlphabetIconLayout::RowDividerMap
protected
typedef RowDividerMap::const_iterator AlphabetIconLayout::RowDividerMapConstIter
protected
typedef RowDividerMap::iterator AlphabetIconLayout::RowDividerMapIter
protected

Constructor & Destructor Documentation

AlphabetIconLayout::AlphabetIconLayout ( AlphabetPage p_owner)
AlphabetIconLayout::~AlphabetIconLayout ( )
virtual

Member Function Documentation

QList< IconOperation > AlphabetIconLayout::addIconAt ( quint32  row,
quint32  column 
)
virtual
QAbstractAnimation * AlphabetIconLayout::animationForTrackedIconFinal ( const QUuid &  trackedIconUid)
virtual
qint32 AlphabetIconLayout::calculateAndSetHorizontalSpaceParameters ( )
protectedvirtual
void AlphabetIconLayout::cancelAllReorder ( )
virtual
bool AlphabetIconLayout::commitTracked ( const QUuid &  iconUid)
virtual
void AlphabetIconLayout::commitTrackedImmediately ( const QUuid &  iconUid)
virtual
QRectF AlphabetIconLayout::constGeometry ( ) const
inline
HorizontalLabeledDivider * AlphabetIconLayout::createNewDivider ( const QString &  alphaLabel)
protectedvirtual
void AlphabetIconLayout::dbg_reorderFSMStateEntered ( )
protectedvirtualslot
void AlphabetIconLayout::destroyAllRows ( )
protectedvirtual
void AlphabetIconLayout::destroyTrackedIcon ( const QUuid &  iconUid)
protectedvirtual
void AlphabetIconLayout::disableAutoPaint ( )
virtual

Reimplemented from IconLayout.

void AlphabetIconLayout::enableAutoPaint ( )
virtual

Reimplemented from IconLayout.

QPropertyAnimation * AlphabetIconLayout::fadeAnimationForTrackedIcon ( IconBase p_icon)
protected
IconCell * AlphabetIconLayout::findIconByUid ( const QUuid &  iconUid,
QPoint &  r_gridCoordinate 
)
virtual
IconBase * AlphabetIconLayout::getTrackedIcon ( const QUuid &  trackedIconUid)
virtual
QSize AlphabetIconLayout::horizontalDividerSize ( )
protectedvirtual
IconCell * AlphabetIconLayout::iconCellAtLayoutCoordinate ( const QPointF &  coordinate)
virtual

Reimplemented from IconLayout.

IconCell * AlphabetIconLayout::iconCellAtLayoutCoordinate ( const QPointF &  layoutCoordinate,
QPoint &  r_gridCoordinate 
)
virtual

Reimplemented from IconLayout.

QList< IconCell * > AlphabetIconLayout::iconCellsInFlowOrder ( )
protectedvirtual

Reimplemented from IconLayout.

bool AlphabetIconLayout::iconRowLessThan ( const IconRowAlpha p_a,
const IconRowAlpha p_b 
)
staticprotected
void AlphabetIconLayout::initDefaultEmptyLayoutFullEnglishAlpha ( AlphabetIconLayout layout)
static
void AlphabetIconLayout::initLayoutFromSequentialIconListFullEnglishAlpha ( AlphabetIconLayout layout,
const IconList  iconList 
)
static

START THE LAYOUT

quint32 AlphabetIconLayout::insertAlphabetically ( IconBase p_icon)
protectedvirtual
quint32 AlphabetIconLayout::insertAlphabetically ( IconCell p_cell)
protectedvirtual
bool AlphabetIconLayout::isReorderStateConsistent ( ) const
protectedvirtual

can't be sure of state w/o the FSM

quint32 AlphabetIconLayout::maximumRowHeight ( ) const
virtual

Reimplemented from IconLayout.

quint32 AlphabetIconLayout::minimumRowHeight ( ) const
virtual

Reimplemented from IconLayout.

void AlphabetIconLayout::paint ( QPainter *  painter)
virtual

Reimplemented from IconLayout.

void AlphabetIconLayout::paint ( const QPointF &  translate,
QPainter *  painter 
)
virtual

Reimplemented from IconLayout.

void AlphabetIconLayout::paint ( QPainter *  painter,
const QRectF &  sourceRect 
)
virtual

Reimplemented from IconLayout.

void AlphabetIconLayout::paint ( QPainter *  painter,
const QRectF &  sourceRect,
qint32  renderOpt 
)
virtual

Reimplemented from IconLayout.

void AlphabetIconLayout::paintOffscreen ( QPainter *  painter)
virtual

Reimplemented from IconLayout.

void AlphabetIconLayout::paintOffscreen ( PixmapObject p_pmo)
virtual

Reimplemented from IconLayout.

void AlphabetIconLayout::paintOffscreen ( PixmapHugeObject p_hugePmo)
virtual

Reimplemented from IconLayout.

void AlphabetIconLayout::relayout ( bool  force = false)
virtual

Reimplemented from IconLayout.

void AlphabetIconLayout::relayoutExisting ( )
protectedvirtual
bool AlphabetIconLayout::removeIconCell ( const QPoint &  gridCoordinate)
virtual

ugh, horrible! go check code - something is seriously wrong!

QList< IconOperation > AlphabetIconLayout::removeIconFrom ( quint32  row,
quint32  column 
)
virtual
void AlphabetIconLayout::resetLayoutRowSpacingToDefaultSettings ( )
virtual
void AlphabetIconLayout::resizeWidth ( const quint32  w)
virtual

Reimplemented from IconLayout.

QList< quint32 > AlphabetIconLayout::rowListForAlpha ( const QString &  alphaDesignator)
virtual
void AlphabetIconLayout::setLayoutRowSpacing ( const qreal  intraAlphaRowSpace,
const qreal  interAlphaRowSpace,
const quint32  anchorRowNum = 0 
)
virtual
void AlphabetIconLayout::setLayoutUniformRowSpacing ( const qreal  rowSpace,
const quint32  anchorRowNum = 0 
)
virtual
void AlphabetIconLayout::setPosition ( const QPointF &  pos)
virtual

Reimplemented from IconLayout.

void AlphabetIconLayout::setUniformCellSize ( const QSize &  size)
virtual

Reimplemented from IconLayout.

void AlphabetIconLayout::setupReorderFSM ( )
protectedvirtual
void AlphabetIconLayout::signalFSMLastTrackEndedTrigger ( )
signal
void AlphabetIconLayout::signalFSMReorderEnded_Trigger ( )
signal
void AlphabetIconLayout::signalFSMReorderStarted_Trigger ( )
signal
void AlphabetIconLayout::signalFSMTrackEnded_Trigger ( )
signal
void AlphabetIconLayout::signalFSMTrackStarted_Trigger ( )
signal
void AlphabetIconLayout::signalReorderEnded ( )
signal
void AlphabetIconLayout::signalReorderStarted ( )
signal
void AlphabetIconLayout::slotTrackedIconAnimationFinished ( )
protectedvirtualslot

protected Q_SLOTS:

void AlphabetIconLayout::slotTrackForIconEnded ( )
protectedvirtualslot
void AlphabetIconLayout::startReorderFSM ( )
protectedvirtual
bool AlphabetIconLayout::startTrackingIcon ( const QPointF &  layoutCoordinate,
QPair< QUuid, QUuid > &  r_iconUids 
)
virtual
void AlphabetIconLayout::stopReorderFSM ( )
protectedvirtual
void AlphabetIconLayout::stopTrackingAll ( )
virtual
void AlphabetIconLayout::stopTrackingIcon ( const QUuid &  trackedIconUid)
virtual
void AlphabetIconLayout::switchIconsToNormalGraphics ( )
protectedvirtual
void AlphabetIconLayout::switchIconsToReorderGraphics ( )
protectedvirtual
void AlphabetIconLayout::switchIconToNormalGraphics ( IconCell p_iconCell)
protectedvirtual
void AlphabetIconLayout::switchIconToNormalGraphics ( IconBase p_icon)
protectedvirtual
void AlphabetIconLayout::switchIconToReorderGraphics ( IconCell p_iconCell)
protectedvirtual
void AlphabetIconLayout::switchIconToReorderGraphics ( IconBase p_icon)
protectedvirtual
bool AlphabetIconLayout::trackedIconLeavingLayout ( const QUuid &  trackedIconUid)
virtual
qreal AlphabetIconLayout::verticalDistanceToNearestLowerRow ( const QPointF &  layoutCoordinate)
virtual

Reimplemented from IconLayout.

qreal AlphabetIconLayout::verticalDistanceToNearestUpperRow ( const QPointF &  layoutCoordinate)
virtual

Reimplemented from IconLayout.

Friends And Related Function Documentation

friend class AlphabetPage
friend
friend class IconRowAlpha
friend
QDataStream& operator<< ( QDataStream &  stream,
const AlphabetIconLayout s 
)
friend
QDebug operator<< ( QDebug  dbg,
const AlphabetIconLayout s 
)
friend
QDataStream& operator>> ( QDataStream &  stream,
AlphabetIconLayout s 
)
friend

Member Data Documentation

quint32 AlphabetIconLayout::m_anchorRow
protected
bool AlphabetIconLayout::m_disabledPaint
protected
quint32 AlphabetIconLayout::m_horizIconSpacing
protected
qint32 AlphabetIconLayout::m_horizIconSpacingAdjust
protected
QSize AlphabetIconLayout::m_iconCellSize
protected
IconRowAlphaList AlphabetIconLayout::m_iconRows
protected
quint32 AlphabetIconLayout::m_interAlphaRowSpace
protected
quint32 AlphabetIconLayout::m_intraAlphaRowSpace
protected


QSize AlphabetIconLayout::m_layoutSizeInPixels
protected
bool AlphabetIconLayout::m_layoutSync
protected
quint32 AlphabetIconLayout::m_leftMarginForDividers
protected
quint32 AlphabetIconLayout::m_leftMarginForRows
protected
quint32 AlphabetIconLayout::m_maxIconsPerRow
protected
quint32 AlphabetIconLayout::m_maxRowHeight
protected
quint32 AlphabetIconLayout::m_maxWidthForRows
protected
quint32 AlphabetIconLayout::m_minRowHeight
protected
QState* AlphabetIconLayout::m_p_fsmStateConsistent
protected
QState* AlphabetIconLayout::m_p_fsmStateTrackedFloating
protected
QStateMachine* AlphabetIconLayout::m_p_reorderFSM
protected
quint32 AlphabetIconLayout::m_relayoutCount
protected
quint32 AlphabetIconLayout::m_reorderEventSampleRate
protected
RowDividerMap AlphabetIconLayout::m_rowDividers
protected
quint32 AlphabetIconLayout::m_topMarginForDividers
protected
quint32 AlphabetIconLayout::m_topMarginForRows
protected
QMap<QUuid,QPointer<QAbstractAnimation> > AlphabetIconLayout::m_trackedIconAnimations
protected
QMap<QUuid,QPointer<IconBase> > AlphabetIconLayout::m_trackedIcons
protected
bool AlphabetIconLayout::m_usingReorderModeGraphics
protected
const char * AlphabetIconLayout::ReorderFSMPropertyName_isConsistent = "isConsistent"
staticprotected
const char * AlphabetIconLayout::TrackedAnimationPropertyName_iconUid = "iconUid"
staticprotected

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