Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SliderAction Class Reference

A KAction that displays a number using a QSlider. More...

#include <actions.h>

Inheritance diagram for SliderAction::

List of all members.

Public Slots

void setValue (int num)
void setTickInterval (int ticks)
void setOrientation (Orientation o)
void dockChange (QDockWindow *)

Signals

void valueChanged (int)

Public Methods

 SliderAction (int min, int max, int step, int val, const QString &text, QObject *parent=0, const char *name=0)
virtual int plug (QWidget *widget, int index=-1)
virtual void unplug (QWidget *widget)
QSlider * widget () const
int value () const
virtual QSlider * createWidget (QWidget *parent, const char *name=0)

Protected Slots

void setValueInternal (int num)
void setInverseInternal (int num)

Detailed Description

A KAction that displays a number using a QSlider.

Applications can use this class to add a QSlider widget to their toolbars (eg. a volume control).

Author:
Richard Moore, rich@kde.org
Version:
Id:
actions.h,v 1.10 2002/09/21 23:29:47 rich Exp


Member Function Documentation

QSlider* SliderAction::widget const [inline]
 

Returns a pointer to the QSlider object.

int SliderAction::value const
 

Returns the current value of the slider.

virtual QSlider* SliderAction::createWidget QWidget * parent,
const char * name = 0
[virtual]
 

A factory method that creates the QSlider object.

void SliderAction::setValue int num [slot]
 

Sets the value of the slider to the specified value.

void SliderAction::setTickInterval int ticks [slot]
 

Sets the interval between the tickmarks of the slider.

QSlider::setTickInteral(int)

void SliderAction::setOrientation Orientation o [slot]
 

Sets the orientation of the slider.

void SliderAction::dockChange QDockWindow * [slot]
 

Sets the orientation of the slider.

void SliderAction::valueChanged int [signal]
 

Emitted when the value of the slider is changed.

Note the orientation of the slider is automatically accounted for when this signal is emitted.

void SliderAction::setValueInternal int num [protected, slot]
 

Sets the value of the slider action and emits valueChanged signal.

QSlider::setValue(int)

void SliderAction::setInverseInternal int num [protected, slot]
 

Same as above except it inverts the given value and calls setValueInternal.

setValue(int)


The documentation for this class was generated from the following file:
Generated at Thu Jan 30 02:56:03 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001