Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

dlgNewFile::FileNameValidator Class Reference

A validator for the file name. More...

List of all members.

Public Member Functions

virtual wxObject * Clone () const
 Returns a copy of the instance of the validator.

 FileNameValidator (const FileNameValidator &source)
 Copy constructor.

 FileNameValidator (wxString *pValue)
 Constructor.

FileNameValidatoroperator= (const FileNameValidator &source)
 Assignment operator.

virtual bool TransferFromWindow ()
 Transfers the value in the window to the validator.

virtual bool TransferToWindow ()
 Transfers the value associated with the validator to the window.

virtual bool Validate (wxWindow *parent)
 Validates the value in the associated window.


Protected Member Functions

void clone (const FileNameValidator &source)
 Clones the source instance in this instance.

wxTextCtrl * GetTextCtrl () const
 Returns the wxTextCtrl associated with the validator.


Protected Attributes

wxString * value
 Adress of the string where the value will be transfered.


Detailed Description

A validator for the file name.

Checks that the given file name has an absolute path and that the path exists.

If the file already exists, ask for overwriting.

Definition at line 69 of file dlgNewFile.cpp.


Constructor & Destructor Documentation

dlgNewFile::FileNameValidator::FileNameValidator wxString *  pValue  ) 
 

Constructor.

Parameters:
pValue Pointer on a string where to value will be transfered.

Definition at line 110 of file dlgNewFile.cpp.

References value.

Referenced by FileNameValidator().

dlgNewFile::FileNameValidator::FileNameValidator const FileNameValidator source  ) 
 

Copy constructor.

Parameters:
source Source instance.

Definition at line 137 of file dlgNewFile.cpp.

References FileNameValidator().


Member Function Documentation

wxObject * dlgNewFile::FileNameValidator::Clone  )  const [virtual]
 

Returns a copy of the instance of the validator.

Returns:
A copy of the instance of the validator.

Definition at line 163 of file dlgNewFile.cpp.

void dlgNewFile::FileNameValidator::clone const FileNameValidator source  )  [protected]
 

Clones the source instance in this instance.

Parameters:
source Source instance.

Definition at line 122 of file dlgNewFile.cpp.

References clone(), and value.

Referenced by clone().

wxTextCtrl * dlgNewFile::FileNameValidator::GetTextCtrl  )  const [protected]
 

Returns the wxTextCtrl associated with the validator.

Returns:
The wxTextCtrl associated with the validator or NULL if the wxTextCtrl associated with the validator isn't a wxTextCtrl.

Definition at line 177 of file dlgNewFile.cpp.

Referenced by TransferFromWindow(), TransferToWindow(), and Validate().

dlgNewFile::FileNameValidator & dlgNewFile::FileNameValidator::operator= const FileNameValidator source  ) 
 

Assignment operator.

Parameters:
source Source instance.
Returns:
A reference on the instance.

Definition at line 150 of file dlgNewFile.cpp.

References operator=().

Referenced by operator=().

bool dlgNewFile::FileNameValidator::TransferFromWindow  )  [virtual]
 

Transfers the value in the window to the validator.

Returns:
true on success, false otherwise.

Definition at line 258 of file dlgNewFile.cpp.

References GetTextCtrl(), and value.

bool dlgNewFile::FileNameValidator::TransferToWindow  )  [virtual]
 

Transfers the value associated with the validator to the window.

return true on success, false otherwise.

Definition at line 277 of file dlgNewFile.cpp.

References GetTextCtrl(), and value.

bool dlgNewFile::FileNameValidator::Validate wxWindow *  parent  )  [virtual]
 

Validates the value in the associated window.

Parameters:
parent Parent window.

Definition at line 195 of file dlgNewFile.cpp.

References GetTextCtrl(), and Validate().

Referenced by Validate().


Member Data Documentation

wxString* dlgNewFile::FileNameValidator::value [protected]
 

Adress of the string where the value will be transfered.

Definition at line 72 of file dlgNewFile.cpp.

Referenced by clone(), FileNameValidator(), TransferFromWindow(), and TransferToWindow().


The documentation for this class was generated from the following file:
Generated on Sun May 30 13:38:05 2004 for wxChecksums by doxygen 1.3.7