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

dlgBatchCreationConf Class Reference

Dialog for choosing files from which a checksums' file will be create for each of them. More...

#include <dlgBatchCreateConf.hpp>

Inheritance diagram for dlgBatchCreationConf:

Inheritance graph
[legend]
Collaboration diagram for dlgBatchCreationConf:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void createControls ()
 Creates and initializes the controls of the dialog.

 dlgBatchCreationConf (wxWindow *parent)
 Creates a new dialog.

 dlgBatchCreationConf ()
 Creates a new dialog.

wxArrayInt getChecksumsFileTypeToCreate () const
 Gets the types of the checksums' file to create.

dlgBatchCreation::Options getOptions () const
 Gets the options for dlgBatchCreation.

virtual wxString getRootConfigKey ()
 Gets the root configuration key for parameters of this dialog.

virtual void initialize ()
 Initializes the dialog.

virtual ~dlgBatchCreationConf ()
 The class descructor.


Protected Types

enum  { BTN_OPTIONS = DLG_FILESSELECTOR_ID_HIGHEST + 1 }
 Controls IDs. More...


Protected Member Functions

void btnOKClick (wxCommandEvent &event)
 Processes button OK.

void btnOptionsClick (wxCommandEvent &event)
 Processes button Options.

wxString getCkFileTypeCreateConfigKey (const int sumFileType)
 Gets the configuration key for the values of the checksums' files types check boxes.

virtual wxFileDialogFilterMaker getFiltersForAddFilesDialog ()
 Returns a set of filters for the "Add files" dialog.

virtual wxString getUIString (UIStrings id)
 Gets the string for the specified UI element.

 WX_DEFINE_ARRAY (wxCheckBox *, ArrayCheckBox)
 Array of check boxes.


Protected Attributes

wxButton * btnOptions
 Button for editings options.

ArrayCheckBox chkCkFileTypes
 Checkbox for select the type of checksums' file to create.

wxArrayInt ckFileTypes
 Checksums' file types to create.

dlgBatchCreation::Options options
 Options for dlgBatchCreation.


Detailed Description

Dialog for choosing files from which a checksums' file will be create for each of them.

Definition at line 51 of file dlgBatchCreateConf.hpp.


Member Enumeration Documentation

anonymous enum [protected]
 

Controls IDs.

Definition at line 85 of file dlgBatchCreateConf.hpp.


Constructor & Destructor Documentation

dlgBatchCreationConf::dlgBatchCreationConf  ) 
 

Creates a new dialog.

Definition at line 253 of file dlgBatchCreateConf.cpp.

dlgBatchCreationConf::dlgBatchCreationConf wxWindow *  parent  ) 
 

Creates a new dialog.

Parameters:
parent Parent of the dialog.

Definition at line 264 of file dlgBatchCreateConf.cpp.

dlgBatchCreationConf::~dlgBatchCreationConf  )  [virtual]
 

The class descructor.

Definition at line 355 of file dlgBatchCreateConf.cpp.


Member Function Documentation

void dlgBatchCreationConf::btnOKClick wxCommandEvent &  event  )  [protected]
 

Processes button OK.

Parameters:
event The event's parameters

Reimplemented from dlgFilesSelector.

Definition at line 380 of file dlgBatchCreateConf.cpp.

References btnOKClick(), chkCkFileTypes, ckFileTypes, getCkFileTypeCreateConfigKey(), and SumFileFactory::getSumFilesCount().

Referenced by btnOKClick().

void dlgBatchCreationConf::btnOptionsClick wxCommandEvent &  event  )  [protected]
 

Processes button Options.

Parameters:
event The event's parameters

Definition at line 366 of file dlgBatchCreateConf.cpp.

References btnOptionsClick(), dlgBatchCreationConfOptions::getOptions(), and options.

Referenced by btnOptionsClick().

void dlgBatchCreationConf::createControls  ) 
 

Creates and initializes the controls of the dialog.

Reimplemented from dlgFilesSelector.

Definition at line 305 of file dlgBatchCreateConf.cpp.

References btnOptions, chkCkFileTypes, CONTROL_SPACE, getCkFileTypeCreateConfigKey(), and SumFileFactory::getSumFilesCount().

