OSB_GUI::LeDecimal Class Reference

Inheritance diagram for OSB_GUI::LeDecimal:

Inheritance graph
[legend]
Collaboration diagram for OSB_GUI::LeDecimal:

Collaboration graph
[legend]
List of all members.

Detailed Description

QLineEdit for OSB_LIB::Decimal.

Definition at line 300 of file osblineedits.h.

Public Member Functions

Private Slots

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

OSB_GUI::LeDecimal::LeDecimal ( QWidget parent,
const char *  name = "leDecimal_" 
)

Constructor with QT arguments.


Member Function Documentation

void OSB_GUI::LeDecimal::fixDecimals (  )  [private, slot]

Formats the input text according to number of decimal digits.

bool OSB_GUI::LeDecimal::positive (  )  const

Positive values only?

int OSB_GUI::LeDecimal::precision (  )  const

Get the number of decimal digits.

void OSB_GUI::LeDecimal::setPositive ( bool  posOnly  ) 

Set for positive numbers only.

Parameters:
posOnly Set true if only positive number are allowed.

int OSB_GUI::LeDecimal::setPrecision ( int  p  ) 

Set the number of decimal digits.

Parameters:
p Number of decimal digits, it is limited to OSB_LIB::Decimal::precision().
Returns:
The number of decimal digits set.

void OSB_GUI::LeDecimal::setRegExp (  )  [private]

Build the validation REGEX.

void OSB_GUI::LeDecimal::setup ( int  p,
bool  posOnly 
)

Set precision and positive only flag.

Parameters:
p Number of decimal digits, it is limited to OSB_LIB::Decimal::precision().
posOnly Set true if only positive number are allowed.

void OSB_GUI::LeDecimal::setValue ( double  d  )  [private]

Set the value from a double.

void OSB_GUI::LeDecimal::setValue ( const OSB_LIB::Decimal d  ) 

Set the value from a decimal.

double OSB_GUI::LeDecimal::toDouble (  )  const [private]

Get the value as double.

OSB_LIB::Decimal OSB_GUI::LeDecimal::value (  )  const

Get the value as decimal.


Member Data Documentation

bool OSB_GUI::LeDecimal::positive_ [private]

Flag if only positive number are allowed.

Definition at line 352 of file osblineedits.h.

int OSB_GUI::LeDecimal::precision_ [private]

Number of decimal digits to display.

Definition at line 354 of file osblineedits.h.

QRegExpValidator* OSB_GUI::LeDecimal::validator_ [private]

Validator of the input.

Definition at line 356 of file osblineedits.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:18:56 2006 for OSB Library by  doxygen 1.4.7