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

dlgFilesSelector::FilesListValidator Class Reference

A validator for the files' list. More...

List of all members.

Public Member Functions

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

 FilesListValidator (const FilesListValidator &source)
 Copy constructor.

 FilesListValidator (wxArrayString *pValue)
 Constructor.

FilesListValidatoroperator= (const FilesListValidator &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 FilesListValidator &source)
 Clones the source instance in this instance.

wxSortableListViewGetSortableListView () const
 Returns the wxSortableListView associated with the validator.


Protected Attributes

wxArrayString * value
 Adress of the array of strings where the value will be transfered.


Detailed Description

A validator for the files' list.

Checks that the given list of file's names has one or more elements.

If the list is empty, it displays a message.

Definition at line 142 of file dlgFilesSelector.cpp.


Constructor & Destructor Documentation

dlgFilesSelector::FilesListValidator::FilesListValidator wxArrayString *  pValue  ) 
 

Constructor.

Parameters:
pValue Pointer on the array of strings where to value will be transfered.

Definition at line 184 of file dlgFilesSelector.cpp.

References value.

Referenced by FilesListValidator().

dlgFilesSelector::FilesListValidator::FilesListValidator const FilesListValidator source  ) 
 

Copy constructor.

Parameters:
source Source instance.

Definition at line 211 of file dlgFilesSelector.cpp.

References FilesListValidator().


Member Function Documentation

wxObject * dlgFilesSelector::FilesListValidator::Clone  )  const [virtual]
 

Returns a copy of the instance of the validator.

Returns:
A copy of the instance of the validator.

Definition at line 237 of file dlgFilesSelector.cpp.

void dlgFilesSelector::FilesListValidator::clone const FilesListValidator source  )  [protected]
 

Clones the source instance in this instance.

Parameters:
source Source instance.

Definition at line 196 of file dlgFilesSelector.cpp.

References clone(), and value.

Referenced by clone().

wxSortableListView * dlgFilesSelector::FilesListValidator::GetSortableListView  )  const [protected]
 

Returns the wxSortableListView associated with the validator.

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

Definition at line 251 of file dlgFilesSelector.cpp.

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

dlgFilesSelector::FilesListValidator & dlgFilesSelector::FilesListValidator::operator= const FilesListValidator source  ) 
 

Assignment operator.

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

Definition at line 224 of file dlgFilesSelector.cpp.

References operator=().

Referenced by operator=().

bool dlgFilesSelector::FilesListValidator::TransferFromWindow  )  [virtual]
 

Transfers the value in the window to the validator.

Returns:
true on success, false otherwise.

Definition at line 291 of file dlgFilesSelector.cpp.

References GetSortableListView(), and value.

bool dlgFilesSelector::FilesListValidator::TransferToWindow  )  [virtual]
 

Transfers the value associated with the validator to the window.

return true on success, false otherwise.

Definition at line 330 of file dlgFilesSelector.cpp.

References compareFileName(), filesListCmpFnct(), dlgFilesSelector::getID(), GetSortableListView(), and value.

bool dlgFilesSelector::FilesListValidator::Validate wxWindow *  parent  )  [virtual]
 

Validates the value in the associated window.

Parameters:
parent Parent window.

Definition at line 269 of file dlgFilesSelector.cpp.

References GetSortableListView(), and Validate().

Referenced by Validate().


Member Data Documentation

wxArrayString* dlgFilesSelector::FilesListValidator::value [protected]
 

Adress of the array of strings where the value will be transfered.

Definition at line 145 of file dlgFilesSelector.cpp.

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


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