LunaSysMgr
|
#include <icon.h>
Public Slots | |
virtual void | slotUpdateIconPic (PixmapObject *p_newPixmap, bool propagate, PixmapObject *&r_p_oldPixmap) |
virtual void | slotChangeIconVisibility (bool show) |
virtual void | slotUpdateIconFramePic (PixmapObject *p_newPixmap, PixmapObject *&r_p_oldPixmap) |
virtual void | slotChangeIconFrameVisibility (bool show) |
virtual void | slotUpdateRemoveDecoratorPic (RemoveDeleteDecoratorState::Enum whichStatePic, PixmapObject *p_newPixmap, PixmapObject *&r_p_oldPixmap) |
virtual void | slotUpdateDeleteDecoratorPic (RemoveDeleteDecoratorState::Enum whichStatePic, PixmapObject *p_newPixmap, PixmapObject *&r_p_oldPixmap) |
virtual void | slotChangeRemoveDeleteDecoratorVisibility (RemoveDeleteDecoratorSelector::Enum showWhich) |
virtual void | slotUpdateInstallStatusDecoratorPic (PixmapObject *p_newPixmap, PixmapObject *&r_p_oldPixmap) |
virtual void | slotUpdateInstallStatusDecoratorPicNewProgress (int progressVal, bool updateMinMax=false, int minProgressVal=0, int maxProgressVal=0) |
virtual void | slotUpdateInstallStatusDecoratorResetProgress (int minProgressVal=0, int maxProgressVal=100) |
virtual void | slotEnableIconAutoRepaint () |
virtual void | slotDisableIconAutoRepaint (bool clearAutoclip=true) |
virtual void | setAutopaintClipRect (const QRect &clipRectPCS) |
virtual void | clearAutopaintClipRect () |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option=0, QWidget *widget=0) |
virtual void | paint (QPainter *painter, const QRectF &sourceItemRect) |
virtual void | paint (QPainter *painter, const QRectF &sourceRect, qint32 renderOpt) |
virtual void | paintOffscreen (QPainter *painter) |
virtual void | paintOffscreen (QPainter *painter, const QRect &sourceRect, const QPoint &targetOrigin) |
virtual void | paintOffscreen (QPainter *painter, const QRect &sourceRect, const QRect &targetRect) |
Signals | |
void | signalIconLabelChanged (const QString &, const QString &) |
void | signalIconLabelChanged () |
void | signalMasterIconMainImageChanged (PixmapObject *p_newMainIconPixmap) |
void | signalMasterIconInstallStatusDecoratorChanged (PixmapObject *p_newPixmap) |
void | signalMasterIconInstallStatusDecoratorParamsChanged (int progressVal, int minProgressVal, int maxProgressVal) |
void | signalStateRemoveDeleteActiveChanged () |
void | signalFSMActivate () |
void | signalFSMDeactivate () |
void | signalIconActionRequest (int cmdRequest) |
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 | |
IconBase (const QRectF &iconGeometry, Page *p_belongsTo) | |
IconBase (const QRectF &iconGeometry, PixmapObject *p_framePix, PixmapObject *p_mainPix, PixmapObject *p_feedbackPix, Page *p_belongsTo) | |
virtual IconBase * | clone () |
virtual IconBase * | cloneOf () const |
virtual IconBase * | master () |
virtual | ~IconBase () |
virtual bool | stateRemoveDeleteActive () const |
virtual void | setStateRemoveDeleteActive (bool v) |
virtual Page * | owningPage () const |
virtual LauncherObject * | owningLauncher () const |
QString | iconLabel () const |
void | setIconLabel (const QString &v) |
void | resetIconLabel () |
void | setIconLabelVisibility (bool visible) |
void | setUsePrerenderedLabel (bool usePreRendered) |
void | setLaunchFeedbackVisibility (bool visible) |
virtual bool | connectRequestsToLauncher (LauncherObject *launcherObj=0) |
virtual LayoutItem * | layoutItemAssociation () const |
virtual void | setLayoutItemAssociation (LayoutItem *v) |
virtual QRectF | geometry () const |
virtual QRectF | positionRelativeGeometry () const |
virtual QPointF | activePos () const |
virtual bool | resize (quint32 newWidth, quint32 newHeight) |
virtual bool | resize (const QSize &s) |
virtual bool | expand (const quint32 widthEx, const quint32 heightEx) |
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 | usingInstallDecorator () const |
virtual bool | tapIntoIcon (const QPointF &touchCoordinateICS, IconInternalHitAreas::Enum &r_hitArea) |
virtual bool | touchStartIntoIcon (const QPointF &touchCoordinateICS) |
virtual bool | touchEndIntoIcon (const QPointF &touchCoordinateICS) |
virtual void | update () |
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 | untranslateFromPosition (const QRectF &rect) const |
virtual QRectF | boundingRect () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option=0, QWidget *widget=0)=0 |
virtual void | paintOffscreen (QPainter *painter)=0 |
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 | 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 IconBase * | iconFromPix (PixmapObject *p_framePix, PixmapObject *p_mainPix, PixmapObject *p_feedbackPix, Page *p_belongsTo) |
static QSize | maxIconSize (const IconList &icons) |
static QSize | minIconSize (const IconList &icons) |
static void | iconSizeBounds (const IconList &icons, QSize &r_minSize, QSize &r_maxSize) |
static bool | canUseFramePixOnIcon (const IconBase &icon, PixmapObject *p_pix) |
static bool | canUseMainPixOnIcon (const IconBase &icon, PixmapObject *p_pix) |
static bool | canUseDecorPixOnIcon (const IconBase &icon, PixmapObject *p_pix) |
static QFont | staticLabelFontForIcons () |
static bool | iconLessThanByLabel (const IconBase *p_a, const IconBase *p_b) |
Static Public Member Functions inherited from ThingPaintable | |
static bool | isItemThingPaintable (QGraphicsItem *p_qgitem) |
static ThingPaintable * | thingpaintable_cast (QGraphicsItem *p_qgitem) |
Static Public Attributes | |
static const char * | IconLabelPropertyName = "iconlabel" |
static const char * | IconLastPageVisitedIndexPropertyName = "lastpageindex" |
static const char * | IconTransferContextPropertyName = "transfercontext" |
Static Public Attributes inherited from ThingPaintable | |
static int | MagicTypePropertyKey = 1111 |
static int | MagicTypePropertyValue = 2222 |
Protected Slots | |
virtual void | slotMasterIconMainImageChanged (PixmapObject *p_newMainIconPixmap) |
virtual void | slotMasterIconInstallStatusDecoratorChanged (PixmapObject *p_newPixmap) |
virtual void | slotMasterIconInstallStatusDecoratorParamsChanged (int progressVal, int minProgressVal, int maxProgressVal) |
virtual void | slotAnimationFinished () |
virtual void | slotRemoveDeleteActivated () |
Protected Member Functions | |
IconBase (const QRectF &iconGeometry) | |
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 void | setupFSM () |
virtual void | geometryChanged () |
virtual void | recomputePainterHelpers () |
virtual void | recalculateDecoratorPositionOnFrameChange () |
virtual void | redoLabelTextLayout (bool renderLabelPixmap=false) |
virtual void | recalculateLabelPosition () |
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 QRectF | GEOM (const QRectF &geom) |
static QRectF | AGEOM (const QRectF &geom) |
static QRectF | LabelBoxGeomFromGeom (const QRectF &geom) |
static QRectF | FrameGeomFromGeom (const QRectF &geom) |
static QRectF | IconGeomFromGeom (const QRectF &geom) |
static QRectF | RemoveDeleteDecorGeomFromGeom (const QRectF &geom) |
static QRectF | InstallStatusGeomFromGeom (const QRectF &geom) |
static bool | canUsePixOnIcon (const IconBase &icon, PixmapObject *p_pix) |
Properties | |
QString | iconlabel |
LayoutItem | layoutItemAssociation |
bool | stateRemoveDeleteActive |
Properties inherited from ThingPaintable | |
QString | uistate |
QPointF | animatePosition |
Friends | |
class | Page |
class | IconCell |
IconBase::IconBase | ( | const QRectF & | iconGeometry, |
Page * | p_belongsTo | ||
) |
IconBase::IconBase | ( | const QRectF & | iconGeometry, |
PixmapObject * | p_framePix, | ||
PixmapObject * | p_mainPix, | ||
PixmapObject * | p_feedbackPix, | ||
Page * | p_belongsTo | ||
) |
|
virtual |
|
protected |
|
virtual |
|
staticprotected |
|
static |
|
static |
|
static |
|
staticprotected |
|
virtualslot |
|
virtual |
|
virtual |
|
virtual |
|
inlineprotectedvirtual |
|
virtual |
|
protectedvirtual |
|
staticprotected |
|
staticprotected |
|
virtual |
Reimplemented from ThingPaintable.
|
protectedvirtual |
|
inlineprotectedvirtual |
|
static |
|
staticprotected |
QString IconBase::iconLabel | ( | ) | const |
|
static |
|
staticprotected |
|
staticprotected |
|
virtual |
|
virtual |
|
static |
|
static |
|
virtual |
|
virtual |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
virtual |
Reimplemented from ThingPaintable.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
staticprotected |
void IconBase::resetIconLabel | ( | ) |
|
virtual |
Reimplemented from ThingPaintable.
|
virtual |
Reimplemented from ThingPaintable.
|
protectedvirtual |
|
virtualslot |
void IconBase::setIconLabel | ( | const QString & | v | ) |
void IconBase::setIconLabelVisibility | ( | bool | visible | ) |
void IconBase::setLaunchFeedbackVisibility | ( | bool | visible | ) |
|
virtual |
|
virtual |
|
protectedvirtual |
void IconBase::setUsePrerenderedLabel | ( | bool | usePreRendered | ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
protectedvirtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtual |
|
static |
|
protectedvirtual |
Reimplemented from Thing.
Reimplemented from Thing.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
virtual |
this one is called into during reorder mode, since the layout/page handles all input, and not the icon itself returns true if the touch was internally meaningfull and the caller can safely
|
inlineprotectedvirtual |
|
virtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
virtual |
|
inlineprotectedvirtual |
|
virtual |
|
virtual |
|
friend |
|
friend |
|
static |
|
static |
|
static |
|
protected |
m_activePositionOffsetFromPos: The concept of "active position" is that the icon's QGraphicsItem pos() is the place where it is drawn, but that pos may
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
readwrite |
|
readwrite |
|
readwrite |