Gui::UIntSpinBox Class Reference

The UIntSpinBox class does basically the same as Qt's QSpinBox unless that it works with unsigned int's instead. More...

#include <SpinBox.h>

List of all members.

Public Slots

void setValue (uint value)

Signals

void valueChanged (uint value)

Public Member Functions

uint maximum () const
uint minimum () const
void setMaximum (uint value)
void setMinimum (uint value)
void setRange (uint minVal, uint maxVal)
 UIntSpinBox (QWidget *parent=0)
virtual QValidator::State validate (QString &input, int &pos) const
uint value () const
virtual ~UIntSpinBox ()

Protected Member Functions

virtual QString textFromValue (int v) const
virtual int valueFromText (const QString &text) const

Detailed Description

The UIntSpinBox class does basically the same as Qt's QSpinBox unless that it works with unsigned int's instead.

This allows to use numbers in the range of [0, UINT_MAX]

Author:
Werner Mayer

Definition at line 67 of file SpinBox.h.


Constructor & Destructor Documentation

UIntSpinBox::UIntSpinBox ( QWidget *  parent = 0  ) 
UIntSpinBox::~UIntSpinBox (  )  [virtual]

Definition at line 140 of file SpinBox.cpp.

References Gui::UIntSpinBoxPrivate::mValidator.


Member Function Documentation

uint UIntSpinBox::maximum (  )  const

Definition at line 187 of file SpinBox.cpp.

References Gui::UIntSpinBoxPrivate::mapToUInt().

Referenced by setMinimum(), and UIntSpinBox().

uint UIntSpinBox::minimum (  )  const

Definition at line 174 of file SpinBox.cpp.

References Gui::UIntSpinBoxPrivate::mapToUInt().

Referenced by setMaximum(), and UIntSpinBox().

void UIntSpinBox::setMaximum ( uint  value  ) 

Definition at line 192 of file SpinBox.cpp.

References minimum(), and setRange().

void UIntSpinBox::setMinimum ( uint  value  ) 

Definition at line 179 of file SpinBox.cpp.

References maximum(), and setRange().

void UIntSpinBox::setRange ( uint  minVal,
uint  maxVal 
)
void UIntSpinBox::setValue ( uint  value  )  [slot]
QString UIntSpinBox::textFromValue ( int  v  )  const [protected, virtual]

Definition at line 200 of file SpinBox.cpp.

References Gui::UIntSpinBoxPrivate::mapToUInt().

QValidator::State UIntSpinBox::validate ( QString &  input,
int &  pos 
) const [virtual]
uint UIntSpinBox::value (  )  const

Definition at line 159 of file SpinBox.cpp.

References Gui::UIntSpinBoxPrivate::mapToUInt(), and Py::value().

void Gui::UIntSpinBox::valueChanged ( uint  value  )  [signal]

Referenced by UIntSpinBox().

int UIntSpinBox::valueFromText ( const QString &  text  )  const [protected, virtual]

Definition at line 208 of file SpinBox.cpp.

References Gui::UIntSpinBoxPrivate::mapToInt().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:04 2011 for FreeCAD by  doxygen 1.6.1