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

Button Class Reference

#include <canvasitemparts.h>

Inheritance diagram for Button:


List of all members.

Detailed Description

Stores internal information about button associated with CNItem.

David Saxton

Definition at line 204 of file canvasitemparts.h.

Public Member Functions

int angleDegrees () const
 Button (const QString &id, CNItem *parent, bool isToggle, const QRect &r, QCanvas *canvas)
QRect drawRect ()
virtual void drawShape (QPainter &p)
virtual void enterEvent ()
QString id () const
bool isToggle () const
virtual void leaveEvent ()
virtual void mouseDoubleClickEvent (QMouseEvent *e)
virtual void mouseMoveEvent (QMouseEvent *e)
virtual void mousePressEvent (QMouseEvent *e)
virtual void mouseReleaseEvent (QMouseEvent *e)
CNItemparent () const
virtual QRect recommendedRect () const
virtual int rtti () const
void setAngleDegrees (int angleDegrees)
void setEnabled (bool enabled)
void setGuiPartSize (int width, int height)
void setOriginalRect (const QRect &r)
void setPixmap (const QPixmap &)
void setState (bool state)
void setText (const QString &text)
void setToggle (bool toggle)
bool state () const
virtual void updateConnectorPoints (bool add)
virtual void wheelEvent (QWheelEvent *e)
virtual QWidget * widget () const

Protected Member Functions

void deinitPainter (QPainter &p)
void initPainter (QPainter &p)
virtual void posChanged ()

Protected Attributes

bool b_pointsAdded
int m_angleDegrees
QString m_id
QRect m_originalRect

Private Slots

void slotStateChanged ()

Private Attributes

bool b_isToggle
ToolButton * m_button

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

Generated by  Doxygen 1.6.0   Back to index