lib Library API Documentation

KoUnitDoubleSpinBox Class Reference

Spin box for double precision numbers with unit display. More...

#include <koUnitWidgets.h>

Inheritance diagram for KoUnitDoubleSpinBox:

Inheritance graph
[legend]
Collaboration diagram for KoUnitDoubleSpinBox:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KoUnitDoubleSpinBox (QWidget *parent, double lower, double upper, double step, double value=0.0, KoUnit::Unit unit=KoUnit::U_PT, unsigned int precision=2, const char *name=0)
virtual void changeValue (double)
virtual void setUnit (KoUnit::Unit=KoUnit::U_PT)
double value (void) const
void setMinValue (double min)
void setMaxValue (double max)
void setLineStep (double step)

Detailed Description

Spin box for double precision numbers with unit display.

Since:
1.4 (change of behavior)

Definition at line 102 of file koUnitWidgets.h.


Member Function Documentation

double KoUnitDoubleSpinBox::value void   )  const
 

Returns:
the current value, converted in points

Definition at line 156 of file koUnitWidgets.cc.

References KoUnit::fromUserValue().

void KoUnitDoubleSpinBox::setMinValue double  min  ) 
 

Set minimum value in points.

Definition at line 161 of file koUnitWidgets.cc.

References KoUnit::toUserValue().

void KoUnitDoubleSpinBox::setMaxValue double  max  ) 
 

Set maximum value in points.

Definition at line 167 of file koUnitWidgets.cc.

References KoUnit::toUserValue().

void KoUnitDoubleSpinBox::setLineStep double  step  ) 
 

Set step size in points.

Definition at line 173 of file koUnitWidgets.cc.

References KoUnit::toUserValue().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:41:43 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003