Public Member Functions | |
Constructor / Destructor | |
CP_XibToXML_Application () | |
Constructor. | |
virtual | ~CP_XibToXML_Application () throw () |
Destructor. | |
Protected Member Functions | |
Commands | |
virtual void | HandleOpenApplication () |
Protected Attributes | |
CPLAT::CP_FileSystemSpec | fDestinationDirectory |
CPLAT::CP_FileSystemSpec | fNibSpec |
CP_NibNameToRef_Map | fNibNameToRefMap |
CPLAT::CP_Window * | fAskUserWindow |
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 () |
Navigation Dialogs | |
void | HandleGetOutputDirectory (CPLAT::CP_FileSystemDialogs_Base *inSendingDialog, const CPLAT::CP_FileSystemSpec &inSelection, bool inOverwrite) |
void | HandleGetNibsDirectory (CPLAT::CP_FileSystemDialogs_Base *inSendingDialog, const CPLAT::CP_FileSystemSpec &inSelection, bool inOverwrite) |
Nib Conversion | |
void | HandleNibConversion (CPLAT::CP_FileSystemSpec &inFileSpec) |
void | FindIBCarbonWindowNode (CPLAT::CP_XMLDocNode *inParentNode) |
void | ConvertWindowsInNib (CPLAT::CP_FileSystemSpec &inNibSpec) |
Slots | |
void | AskForDestinationDirectory (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo) |
void | AskForDestinationNib (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo) |
void | HandleConversion (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo) |
void | HandleCancel (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo) |
Writing | |
void | CreateXMLWriter (const CPLAT::CP_FileSystemSpec &inFileSpec, CPLAT::CP_XMLWriter_Element **inOutRootElement, CPLAT::CP_XMLWriter_Element **inOutParentElement) |
void | WriteXMLToFile (CPLAT::CP_XMLWriter_Element *inRootElement, const CPLAT::CP_FileSystemSpec &inFileSpec) |
Utility | |
CPLAT::CP_FileSystemSpec | FindNibDirectory (CPLAT::CP_CFBundle &inBundle, CPLAT::CP_String &inOutName) |
void | BuildNibNameMap (CPLAT::CP_XMLDocNode *inRootNode) |
CPLAT::CP_String | FindWindowRefFromRefID (CPLAT::CP_String &inRefID) |
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 Nib, and corresponding output directory.
|
|
Called when the user selects a directory from the get directory dialog to select the output directory.
|
|
Called when the user selects a nib file from the get file dialog to select the nib file to convert.
|
|
This is called from the choose directory callback when the user is asked to select a directory that containns the nib to be converted. This will go through each nib, and convert the windows located in the nibs.
|
|
Finds the XML node that contains the definition of the IBCarbonWindow, which is the parent node of the window and its subview descriptions.
|
|
Converts the windows found in the nib file from the passed in file spec.
|
|
Ask the user for the output directory, where the files will be written to.
|
|
Ask the user for the nib file to convert.
|
|
Routine to handle conversion of the nib file once the user has selected the nib and output directory, and selected convert from the main window.
|
|
Called when the user selects cancel from the main window, this will quit the application.
|
|
Creates the XMLWriter and root elements to write out our data.
|
|
|
|
Return a file system spec object for the nib directory in the passed in CFBundle object.
|
|
Builds the name map that corresponds to the name of objects and their id in the nib file.
|
|
Returns a window reference string from the passed in reference id.
|
|
Displays a progress dialog during the conversion process.
|
|
Closses and deletes the progress dialog window.
|
|
|
|
The directory to write the xml file out to. |
|
|
|
A map that contains a reference between the window names and the data in the Interface Builder xib file. |
|
|