Logo Search packages:      
Sourcecode: ktechlab version File versions

Slider Class Reference

#include <canvasitemparts.h>

Inheritance diagram for Slider:


List of all members.

Detailed Description

Stores internal information about a QSlider associated with CNItem.

David Saxton

Definition at line 257 of file canvasitemparts.h.

Public Member Functions

int angleDegrees () const
QPointArray areaPoints () const
QRect boundingRect () const
QBrush brush () const
QCanvas * canvas () const
bool collidesWith (const QCanvasItem *) const
QCanvasItemList collisions (const bool exact) const
QRect drawRect ()
virtual void drawShape (QPainter &p)
virtual void enterEvent ()
int height () const
void hide ()
QString id () const
bool isSelected () const
bool isVisible () const
virtual void leaveEvent ()
virtual void mouseDoubleClickEvent (QMouseEvent *e)
virtual void mouseMoveEvent (QMouseEvent *e)
virtual void mousePressEvent (QMouseEvent *e)
virtual void mouseReleaseEvent (QMouseEvent *e)
void move (double const x, double const y)
virtual void moveBy (double const dx, double const dy)
bool needRedraw () const
CNItemparent () const
QPen pen () const
virtual QRect recommendedRect () const
QRect rect () const
void setAngleDegrees (int angleDegrees)
virtual void setBrush (const QBrush &b)
virtual void setCanvas (QCanvas *)
void setEnabled (bool enabled)
void setGuiPartSize (int width, int height)
void setNeedRedraw (const bool needRedraw)
void setOrientation (Qt::Orientation o)
void setOriginalRect (const QRect &r)
virtual void setPen (const QPen &p)
virtual void setSelected (const bool yes)
void setSize (const int w, const int h)
void setValue (int value)
virtual void setVisible (bool yes)
void setX (double a)
void setY (double a)
void setZ (double a)
void show ()
QSize size () const
 Slider (const QString &id, CNItem *parent, const QRect &r, QCanvas *canvas)
virtual void updateConnectorPoints (bool add)
int value () const
virtual void wheelEvent (QWheelEvent *e)
virtual QWidget * widget () const
int width () const
double x () const
double y () const
double z () const

Protected Member Functions

virtual void addToChunks ()
virtual void changeChunks ()
QPointArray chunks () const
void deinitPainter (QPainter &p)
void draw (QPainter &)
void initPainter (QPainter &p)
void invalidate ()
bool isValid () const
virtual void posChanged ()
virtual void removeFromChunks ()
void setWinding (bool)
void update ()
bool winding () const

Protected Attributes

bool b_pointsAdded
int m_angleDegrees
QString m_id
QRect m_originalRect
double myx
double myy
double myz
bool val

Private Slots

void slotValueChanged (int value)

Private Attributes

bool m_bSliderInverted
 In some orientations, the slider is reflected.
Orientation m_orientation
SliderWidget * m_slider

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

Generated by  Doxygen 1.6.0   Back to index