lib Library API Documentation

KoUnitDoubleComboBox Class Reference

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

#include <koUnitWidgets.h>

Inheritance diagram for KoUnitDoubleComboBox:

Inheritance graph
[legend]
Collaboration diagram for KoUnitDoubleComboBox:

Collaboration graph
[legend]
List of all members.

Signals

void valueChanged (double)

Public Member Functions

 KoUnitDoubleComboBox (QWidget *parent, double lower, double upper, double value=0.0, KoUnit::Unit unit=KoUnit::U_PT, unsigned int precision=2, const char *name=0)
virtual void changeValue (double)
void updateValue (double)
virtual void setUnit (KoUnit::Unit=KoUnit::U_PT)
double value (void) const
void insertItem (double, int index=-1)

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *ev)

Protected Attributes

double m_value
double m_lower
double m_upper
double m_lowerInPoints
double m_upperInPoints

Detailed Description

Combo box for double precision numbers with unit display.

Since:
1.4 (change of behavior)

Definition at line 161 of file koUnitWidgets.h.


Member Function Documentation

double KoUnitDoubleComboBox::value void   )  const
 

Returns:
the current value, converted in points

Definition at line 306 of file koUnitWidgets.cc.

References KoUnit::fromUserValue().

Referenced by KoUnitDoubleSpinComboBox::value().


Member Data Documentation

double KoUnitDoubleComboBox::m_lowerInPoints [protected]
 

lowest value in points

Definition at line 188 of file koUnitWidgets.h.

double KoUnitDoubleComboBox::m_upperInPoints [protected]
 

highest value in points

Definition at line 189 of file koUnitWidgets.h.


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:42 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003