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 () |
|
|
|
Constructor.
|
|
Destructor.
|
|
Called when the application first starts up.
|
|
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.
|
|
Called when the user clicks on the Convert button. This will perform the actual conversion of the source XML file into .r files.
|
|
Called when the user clicks on the Cancel button. This will Quit the appliction, without performing any conversion.
|
|
Called when the user clicks on the Choose button to select the source XML file to be processed.
|
|
Called when the user selects a file to be used as the source XML file.
|
|
Called when the user clicks on the Choose button to select the output file to write the MacOS .r file.
|
|
Called when the user selects the output MacOS .r file to be written out.
|
|
Called when the user clicks on the Choose button to select the output file to write the Linux .r file.
|
|
Called when the user selects the output Linux .r file to be written out.
|
|
Perform the actual conversion, based on the users selections.
|
|
Write the data in the passed in CP_HandleBlock to the MacOS .r output file.
|
|
Write the data in the passed in CP_HandleBlock to the Linux .r output file.
|
|
Displays a progress dialog during the conversion process.
|
|
Closses and deletes the progress dialog window.
|
|
|
|
The main window that contains the UI to get the file names from the user. |
|
Name of the output resource. |
|
Resource ID of the output resource. |
|
The source XML file. |
|
The file to write the XML data, for use in a MacOS .r file. |
|
The file to write the XML data, for use in a Linux .r file. |