Optika GUI Toolik Version of the Day
Public Member Functions | Static Public Member Functions
Optika::EnhancedNumberValidator< short > Class Template Reference

#include <Optika_SpecificParameterEntryValidators.hpp>

Inheritance diagram for Optika::EnhancedNumberValidator< short >:
Inheritance graph

List of all members.

Public Member Functions

 EnhancedNumberValidator ()
 EnhancedNumberValidator (short min, short max, short step=shortDefaultStep)

Static Public Member Functions

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

Detailed Description

class Optika::EnhancedNumberValidator< short >

A specific validator used to validate values of type short.

Definition at line 335 of file Optika_SpecificParameterEntryValidators.hpp.

Constructor & Destructor Documentation

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

Definition at line 341 of file Optika_SpecificParameterEntryValidators.hpp.

Optika::EnhancedNumberValidator< short >::EnhancedNumberValidator ( short  min,
short  max,
short  step = shortDefaultStep 
) [inline]

Constructs an EnhancedNumberValidator of type short.

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.

Definition at line 351 of file Optika_SpecificParameterEntryValidators.hpp.

Member Function Documentation

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

Applies an EnhancedNumberValidator of type short to a QSpinBox

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

Definition at line 359 of file Optika_SpecificParameterEntryValidators.hpp.

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