OSB_GUI::RangeLineEdit< T, Limits > Class Template Reference

Inheritance diagram for OSB_GUI::RangeLineEdit< T, Limits >:

Inheritance graph
[legend]
Collaboration diagram for OSB_GUI::RangeLineEdit< T, Limits >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename T, typename Limits = std::numeric_limits<T>>
class OSB_GUI::RangeLineEdit< T, Limits >

QLineEdit with range check.

Parameters:
T Supported datatype.
Limits Defines the limits of T.
See RangeValidator for details.
Almost all member functions wrap to validator_.

Note:
No destructor is needed: validator_ inherits from QObject and is automatically destroyed.

Definition at line 168 of file osblineedits.h.

Public Member Functions

Private Types

Private Member Functions

Private Attributes


Member Typedef Documentation

template<typename T, typename Limits = std::numeric_limits<T>>
typedef RangeValidator<T, Limits> OSB_GUI::RangeLineEdit< T, Limits >::Validator [private]

Define the validator type of the line edit.

Definition at line 170 of file osblineedits.h.


Constructor & Destructor Documentation

template<typename T, typename Limits = std::numeric_limits<T>>
OSB_GUI::RangeLineEdit< T, Limits >::RangeLineEdit ( QWidget parent,
const char *  name = "podLineEdit_" 
) [inline, explicit]

Constructor with QT arguments.

Definition at line 173 of file osblineedits.h.

template<typename T, typename Limits = std::numeric_limits<T>>
OSB_GUI::RangeLineEdit< T, Limits >::RangeLineEdit ( const T &  bottom,
const T &  top,
QWidget parent,
const char *  name = "podLineEdit_" 
) [inline]

Constructor with range and QT arguments.

Definition at line 182 of file osblineedits.h.

template<typename T, typename Limits = std::numeric_limits<T>>
OSB_GUI::RangeLineEdit< T, Limits >::RangeLineEdit ( const RangeLineEdit< T, Limits > &   )  [private]

Prevent copying: not implemented.


Member Function Documentation

template<typename T, typename Limits = std::numeric_limits<T>>
const T& OSB_GUI::RangeLineEdit< T, Limits >::bottom (  )  const [inline]

Get lower boundary (included).

Definition at line 198 of file osblineedits.h.

template<typename T, typename Limits = std::numeric_limits<T>>
RangeLineEdit& OSB_GUI::RangeLineEdit< T, Limits >::operator= ( const RangeLineEdit< T, Limits > &   )  [private]

Prevent assignment: not implemented.

template<typename T, typename Limits = std::numeric_limits<T>>
void OSB_GUI::RangeLineEdit< T, Limits >::setBottom ( const T &  bottom  )  [inline]

Set lower boundary (included).

Definition at line 231 of file osblineedits.h.

template<typename T, typename Limits = std::numeric_limits<T>>
void OSB_GUI::RangeLineEdit< T, Limits >::setRange ( const T &  bottom,
const T &  top 
) [inline]

Set range (bottom and top included).

Definition at line 241 of file osblineedits.h.

template<typename T, typename Limits = std::numeric_limits<T>>
void OSB_GUI::RangeLineEdit< T, Limits >::setTop ( const T &  top  )  [inline]

Set upper boundary (included).

Definition at line 236 of file osblineedits.h.

template<typename T, typename Limits = std::numeric_limits<T>>
void OSB_GUI::RangeLineEdit< T, Limits >::setValue ( const T &  t  )  [inline]

Set the value.

Definition at line 224 of file osblineedits.h.

template<typename T, typename Limits = std::numeric_limits<T>>
const T& OSB_GUI::RangeLineEdit< T, Limits >::top (  )  const [inline]

Get upper boundary (included).

Definition at line 203 of file osblineedits.h.

template<typename T, typename Limits = std::numeric_limits<T>>
T OSB_GUI::RangeLineEdit< T, Limits >::value ( bool *  ok = 0  )  const [inline]

Get the value.

Parameters:
ok If not 0: set to true if the text is valid, else false.
Returns:
The value that corresponds to the line edit's text. It is default constructed if the text is not valid.

Definition at line 215 of file osblineedits.h.


Member Data Documentation

template<typename T, typename Limits = std::numeric_limits<T>>
Validator* OSB_GUI::RangeLineEdit< T, Limits >::validator_ [private]

Validator of the line edit.

Definition at line 247 of file osblineedits.h.

Referenced by OSB_GUI::RangeLineEdit< size_t >::bottom(), OSB_GUI::RangeLineEdit< size_t >::RangeLineEdit(), OSB_GUI::RangeLineEdit< size_t >::setBottom(), OSB_GUI::RangeLineEdit< size_t >::setRange(), OSB_GUI::RangeLineEdit< size_t >::setTop(), OSB_GUI::RangeLineEdit< size_t >::top(), and OSB_GUI::RangeLineEdit< size_t >::value().


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