class KIntSpinBox

A QSpinBox with support for arbitrary base numbers. More...

Definition#include <knuminput.h>
InheritsQSpinBox (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

A QSpinBox with support for arbitrary base numbers (e.g. hexadecimal).

The class provides an easy interface to use other numeric systems then the decimal.

 KIntSpinBox ( QWidget *parent=0, const char *name=0)

KIntSpinBox

Constructor.

Constructs a widget with an integer inputline with a little scrollbar and a slider, with minimal value 0, maximal value 99, step 1, base 10 and initial value 0.

 KIntSpinBox (int lower, int upper, int step, int value, int base = 10, QWidget* parent = 0, const char* name = 0)

KIntSpinBox

Constructor.

Constructs a widget with an integer inputline with a little scrollbar and a slider.

Parameters:
lowerThe lowest valid value.
upperThe greatest valid value.
stepThe step size of the scrollbar.
valueThe actual value.
baseThe base of the used number system.
parentThe parent of the widget.
nameThe Name of the widget.

 ~KIntSpinBox ()

~KIntSpinBox

[virtual]

Destructor.

void  setBase (int base)

setBase

Sets the base in which the numbers in the spin box are represented.

int  base ()

base

[const]

Returns: the base in which numbers in the spin box are represented.

void  setEditFocus (bool mark)

setEditFocus

sets focus and optionally marks all text

QString  mapValueToText (int)

mapValueToText

[protected virtual]

Overloaded the method in QSpinBox to make use of the base given in the constructor.

Reimplemented from QSpinBox.

int  mapTextToValue (bool*)

mapTextToValue

[protected virtual]

Overloaded the method in QSpinBox to make use of the base given in the constructor.

Reimplemented from QSpinBox.

void  virtual_hook ( int id, void* data )

virtual_hook

[protected virtual]


Generated by: caleb on tcdevel on Tue Jan 28 12:54:10 2003, using kdoc $.