karbon

#include <vcolorslider.h>

Public Slots

virtual void setLabel (const TQString &label)
virtual void setColors (const TQColor &color1, const TQColor &color2)
virtual void setValue (int value)
virtual void setMinValue (int value)
virtual void setMaxValue (int value)
int value ()

Signals

void valueChanged (int value)

Public Member Functions

 VColorSlider (TQWidget *parent=0L, const char *name=0L)
 VColorSlider (const TQString &label, const TQColor &col1, const TQColor &col2, int min, int max, int value, TQWidget *parent=0L, const char *name=0L)
 ~VColorSlider ()
bool isDragging ()

Detailed Description

This is the color slider widget that is used to select color or color components.

It combines a label, a gradient selector and a spinbox.

Definition at line 35 of file vcolorslider.h.

Constructor & Destructor Documentation

◆ VColorSlider() [1/2]

VColorSlider::VColorSlider ( TQWidget * parent = 0L,
const char * name = 0L )

Constructs a new color slider.

Parameters
parentthe parent widget
namethe slider's name

Definition at line 30 of file vcolorslider.cpp.

◆ VColorSlider() [2/2]

VColorSlider::VColorSlider ( const TQString & label,
const TQColor & col1,
const TQColor & col2,
int min,
int max,
int value,
TQWidget * parent = 0L,
const char * name = 0L )

Constructs a new color slider.

Parameters
labelthe label text
col1the left color
col2the right color
minthe minimum value
maxthe maximum value
valuethe actual value
parentthe parent widget
namethe slider's name

Definition at line 37 of file vcolorslider.cpp.

◆ ~VColorSlider()

VColorSlider::~VColorSlider ( )

Destroys the color slider.

Definition at line 49 of file vcolorslider.cpp.

Member Function Documentation

◆ isDragging()

bool VColorSlider::isDragging ( )
inline

Reflects if the slider is still being dragged while the color changes.

Returns
true if slider is still dragged, else false

Definition at line 71 of file vcolorslider.h.

◆ setColors

void VColorSlider::setColors ( const TQColor & color1,
const TQColor & color2 )
virtualslot

Sets the colors for the slider.

Parameters
color1the new left color
color2the new right color

Definition at line 83 of file vcolorslider.cpp.

◆ setLabel

void VColorSlider::setLabel ( const TQString & label)
virtualslot

Sets the description of the slider.

Parameters
labelthe new label text

Definition at line 78 of file vcolorslider.cpp.

◆ setMaxValue

void VColorSlider::setMaxValue ( int value)
virtualslot

Sets the maximum value of the spinbox and slider.

Parameters
valuethe new maximum value

Definition at line 101 of file vcolorslider.cpp.

◆ setMinValue

void VColorSlider::setMinValue ( int value)
virtualslot

Sets the minimum value of the spinbox and slider.

Parameters
valuethe new minimum value

Definition at line 94 of file vcolorslider.cpp.

◆ setValue

void VColorSlider::setValue ( int value)
virtualslot

Sets the value of the spinbox (and the value of the vcolorslider).

Parameters
valuethe new value

Definition at line 88 of file vcolorslider.cpp.

◆ value

int VColorSlider::value ( )
slot

Retrieves the actual value of the spinbox and slider.

Returns
the actual value

Definition at line 108 of file vcolorslider.cpp.

◆ valueChanged

void VColorSlider::valueChanged ( int value)
signal

Is emitted whenever the slider or spinbox value has changed.

Use isDragging to know if the slider is still being dragged.

Parameters
valuethe actual value

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