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

dlgAddMatchFiles::PatternsListValidator Class Reference

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

Collaboration diagram for dlgAddMatchFiles::PatternsListValidator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

PatternsListValidatoroperator= (const PatternsListValidator &source)
 Assignment operator.

 PatternsListValidator (const PatternsListValidator &source)
 Copy constructor.

 PatternsListValidator (ArrayMatchPattern *pValue)
 Constructor.

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 PatternsListValidator &source)
 Clones the source instance in this instance.

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


Protected Attributes

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


Detailed Description

A validator for the patterns' list.

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

If the list is empty, display a message.

Definition at line 639 of file dlgAddMatchFiles.cpp.


Constructor & Destructor Documentation

dlgAddMatchFiles::PatternsListValidator::PatternsListValidator ArrayMatchPattern pValue  ) 
 

Constructor.

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

Definition at line 681 of file dlgAddMatchFiles.cpp.

Referenced by PatternsListValidator().

dlgAddMatchFiles::PatternsListValidator::PatternsListValidator const PatternsListValidator source  ) 
 

Copy constructor.

Parameters:
source Source instance.

Definition at line 708 of file dlgAddMatchFiles.cpp.

References PatternsListValidator().


Member Function Documentation

wxObject * dlgAddMatchFiles::PatternsListValidator::Clone  )  const [virtual]
 

Returns a copy of the instance of the validator.

Returns:
A copy of the instance of the validator.

Definition at line 734 of file dlgAddMatchFiles.cpp.

void dlgAddMatchFiles::PatternsListValidator::clone const PatternsListValidator source  )  [protected]
 

Clones the source instance in this instance.

Parameters:
source Source instance.

Definition at line 693 of file dlgAddMatchFiles.cpp.

References clone(), and value.

Referenced by clone().

wxSortableListView * dlgAddMatchFiles::PatternsListValidator::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 748 of file dlgAddMatchFiles.cpp.

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

dlgAddMatchFiles::PatternsListValidator & dlgAddMatchFiles::PatternsListValidator::operator= const PatternsListValidator source  ) 
 

Assignment operator.

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

Definition at line 721 of file dlgAddMatchFiles.cpp.

References operator=().

Referenced by operator=().

bool dlgAddMatchFiles::PatternsListValidator::TransferFromWindow  )  [virtual]
 

Transfers the value in the window to the validator.

Returns:
true on success, false otherwise.

Definition at line 788 of file dlgAddMatchFiles.cpp.

References dlgAddMatchFiles::ArrayMatchPattern::add(), GetSortableListView(), and value.

bool dlgAddMatchFiles::PatternsListValidator::TransferToWindow  )  [virtual]
 

Transfers the value associated with the validator to the window.

return true on success, false otherwise.

Definition at line 829 of file dlgAddMatchFiles.cpp.

References dlgAddMatchFiles::ArrayMatchPattern::getCount(), dlgAddMatchFiles::MatchPattern::getDepth(), dlgAddMatchFiles::MatchPattern::getDirectory(), dlgAddMatchFiles::getID(), dlgAddMatchFiles::MatchPattern::getPattern(), GetSortableListView(), dlgAddMatchFiles::ArrayMatchPattern::item(), patternsListCmpFnct(), dlgAddMatchFiles::MatchPattern::setDepth(), dlgAddMatchFiles::MatchPattern::setDirectory(), dlgAddMatchFiles::MatchPattern::setPattern(), and value.

bool dlgAddMatchFiles::PatternsListValidator::Validate wxWindow *  parent  )  [virtual]
 

Validates the value in the associated window.

Parameters:
parent Parent window.

Definition at line 766 of file dlgAddMatchFiles.cpp.

References GetSortableListView(), and Validate().

Referenced by Validate().


Member Data Documentation

ArrayMatchPattern* dlgAddMatchFiles::PatternsListValidator::value [protected]
 

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

Definition at line 642 of file dlgAddMatchFiles.cpp.

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


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