COPASI API  4.16.103
Public Member Functions | Protected Attributes | List of all members
CQValidatorInt Class Reference

#include <CQValidator.h>

Inheritance diagram for CQValidatorInt:
Inheritance graph
Collaboration diagram for CQValidatorInt:
Collaboration graph

Public Member Functions

 CQValidatorInt (QLineEdit *parent, const char *name=0)
void setRange (const int &lowerBound, const int &upperBound)
virtual State validate (QString &input, int &pos) const
- Public Member Functions inherited from CQValidator< QLineEdit >
 CQValidator (QLineEdit *parent, QString(QLineEdit::*retrieve)(void) const, const char *name=0)
virtual void force (const QString &input) const
virtual State revalidate ()
virtual void saved () const

Protected Attributes

QIntValidator * mpIntValidator
- Protected Attributes inherited from CQValidator< QLineEdit >
QString mLastAccepted
QLineEdit * mpContainer
QString(QLineEdit::* mRetrieve )(void) const

Additional Inherited Members

- Protected Member Functions inherited from CQValidator< QLineEdit >
State setColor (const State &state) const

Detailed Description

Definition at line 159 of file CQValidator.h.

Constructor & Destructor Documentation

CQValidatorInt::CQValidatorInt ( QLineEdit *  parent,
const char *  name = 0 

Definition at line 83 of file CQValidator.cpp.

83  :
84  CQValidator< QLineEdit >(parent, &QLineEdit::text, name),
87 {}
QIntValidator * mpIntValidator
Definition: CQValidator.h:171
#define min(a, b)
Definition: f2c.h:175
#define max(a, b)
Definition: f2c.h:176

Member Function Documentation

void CQValidatorInt::setRange ( const int &  lowerBound,
const int &  upperBound 

Definition at line 98 of file CQValidator.cpp.

References mpIntValidator.

Referenced by CQCrossSectionTaskWidget::init(), and CQTrajectoryWidget::init().

99 {mpIntValidator->setRange(lowerBound, upperBound);}
QIntValidator * mpIntValidator
Definition: CQValidator.h:171
QValidator::State CQValidatorInt::validate ( QString &  input,
int &  pos 
) const

Reimplemented from CQValidator< QLineEdit >.

Definition at line 89 of file CQValidator.cpp.

References mpIntValidator, and CQValidator< QLineEdit >::setColor().

90 {
91  if (mpIntValidator->validate(input, pos) == Acceptable)
92  return CQValidator< QLineEdit >::validate(input, pos);
94  setColor(Invalid);
95  return Intermediate;
96 }
QIntValidator * mpIntValidator
Definition: CQValidator.h:171
State setColor(const State &state) const
Definition: CQValidator.h:84

Member Data Documentation

QIntValidator* CQValidatorInt::mpIntValidator

Definition at line 171 of file CQValidator.h.

Referenced by setRange(), and validate().

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