Referenced by initialize().

wxArrayInt dlgBatchCreationConf::getChecksumsFileTypeToCreate  )  const
 

Gets the types of the checksums' file to create.

Returns:
The types of the checksums' file to create.

Definition at line 406 of file dlgBatchCreateConf.cpp.

References ckFileTypes.

Referenced by frmSums::itmToolsBatchCreationClick().

wxString dlgBatchCreationConf::getCkFileTypeCreateConfigKey const int  sumFileType  )  [protected]
 

Gets the configuration key for the values of the checksums' files types check boxes.

Parameters:
sumFileType Type of the checksums' file of which the caller want the configuration key. Should be a value of the SumFileFactory::SumFileType enumeration.
Returns:
The configuration key for the values of the checksums' files types check boxes or an empty string if sumFileType has an invalid value.

Definition at line 450 of file dlgBatchCreateConf.cpp.

References getCkFileTypeCreateConfigKey(), getRootConfigKey(), and SumFileFactory::getSumFilesCount().

Referenced by btnOKClick(), createControls(), and getCkFileTypeCreateConfigKey().

wxFileDialogFilterMaker dlgBatchCreationConf::getFiltersForAddFilesDialog  )  [protected, virtual]
 

Returns a set of filters for the "Add files" dialog.

Returns:
A set of filters for the "Add files" dialog.

Implements dlgFilesSelector.

Definition at line 500 of file dlgBatchCreateConf.cpp.

References wxFileDialogFilterMaker::AddFilter().

dlgBatchCreation::Options dlgBatchCreationConf::getOptions  )  const
 

Gets the options for dlgBatchCreation.

Returns:
The options for dlgBatchCreation.

Definition at line 418 of file dlgBatchCreateConf.cpp.

References options.

Referenced by frmSums::itmToolsBatchCreationClick().

wxString dlgBatchCreationConf::getRootConfigKey  )  [virtual]
 

Gets the root configuration key for parameters of this dialog.

The returned string must be ended the a '/' character.

Returns:
The root configuration key for parameters of this dialog.

Implements dlgFilesSelector.

Definition at line 432 of file dlgBatchCreateConf.cpp.

Referenced by getCkFileTypeCreateConfigKey().

wxString dlgBatchCreationConf::getUIString UIStrings  id  )  [protected, virtual]
 

Gets the string for the specified UI element.

Parameters:
id Identifier of the wanted UI element.
Returns:
The string for the specified UI element and an empty string if the given UI element is invalid.

Implements dlgFilesSelector.

Definition at line 467 of file dlgBatchCreateConf.cpp.

References getUIString().

Referenced by getUIString().

void dlgBatchCreationConf::initialize  )  [virtual]
 

Initializes the dialog.

If you derivate this method, please call the one of the parent class before doing anything.

Reimplemented from dlgFilesSelector.

Definition at line 277 of file dlgBatchCreateConf.cpp.

References createControls(), dlgFilesSelector::initialize(), and options.

Referenced by frmSums::itmToolsBatchCreationClick().

dlgBatchCreationConf::WX_DEFINE_ARRAY wxCheckBox *  ,
ArrayCheckBox 
[protected]
 

Array of check boxes.


Member Data Documentation

wxButton* dlgBatchCreationConf::btnOptions [protected]
 

Button for editings options.

Definition at line 74 of file dlgBatchCreateConf.hpp.

Referenced by createControls().

ArrayCheckBox dlgBatchCreationConf::chkCkFileTypes [protected]
 

Checkbox for select the type of checksums' file to create.

Definition at line 75 of file dlgBatchCreateConf.hpp.

Referenced by btnOKClick(), and createControls().

wxArrayInt dlgBatchCreationConf::ckFileTypes [protected]
 

Checksums' file types to create.

Definition at line 76 of file dlgBatchCreateConf.hpp.

Referenced by btnOKClick(), and getChecksumsFileTypeToCreate().

dlgBatchCreation::Options dlgBatchCreationConf::options [protected]
 

Options for dlgBatchCreation.

Definition at line 77 of file dlgBatchCreateConf.hpp.

Referenced by btnOptionsClick(), getOptions(), and initialize().


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