class KSpinBox

The KSpinBox Widget lets the user cycle trough a bunch of items. More...

Definition#include <kspinbox.h>
InheritsQWidget
Inherited byKListSpinBox, KNumericSpinBox
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Signals

Protected Methods

Protected Slots

Protected Members


Detailed Description

The KSpinBox Widget lets the user cycle trough a bunch of items. this class alone doesn't do really usefull things it provides the base for things like KNumericSpinBox or KListSpinBox.

You can use it in two ways:

1. The "is A" Variant : derive a subclass from KSpinBox and implement your own functionality

2. The "has A" Variant : instantiate a KSpinBox object and catch the valueIncreased() and valueDecreased() signals and do what you want in the slots.

 KSpinBox (QWidget *parent=0,const char *name=0,int align=AlignLeft)

construct a KSpinBox Widget

KSpinBox ()

const char * getValue ()

get the value shown the text field

void  setValue (const char *)

set the value which should be displayed in the text field

bool  isEditable ()

query if the user is allowed to edit the values

void  setEditable (bool)

decide if the user can edit the values or not

void  setAlign (int align)

set the alignment of the text field. possible values for align are AlignLeft, AlignCenter, AlignRight

int  getAlign ()

get the alignment of the text field. possible return values AlignLeft, AlignCenter, AlignRight

QSize  sizeHint ()

void  valueIncreased ()

[signal]

void  valueDecreased ()

[signal]

void  slotIncrease ()

[slot]

void  slotDecrease ()

[slot]

void  slotStartIncr ()

[protected slot]

void  slotStopIncr ()

[protected slot]

void  slotStartDecr ()

[protected slot]

void  slotStopDecr ()

[protected slot]

void  resizeEvent (QResizeEvent *)

[protected]

QLabel * _label

[protected]

QLineEdit * _edit

[protected]

QPushButton * _incr

[protected]

QPushButton * _decr

[protected]


Generated by: root@george.devel.redhat.com on Thu Sep 14 21:18:43 2000, using kdoc 2.0a36.