class KNumInput

You need to inherit from this class if you want to implement K*NumInput for a different variable type More...

Contains pure virtuals
Definition#include <knuminput.h>
InheritsQWidget (qt) [public ]
Inherited byKDoubleNumInput, KIntNumInput
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Protected Members


Detailed Description

You need to inherit from this class if you want to implement K*NumInput for a different variable type

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

KNumInput

Default constructor

 KNumInput (KNumInput* below, QWidget* parent=0, const char* name=0)

KNumInput

Parameters:
belowA pointer to another KNumInput.

 ~KNumInput ()

~KNumInput

void  setLabel (QString label, int a = AlignLeft | AlignTop)

setLabel

[virtual]

Set the text and alignment of the main description label.

The vertical alignment flags have special meaning with this widget:

Parameters:
labelThe text of the label. Use QString::null to remove an existing one.
aone of AlignLeft, AlignHCenter, YAlignRight and AlignTop, AlignVCenter, AlignBottom. default is AlignLeft | AlignTop.

void  setSteps (int minor, int major)

setSteps

Set the spacing of tickmarks for the slider.

Parameters:
minorMinor tickmark separation.
majorMajor tickmark separation.

QSizePolicy  sizePolicy ()

sizePolicy

[const]

Specify that this widget may stretch horizontally, but is fixed vertically (like QSpinBox itself).

Reimplemented from QWidget.

QSize  sizeHint ()

sizeHint

[const virtual]

Return a size which fits the contents of the control.

Returns: the preferred size necessary to show the control

Reimplemented from QWidget.

void  layout (bool deep)

layout

[protected]

Call this function whenever you change something in the geometry of your KNumInput child.

Reimplemented from QWidget.

void  doLayout ()

doLayout

[protected pure virtual]

You need to overwrite this method and implement yourlayout calculations there.

See KIntNumInput / KDoubleNumInput implementation for details.

KNumInput* m_prev

m_prev

[protected]

KNumInput* m_next

m_next

[protected]

int m_colw1

m_colw1

[protected]

int m_colw2

m_colw2

[protected]

QLabel* m_label

m_label

[protected]

QSlider* m_slider

m_slider

[protected]

QSize m_sizeSlider

m_sizeSlider

[protected]

QSize m_sizeLabel

m_sizeLabel

[protected]

int m_alignment

m_alignment

[protected]


Generated by: dfaure on kde.faure.org on Thu Jan 17 22:16:05 2002, using kdoc 2.0a53.