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

wxFileDialogFilterMaker Class Reference

Creates filters for the wxFileDialog class. More...

#include <fdftlmk.hpp>

List of all members.

Public Member Functions

void AddFilter (const wxString &descr, const wxString &filter)
 Adds a filter.

wxString GetFilters (const wxPathFormat format=wxPATH_NATIVE, const bool addFiltersInDescriptions=true) const
 Gets a string that contains the filters for a wxFileDialog instance.

wxFileDialogFilterMakeroperator= (const wxFileDialogFilterMaker &source)
 Assignment operator.

 wxFileDialogFilterMaker (const wxFileDialogFilterMaker &source)
 Copy constructor.

 wxFileDialogFilterMaker ()
 Default constructor.


Protected Member Functions

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


Protected Attributes

wxArrayString descrs
 Descriptions of the files types.

wxArrayString filters
 Filters.


Detailed Description

Creates filters for the wxFileDialog class.

Definition at line 50 of file fdftlmk.hpp.


Constructor & Destructor Documentation

wxFileDialogFilterMaker::wxFileDialogFilterMaker  ) 
 

Default constructor.

Definition at line 56 of file fdftlmk.cpp.

wxFileDialogFilterMaker::wxFileDialogFilterMaker const wxFileDialogFilterMaker source  ) 
 

Copy constructor.

Parameters:
source Source instance.

Definition at line 83 of file fdftlmk.cpp.

References clone().


Member Function Documentation

void wxFileDialogFilterMaker::AddFilter const wxString &  descr,
const wxString &  filter
 

Adds a filter.

Parameters:
descr Description of the filter (ex: "All files").
filter List of extensions without dot, separed with '|'.

Definition at line 110 of file fdftlmk.cpp.

References AddFilter(), descrs, and filters.

Referenced by AddFilter(), getFilterForKnownTypesOfChecksumsFiles(), dlgBatchCreationConf::getFiltersForAddFilesDialog(), dlgFilesSelector::getLastDirectoryAndFilter(), dlgAddMatchFiles::getLastDirectoryAndFilter(), and ChecksumsListView::selectFilesToAdd().

void wxFileDialogFilterMaker::clone const wxFileDialogFilterMaker source  )  [protected]
 

Clones the source instance in this instance.

Parameters:
source Source instance.

Definition at line 67 of file fdftlmk.cpp.

References clone(), descrs, and filters.

Referenced by clone(), operator=(), and wxFileDialogFilterMaker().

wxString wxFileDialogFilterMaker::GetFilters const wxPathFormat  format = wxPATH_NATIVE,
const bool  addFiltersInDescriptions = true
const
 

Gets a string that contains the filters for a wxFileDialog instance.

Parameters:
format Creates filters for this path format. If the file names of this type are case-sensitive, as much as combinaisons with lower and upper cases for the filter name will created (ex: under Unix 'cp' filter will be expanded to: 'cp', 'Cp', 'cP', 'CP').
addFiltersInDescriptions Adds the filters at the end of the description if true (ex: description = 'All the files', filter = 'c|cpp', result = 'All the files (*.c;*.cpp)').
Returns:
A string that contains the filters for a wxFileDialog instance.

Definition at line 135 of file fdftlmk.cpp.

References descrs, filters, GetAllTokenCases(), and GetFilters().

Referenced by dlgFilesSelector::btnAddClick(), dlgFilesSelector::btnAddListClick(), dlgAddMatchFiles::btnAddListClick(), dlgNewFile::btnBrowseClick(), dlgFilesSelector::btnLoadListClick(), dlgAddMatchFiles::btnLoadListClick(), dlgFilesSelector::btnSaveListClick(), dlgAddMatchFiles::btnSaveListClick(), GetFilters(), frmSums::itmFileOpenClick(), frmSums::itmFileSaveAsClick(), and ChecksumsListView::selectFilesToAdd().

wxFileDialogFilterMaker & wxFileDialogFilterMaker::operator= const wxFileDialogFilterMaker source  ) 
 

Assignment operator.

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

Definition at line 96 of file fdftlmk.cpp.

References clone(), and operator=().

Referenced by operator=().


Member Data Documentation

wxArrayString wxFileDialogFilterMaker::descrs [protected]
 

Descriptions of the files types.

Definition at line 53 of file fdftlmk.hpp.

Referenced by AddFilter(), clone(), and GetFilters().

wxArrayString wxFileDialogFilterMaker::filters [protected]
 

Filters.

Definition at line 54 of file fdftlmk.hpp.

Referenced by AddFilter(), clone(), and GetFilters().


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