KGradientSelector Class Reference
#include <kselect.h>
Inheritance diagram for KGradientSelector:

Public Member Functions | |
KGradientSelector (TQWidget *parent=0, const char *name=0) | |
KGradientSelector (Orientation o, TQWidget *parent=0, const char *name=0) | |
~KGradientSelector () | |
void | setColors (const TQColor &col1, const TQColor &col2) |
void | setText (const TQString &t1, const TQString &t2) |
void | setFirstColor (const TQColor &col) |
void | setSecondColor (const TQColor &col) |
void | setFirstText (const TQString &t) |
void | setSecondText (const TQString &t) |
const TQColor | firstColor () const |
const TQColor | secondColor () const |
const TQString | firstText () const |
const TQString | secondText () const |
![]() | |
KSelector (TQWidget *parent=0, const char *name=0) | |
KSelector (Orientation o, TQWidget *parent=0L, const char *name=0L) | |
Orientation | orientation () const |
TQRect | contentsRect () const |
void | setIndent (bool i) |
bool | indent () const |
void | setValue (int value) |
int | value () const |
void | setMinValue (int value) |
int | minValue () const |
void | setMaxValue (int value) |
int | maxValue () const |
Protected Member Functions | |
virtual void | drawContents (TQPainter *) |
virtual TQSize | minimumSize () const |
virtual void | virtual_hook (int id, void *data) |
![]() | |
virtual void | drawArrow (TQPainter *painter, bool show, const TQPoint &pos) |
virtual void | valueChange () |
virtual void | paintEvent (TQPaintEvent *) |
virtual void | mousePressEvent (TQMouseEvent *e) |
virtual void | mouseMoveEvent (TQMouseEvent *e) |
virtual void | wheelEvent (TQWheelEvent *) |
Properties | |
TQColor | firstColor |
TQColor | secondColor |
TQString | firstText |
TQString | secondText |
![]() | |
int | value |
int | minValue |
int | maxValue |
Additional Inherited Members | |
![]() | |
void | valueChanged (int value) |
Detailed Description
The KGradientSelector widget allows the user to choose from a one-dimensional range of colors which is given as a gradient between two colors provided by the programmer.

KDE Gradient Selector Widget
Constructor & Destructor Documentation
KGradientSelector::KGradientSelector | ( | TQWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Constructs a horizontal color selector which contains a gradient between white and black.
Definition at line 406 of file kselect.cpp.
KGradientSelector::KGradientSelector | ( | Orientation | o, |
TQWidget * | parent = 0 , |
||
const char * | name = 0 |
||
) |
Constructs a colors selector with orientation o which contains a gradient between white and black.
Definition at line 413 of file kselect.cpp.
KGradientSelector::~KGradientSelector | ( | ) |
Destructs the widget.
Definition at line 421 of file kselect.cpp.
Member Function Documentation
|
protectedvirtual |
Override this function to draw the contents of the control.
The default implementation does nothing.
Draw only within contentsRect().
Reimplemented from KSelector.
Definition at line 434 of file kselect.cpp.
|
inline |
|
inline |
|
inline |
The documentation for this class was generated from the following files: