Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

CP_XMLFileToResource_Application Class Reference

Application class for the XML file to XML resource tool.

List of all members.

Public Member Functions

Constructor / Destructor
 CP_XMLFileToResource_Application ()
 Constructor.
virtual ~CP_XMLFileToResource_Application () throw ()
 Destructor.

Protected Member Functions

Events
virtual void HandleOpenApplication ()

Protected Attributes

CPLAT::CP_Window * fAskUserWindow
CPLAT::CP_String fResourceName
UInt32 fResourceID
CPLAT::CP_FileSystemSpec fSelectedXMLFile
CPLAT::CP_FileSystemSpec fMacRFile
CPLAT::CP_FileSystemSpec fLinuxRFile
CPLAT::CP_Window * fProgressWindow

Private Types

typedef CPLAT::CP_Application<
CPLAT::CP_DocumentPolicy_None,
CPLAT::CP_PrintPolicy_None,
CPLAT::CP_UndoPolicy_None > 
inherited

Private Member Functions

AskUser
void AskUserForLocations ()
Conversion
void HandleConversion (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo)
void HandleCancel (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo)
Navigation System Dialogs
void AskForXMLSourceFile (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo)
void HandleGetXMLSourceFileDialogResult (CPLAT::CP_FileSystemDialogs_Base *inSendingDialog, const CPLAT::CP_FileSystemSpec &inSelection, bool inOverwrite)
void AskForMacRFileName (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo)
void HandleGetMacRFileDialogResult (CPLAT::CP_FileSystemDialogs_Base *inSendingDialog, const CPLAT::CP_FileSystemSpec &inSelection, bool inOverwrite)
void AskForLinuxRFileName (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo)
void HandleGetLinuxRFileDialogResult (CPLAT::CP_FileSystemDialogs_Base *inSendingDialog, const CPLAT::CP_FileSystemSpec &inSelection, bool inOverwrite)
Resource File
void ProcessFile (const CPLAT::CP_FileSystemSpec &inSpec)
void WriteMacRDataToResource (CPLAT::CP_HandleBlock &inData)
void WriteLinuxRDataToResource (CPLAT::CP_HandleBlock &inData)
Utility
void DisplayProgress (CPLAT::CP_Window *inParentWindow)
void CloseProgress ()


Member Typedef Documentation

typedef CPLAT::CP_Application<CPLAT::CP_DocumentPolicy_None, CPLAT::CP_PrintPolicy_None, CPLAT::CP_UndoPolicy_None> CP_XMLFileToResource_Application::inherited [private]
 


Constructor & Destructor Documentation

CP_XMLFileToResource_Application::CP_XMLFileToResource_Application  ) 
 

Constructor.

Exceptions:
none 

CP_XMLFileToResource_Application::~CP_XMLFileToResource_Application  )  throw () [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

void CP_XMLFileToResource_Application::HandleOpenApplication  )  [protected, virtual]
 

Called when the application first starts up.

Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::AskUserForLocations  )  [private]
 

Main user interaction portion of tool to create the main window allowing the user to select the source XML file, and corresponding .r files to create.

Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::HandleConversion CPLAT::OSStatus &  inOutStatus,
CPLAT::CP_CommandNo inCommandNo
[private]
 

Called when the user clicks on the Convert button. This will perform the actual conversion of the source XML file into .r files.

Parameters:
inOutStatus Not used.
inCommandNo Not used.
Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::HandleCancel CPLAT::OSStatus &  inOutStatus,
CPLAT::CP_CommandNo inCommandNo
[private]
 

Called when the user clicks on the Cancel button. This will Quit the appliction, without performing any conversion.

Parameters:
inOutStatus Not used.
inCommandNo Not used.
Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::AskForXMLSourceFile CPLAT::OSStatus &  inOutStatus,
CPLAT::CP_CommandNo inCommandNo
[private]
 

Called when the user clicks on the Choose button to select the source XML file to be processed.

Parameters:
inOutStatus Not used.
inCommandNo Not used.
Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::HandleGetXMLSourceFileDialogResult CPLAT::CP_FileSystemDialogs_Base *  inSendingDialog,
const CPLAT::CP_FileSystemSpec &  inSelection,
bool  inOverwrite
[private]
 

Called when the user selects a file to be used as the source XML file.

Parameters:
inSendingDialog Not used.
inSelection The selected file that contains the XML file to be used in the conversion.
inOverwrite Not used.
Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::AskForMacRFileName CPLAT::OSStatus &  inOutStatus,
CPLAT::CP_CommandNo inCommandNo
[private]
 

Called when the user clicks on the Choose button to select the output file to write the MacOS .r file.

Parameters:
inOutStatus Not used.
inCommandNo Not used.
Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::HandleGetMacRFileDialogResult CPLAT::CP_FileSystemDialogs_Base *  inSendingDialog,
const CPLAT::CP_FileSystemSpec &  inSelection,
bool  inOverwrite
[private]
 

Called when the user selects the output MacOS .r file to be written out.

Parameters:
inSendingDialog Not used.
inSelection The selected file that contains the XML file to be used in the conversion.
inOverwrite Flag to indicate if an existing file with the same name should be overwritten.
Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::AskForLinuxRFileName CPLAT::OSStatus &  inOutStatus,
CPLAT::CP_CommandNo inCommandNo
[private]
 

Called when the user clicks on the Choose button to select the output file to write the Linux .r file.

Parameters:
inOutStatus Not used.
inCommandNo Not used.
Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::HandleGetLinuxRFileDialogResult CPLAT::CP_FileSystemDialogs_Base *  inSendingDialog,
const CPLAT::CP_FileSystemSpec &  inSelection,
bool  inOverwrite
[private]
 

Called when the user selects the output Linux .r file to be written out.

Parameters:
inSendingDialog Not used.
inSelection The selected file that contains the XML file to be used in the conversion.
inOverwrite Flag to indicate if an existing file with the same name should be overwritten.
Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::ProcessFile const CPLAT::CP_FileSystemSpec &  inSpec  )  [private]
 

Perform the actual conversion, based on the users selections.

Parameters:
inSpec The input XML source file to process.
Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::WriteMacRDataToResource CPLAT::CP_HandleBlock inData  )  [private]
 

Write the data in the passed in CP_HandleBlock to the MacOS .r output file.

Parameters:
inData CP_HandleBlock that contains the source XML data.
Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::WriteLinuxRDataToResource CPLAT::CP_HandleBlock inData  )  [private]
 

Write the data in the passed in CP_HandleBlock to the Linux .r output file.

Parameters:
inData CP_HandleBlock that contains the source XML data.
Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::DisplayProgress CPLAT::CP_Window *  inParentWindow  )  [private]
 

Displays a progress dialog during the conversion process.

Parameters:
inParentWindow Not used.
Exceptions:
none 
Returns:
void

void CP_XMLFileToResource_Application::CloseProgress  )  [private]
 

Closses and deletes the progress dialog window.

Parameters:
inParentWindow Not used.
Exceptions:
none 
Returns:
void


Member Data Documentation

CPLAT::CP_Window* CP_XMLFileToResource_Application::fAskUserWindow [protected]
 

CPLAT::CP_String CP_XMLFileToResource_Application::fResourceName [protected]
 

The main window that contains the UI to get the file names from the user.

UInt32 CP_XMLFileToResource_Application::fResourceID [protected]
 

Name of the output resource.

CPLAT::CP_FileSystemSpec CP_XMLFileToResource_Application::fSelectedXMLFile [protected]
 

Resource ID of the output resource.

CPLAT::CP_FileSystemSpec CP_XMLFileToResource_Application::fMacRFile [protected]
 

The source XML file.

CPLAT::CP_FileSystemSpec CP_XMLFileToResource_Application::fLinuxRFile [protected]
 

The file to write the XML data, for use in a MacOS .r file.

CPLAT::CP_Window* CP_XMLFileToResource_Application::fProgressWindow [protected]
 

The file to write the XML data, for use in a Linux .r file.


The documentation for this class was generated from the following files:
Generated on Tue Sep 20 20:30:10 2005 for CPLAT_MacOS by  doxygen 1.4.0