Optika Development
Public Member Functions | Static Public Member Functions
Optika::EnhancedNumberValidator< int > Class Template Reference

#include <Optika_SpecificParameterEntryValidators.hpp>

Inheritance diagram for Optika::EnhancedNumberValidator< int >:
Inheritance graph
[legend]
Collaboration diagram for Optika::EnhancedNumberValidator< int >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 EnhancedNumberValidator ()
 EnhancedNumberValidator (int min, int max, int step=intDefaultStep)

Static Public Member Functions

static void applyToSpinBox (Teuchos::RCP< const EnhancedNumberValidator< int > > validator, QSpinBox *spinBox)

Detailed Description

template<>
class Optika::EnhancedNumberValidator< int >

A specific validator used to validate entry's of type int.


Constructor & Destructor Documentation

Construcsts an EnhancedNumberValidator of type int with no minimum or maximum.

Optika::EnhancedNumberValidator< int >::EnhancedNumberValidator ( int  min,
int  max,
int  step = intDefaultStep 
) [inline]

Constructs an Enhanced number validator for type int.

Parameters:
minThe minimum acceptable value for this validator.
maxThe maximum acceptable value for this validator.
stepThe increments at which the value should be changed. This is mostly used for the QSpinBox that is used in the Optika GUI. If you're not using the GUI, you may ignore this parameter.

Member Function Documentation

static void Optika::EnhancedNumberValidator< int >::applyToSpinBox ( Teuchos::RCP< const EnhancedNumberValidator< int > >  validator,
QSpinBox *  spinBox 
) [inline, static]

Applies an EnhancedNumberValidator of type int to a QSpinBox

Parameters:
validatorThe validator to be useed.
spinBoxThe spinBox on which to apply the validator.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Enumerations