Logo Search packages:      
Sourcecode: hexalate version File versions  Download package

Public Types | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes

Piece Class Reference

Collaboration diagram for Piece:
Collaboration graph

List of all members.

Public Types

enum  { Type = UserType + 1 }

Public Member Functions

QList< int > colors () const
int connector (int offset) const
bool fromString (const QString &string)
 Piece (Puzzle *puzzle)
bool setConnector (int offset, int value)
void setHighlight (bool highlight)
void setPosition (const QPointF &position)
void spin ()
QString toString () const
virtual int type () const

Protected Member Functions

virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)

Private Slots

void actionFinished ()
void rotateConnectors ()

Private Member Functions

void moveTo (const QPointF &new_pos)
void rotate ()

Private Attributes

QList< int > m_colors
QList< int > m_connectors
QConicalGradient m_gradient
QPointF m_position
QTimer * m_rotate_timer
int m_rotations

Detailed Description

Definition at line 30 of file piece.h.

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

Generated by  Doxygen 1.6.0   Back to index