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

dlgNewFile Class Reference

Dialog for choosing a new file name. More...

#include <dlgNewFile.hpp>

List of all members.

Public Types

enum  FileType { ftSFV = 1, ftMD5 }
 Enumeration of the file types. More...


Public Member Functions

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

 dlgNewFile (wxWindow *parent)
 Creates a new dialog.

 dlgNewFile ()
 Creates a new dialog.

wxString getFileName () const
 Gets the name of the file.

FileType getFileType () const
 Gets the choosen file type.

virtual ~dlgNewFile ()
 The class descructor.


Protected Types

enum  { BTN_BROWSE = wxID_HIGHEST + 1 }
 Controls IDs. More...


Protected Member Functions

void btnBrowseClick (wxCommandEvent &event)
 Processes button Browse.


Protected Attributes

wxString fileName
 Name of the file given by the validator.

wxRadioButton * rbxMD5
 Create an MD5 file.

wxRadioButton * rbxSFV
 Create an SFV file.

wxTextCtrl * txtFileName
 Name of the file.


Detailed Description

Dialog for choosing a new file name.

Definition at line 46 of file dlgNewFile.hpp.


Member Enumeration Documentation

anonymous enum [protected]
 

Controls IDs.

Definition at line 85 of file dlgNewFile.hpp.

enum dlgNewFile::FileType
 

Enumeration of the file types.

Definition at line 62 of file dlgNewFile.hpp.

Referenced by getFileType().


Constructor & Destructor Documentation

dlgNewFile::dlgNewFile  ) 
 

Creates a new dialog.

Definition at line 302 of file dlgNewFile.cpp.

References createControls().

dlgNewFile::dlgNewFile wxWindow *  parent  ) 
 

Creates a new dialog.

Parameters:
parent Parent of the dialog.

Definition at line 314 of file dlgNewFile.cpp.

References createControls().

dlgNewFile::~dlgNewFile  )  [virtual]
 

The class descructor.

Definition at line 401 of file dlgNewFile.cpp.


Member Function Documentation

void dlgNewFile::btnBrowseClick wxCommandEvent &  event  )  [protected]
 

Processes button Browse.

Parameters:
event The event's parameters

Definition at line 412 of file dlgNewFile.cpp.

References btnBrowseClick(), getFileType(), wxFileDialogFilterMaker::GetFilters(), and txtFileName.

Referenced by btnBrowseClick().

void dlgNewFile::createControls  ) 
 

Creates and initializes the controls of the dialog.

Definition at line 331 of file dlgNewFile.cpp.

References CONTROL_SPACE, fileName, AppPrefs::get(), rbxMD5, rbxSFV, AppPrefs::readLong(), AppPrefs::readString(), and txtFileName.

Referenced by dlgNewFile().

wxString dlgNewFile::getFileName  )  const
 

Gets the name of the file.

Returns:
The name of the file.

Definition at line 473 of file dlgNewFile.cpp.

References fileName.

Referenced by frmSums::itmFileNewClick().

dlgNewFile::FileType dlgNewFile::getFileType  )  const
 

Gets the choosen file type.

Returns:
The choosen file type.

Definition at line 458 of file dlgNewFile.cpp.

References FileType, and rbxSFV.

Referenced by btnBrowseClick(), and frmSums::itmFileNewClick().


Member Data Documentation

wxString dlgNewFile::fileName [protected]
 

Name of the file given by the validator.

Definition at line 79 of file dlgNewFile.hpp.

Referenced by createControls(), and getFileName().

wxRadioButton* dlgNewFile::rbxMD5 [protected]
 

Create an MD5 file.

Definition at line 77 of file dlgNewFile.hpp.

Referenced by createControls().

wxRadioButton* dlgNewFile::rbxSFV [protected]
 

Create an SFV file.

Definition at line 76 of file dlgNewFile.hpp.

Referenced by createControls(), and getFileType().

wxTextCtrl* dlgNewFile::txtFileName [protected]
 

Name of the file.

Definition at line 78 of file dlgNewFile.hpp.

Referenced by btnBrowseClick(), and createControls().


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