karbon

VColorSlider Class Reference

#include <vcolorslider.h>

List of all members.


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.


Public Slots

virtual void setLabel (const QString &label)
virtual void setColors (const QColor &color1, const QColor &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 (QWidget *parent=0L, const char *name=0L)
 VColorSlider (const QString &label, const QColor &col1, const QColor &col2, int min, int max, int value, QWidget *parent=0L, const char *name=0L)
 ~VColorSlider ()
bool isDragging ()

Constructor & Destructor Documentation

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

Constructs a new color slider.

Parameters:
parent the parent widget
name the slider's name

Definition at line 30 of file vcolorslider.cc.

VColorSlider::VColorSlider ( const QString &  label,
const QColor &  col1,
const QColor &  col2,
int  min,
int  max,
int  value,
QWidget *  parent = 0L,
const char *  name = 0L 
)

Constructs a new color slider.

Parameters:
label the label text
col1 the left color
col2 the right color
min the minimum value
max the maximum value
value the actual value
parent the parent widget
name the slider's name

Definition at line 37 of file vcolorslider.cc.

VColorSlider::~VColorSlider (  ) 

Destroys the color slider.

Definition at line 49 of file vcolorslider.cc.


Member Function Documentation

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 70 of file vcolorslider.h.

void VColorSlider::setColors ( const QColor &  color1,
const QColor &  color2 
) [virtual, slot]

Sets the colors for the slider.

Parameters:
color1 the new left color
color2 the new right color

Definition at line 83 of file vcolorslider.cc.

void VColorSlider::setLabel ( const QString &  label  )  [virtual, slot]

Sets the description of the slider.

Parameters:
label the new label text

Definition at line 78 of file vcolorslider.cc.

void VColorSlider::setMaxValue ( int  value  )  [virtual, slot]

Sets the maximum value of the spinbox and slider.

Parameters:
value the new maximum value

Definition at line 101 of file vcolorslider.cc.

void VColorSlider::setMinValue ( int  value  )  [virtual, slot]

Sets the minimum value of the spinbox and slider.

Parameters:
value the new minimum value

Definition at line 94 of file vcolorslider.cc.

void VColorSlider::setValue ( int  value  )  [virtual, slot]

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

Parameters:
value the new value

Definition at line 88 of file vcolorslider.cc.

int VColorSlider::value (  )  [slot]

Retrieves the actual value of the spinbox and slider.

Returns:
the actual value

Definition at line 108 of file vcolorslider.cc.

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:
value the actual value


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys