NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
CNumberValidator Class Reference

Search Toolkit Book for CNumberValidator

#include <gui/widgets/wx/number_validator.hpp>

+ Inheritance diagram for CNumberValidator:
+ Collaboration diagram for CNumberValidator:

Public Member Functions

 CNumberValidator (long *val_ptr, long minVal=numeric_limits< long >::min(), long maxVal=numeric_limits< long >::max(), const char *szErrMsg=0)
 
 CNumberValidator (const CNumberValidator &val)
 
virtual ~CNumberValidator ()
 
virtual wxObject * Clone () const
 
bool Copy (const CNumberValidator &val)
 
virtual bool Validate (wxWindow *parent)
 
virtual bool TransferToWindow ()
 
virtual bool TransferFromWindow ()
 

Protected Member Functions

bool CheckValidator () const
 

Protected Attributes

long * m_ValPtr
 
long m_MinVal
 
long m_MaxVal
 
wxString m_ErrMsg
 

Private Member Functions

CNumberValidatoroperator= (const CNumberValidator &)
 

Detailed Description

Definition at line 43 of file number_validator.hpp.

Constructor & Destructor Documentation

◆ CNumberValidator() [1/2]

CNumberValidator::CNumberValidator ( long *  val_ptr,
long  minVal = numeric_limits<long>::min(),
long  maxVal = numeric_limits<long>::max(),
const char *  szErrMsg = 0 
)

Definition at line 43 of file number_validator.cpp.

References chars, m_ErrMsg, m_MaxVal, m_MinVal, m_ValPtr, max(), min(), n, ToWxString(), and wxT.

Referenced by Clone().

◆ CNumberValidator() [2/2]

CNumberValidator::CNumberValidator ( const CNumberValidator val)

Definition at line 75 of file number_validator.cpp.

References Copy(), and val.

◆ ~CNumberValidator()

virtual CNumberValidator::~CNumberValidator ( )
inlinevirtual

Definition at line 51 of file number_validator.hpp.

Member Function Documentation

◆ CheckValidator()

bool CNumberValidator::CheckValidator ( ) const
protected

◆ Clone()

virtual wxObject* CNumberValidator::Clone ( void  ) const
inlinevirtual

Reimplemented in CNumberOrBlankValidator.

Definition at line 57 of file number_validator.hpp.

References CNumberValidator().

◆ Copy()

bool CNumberValidator::Copy ( const CNumberValidator val)

Definition at line 81 of file number_validator.cpp.

References m_ErrMsg, m_MaxVal, m_MinVal, m_ValPtr, and val.

Referenced by CNumberValidator().

◆ operator=()

CNumberValidator& CNumberValidator::operator= ( const CNumberValidator )
private

◆ TransferFromWindow()

bool CNumberValidator::TransferFromWindow ( void  )
virtual

Definition at line 121 of file number_validator.cpp.

References CheckValidator(), and m_ValPtr.

◆ TransferToWindow()

bool CNumberValidator::TransferToWindow ( void  )
virtual

Reimplemented in CNumberOrBlankValidator.

Definition at line 105 of file number_validator.cpp.

References CheckValidator(), m_ValPtr, and wxT.

◆ Validate()

bool CNumberValidator::Validate ( wxWindow *  parent)
virtual

Reimplemented in CNumberOrBlankValidator.

Definition at line 136 of file number_validator.cpp.

References CheckValidator(), m_ErrMsg, m_MaxVal, m_MinVal, val, and wxT.

Member Data Documentation

◆ m_ErrMsg

wxString CNumberValidator::m_ErrMsg
protected

◆ m_MaxVal

long CNumberValidator::m_MaxVal
protected

◆ m_MinVal

long CNumberValidator::m_MinVal
protected

◆ m_ValPtr

long* CNumberValidator::m_ValPtr
protected

The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:06 2024 by modify_doxy.py rev. 669887