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

#include <CardGroup.h>

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

Public Member Functions

 CardGroup (qreal curScale, qreal nonCurScale)
 
 ~CardGroup ()
 
void addToGroup (CardWindow *c)
 
void removeFromGroup (CardWindow *c)
 
void addToFront (CardWindow *c)
 
void addToBack (CardWindow *c)
 
bool moveActiveCard (int direction)
 
bool moveActiveCard ()
 
bool moveCurrentPosition (int direction)
 
QList< QPropertyAnimation * > animateOpen (int duration, QEasingCurve::Type curve, bool includeActiveCard=true)
 
QList< QPropertyAnimation * > animateClose (int duration, QEasingCurve::Type curve, bool useGroupPosition=false)
 
QList< QPropertyAnimation * > animateCloseWithOffset (int duration, QEasingCurve::Type curve, int groupXOffset)
 
void setCardPositions (int groupXOffset)
 
QList< QPropertyAnimation * > maximizeActiveCard (qreal centerOffset)
 
void layoutCards (bool open, bool includeActiveCard)
 
void maximizeActiveCardNoAnimation (qreal centerOffset)
 
bool setActiveCard (QPointF scenePt)
 
bool setActiveCard (CardWindow *card)
 
bool makeNextCardActive ()
 
void makeFrontCardActive ()
 
bool makePreviousCardActive ()
 
void makeBackCardActive ()
 
void raiseCards ()
 
CardWindowactiveCard () const
 
int size () const
 
bool empty () const
 
bool atEdge (qreal direction) const
 
void adjustHorizontally (qreal xDelta)
 
void flick (int xVelocity)
 
void enableShadows ()
 
void disableShadows ()
 
void setCompositionMode (QPainter::CompositionMode mode)
 
void resize (int width, int height, QRect normalScreenBounds)
 
int width () const
 
int left () const
 
int right () const
 
bool withinColumn (const QPointF &pt) const
 
QPointF pos () const
 
void setPos (const QPointF &pos)
 
qreal x () const
 
void setX (const qreal &x)
 
qreal y () const
 
void setY (const qreal &y)
 
bool shouldMaximizeOrScroll (QPointF scenePt)
 
bool testHit (QPointF scenePt)
 
void moveToActiveCard ()
 
QVector< CardWindow * > cards () const
 

Properties

QPointF pos
 
qreal x
 
qreal y
 

Constructor & Destructor Documentation

CardGroup::CardGroup ( qreal  curScale,
qreal  nonCurScale 
)
CardGroup::~CardGroup ( )

Member Function Documentation

CardWindow* CardGroup::activeCard ( ) const
inline
void CardGroup::addToBack ( CardWindow c)
void CardGroup::addToFront ( CardWindow c)
void CardGroup::addToGroup ( CardWindow c)
void CardGroup::adjustHorizontally ( qreal  xDelta)
QList< QPropertyAnimation * > CardGroup::animateClose ( int  duration,
QEasingCurve::Type  curve,
bool  useGroupPosition = false 
)
QList< QPropertyAnimation * > CardGroup::animateCloseWithOffset ( int  duration,
QEasingCurve::Type  curve,
int  groupXOffset 
)
QList< QPropertyAnimation * > CardGroup::animateOpen ( int  duration,
QEasingCurve::Type  curve,
bool  includeActiveCard = true 
)
bool CardGroup::atEdge ( qreal  direction) const
QVector<CardWindow*> CardGroup::cards ( ) const
inline
void CardGroup::disableShadows ( )
bool CardGroup::empty ( ) const
inline
void CardGroup::enableShadows ( )
void CardGroup::flick ( int  xVelocity)
void CardGroup::layoutCards ( bool  open,
bool  includeActiveCard 
)
int CardGroup::left ( ) const
inline
void CardGroup::makeBackCardActive ( )
void CardGroup::makeFrontCardActive ( )
bool CardGroup::makeNextCardActive ( )
bool CardGroup::makePreviousCardActive ( )
QList< QPropertyAnimation * > CardGroup::maximizeActiveCard ( qreal  centerOffset)
void CardGroup::maximizeActiveCardNoAnimation ( qreal  centerOffset)
bool CardGroup::moveActiveCard ( int  direction)
bool CardGroup::moveActiveCard ( )
bool CardGroup::moveCurrentPosition ( int  direction)
void CardGroup::moveToActiveCard ( )
QPointF CardGroup::pos ( ) const
inline
void CardGroup::raiseCards ( )
void CardGroup::removeFromGroup ( CardWindow c)
void CardGroup::resize ( int  width,
int  height,
QRect  normalScreenBounds 
)
int CardGroup::right ( ) const
inline
bool CardGroup::setActiveCard ( QPointF  scenePt)
bool CardGroup::setActiveCard ( CardWindow card)
void CardGroup::setCardPositions ( int  groupXOffset)
void CardGroup::setCompositionMode ( QPainter::CompositionMode  mode)
void CardGroup::setPos ( const QPointF &  pos)
void CardGroup::setX ( const qreal &  x)
void CardGroup::setY ( const qreal &  y)
bool CardGroup::shouldMaximizeOrScroll ( QPointF  scenePt)
int CardGroup::size ( ) const
inline
bool CardGroup::testHit ( QPointF  scenePt)
int CardGroup::width ( ) const
inline
bool CardGroup::withinColumn ( const QPointF &  pt) const
qreal CardGroup::x ( ) const
inline
qreal CardGroup::y ( ) const
inline

Property Documentation

QPointF CardGroup::pos
readwrite
qreal CardGroup::x
readwrite
qreal CardGroup::y
readwrite

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