Defines | |
| #define | CP_RegisterIBClassConverter(inClassName, inConverterFunction) CPLAT::CP_IBClassToCPXML::Instance()->RegisterIBClassToXMLConverter( inClassName, inConverterFunction ) |
| #define | CP_RegisterCustomControlID(inCustomID, inClassName) CPLAT::CP_IBClassToCPXML::Instance()->RegisterCustomControlToCPLATClassName( inCustomID, inClassName ) |
Typedefs | |
| typedef std::map< CP_String, IBClassToXMLConverterCallback, std::less< CP_String > > | CP_IBClassToXMLWriter_Map |
| typedef std::map< CP_String, IBClassToXMLConverterCallback, std::less< CP_String > >::iterator | CP_IBClassToXMLWriter_Iterator |
| typedef std::pair< const CP_String, IBClassToXMLConverterCallback > | CP_IBClassToXMLWriter_Entry |
Functions | |
| void | RegisterKnownIBClasses () |
| void | WriteStandardControlFields (CP_XMLDocNode *inParentNode, CP_XMLWriter_Element *inWidgetElement, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassWindowToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassBevelButtonToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassChasingArrowsToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassCheckBoxToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassClockDateToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassComboBoxToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassDisclosureTriangleToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassEditFieldToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassGroupBoxToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassIconControlToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassImageWellToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassLittleArrowsToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassPictureControlToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassProgressToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassPopupArrowToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassPopupMenuToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassPushButtonToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassRadioButtonToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassRadioGroupToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassRelevanceBarToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassRoundButtonToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassSeparatorToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassScrollBarToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassSliderToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassStaticTextToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassTabViewToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | WriteTabItems (CP_XMLDocNode *inParentNode, CP_XMLWriter_Element *inWidgetElement, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement) |
| void | WriteTabItem (CP_XMLDocNode *inParentNode, CP_XMLWriter_Element *inWidgetElement, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement) |
| void | HandleTabSubViewSection (CP_XMLDocNode *inSubviewsParentNode, CP_Rect &inTabViewBounds) |
| CP_String | AskUserForViewFileName (const CP_String &inDefaultName, SInt16 inTabNumber) |
| void | HandleDismiss (CP_DataValueHolder &inValue, OSStatus &inOutStatus) |
| void | IBClassTextViewToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassUserPaneViewToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | IBClassCustomControlToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_LittleArrowsBuddyToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_OpenGLToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_PlacardToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_QuickTimeMovieViewToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_SelectColorButtonToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_ScrollableViewToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_ScrollerToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_SplitterToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_TableViewToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_TVDataBrowserToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_ToolbarToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_ViewToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_WindowHeaderToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| void | CPCustomControl_WindowListHeaderToXML (CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
| CP_XMLDocNode * | FindOptionalMenuItems (CP_XMLDocNode *inParentNode) |
| void | WriteMenu (CP_XMLDocNode *inParentNode, CP_XMLWriter_Element *inWidgetElement, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement) |
| void | WriteMenuItems (CP_XMLDocNode *inParentNode, CP_XMLWriter_Element *inWidgetElement, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement) |
| void | WriteMenuItem (CP_XMLDocNode *inParentNode, CP_XMLWriter_Element *inWidgetElement, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement) |
| bool | IBHasDictionaryNode (CP_XMLDocNode *inParentNode) |
| bool | IBHasCPWNFrameParameter (CP_XMLDocNode *inDictionaryNode) |
Variables | |
| CPLAT_Begin_Namespace_CPLAT typedef void(* | IBClassToXMLConverterCallback )(CP_XMLDocNode *inParentNode, const CP_String &inIBClassName, CP_XMLWriter *inXMLWriter, CP_XMLWriter_Element *inParentElement, CP_Rect &inOutBounds, bool &inOutInPortBounds) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Registers the known classes that Interfacce Builder supports and their CPLAT equivalent, and our custom controls.
|
|
||||||||||||||||||||||||||||
|
Outputs the common fields for all CPLAT classes, these include the location and size of the controls. Also the values, text, and visible or enabled status. This is called from all of the classes to write the common fields for all controls.
|
|
||||||||||||||||||||||||||||
|
Called when a window node is encountered. Note: If you are using a document window class, then a CP_DocumentWindow will be created. For all other window classes, a CP_Window object is created. If you need to have the document window class create a CP_Window, then add a custom window attribute in Interface Builder. The name needs to be "CPWN", the value and type don't matter, we only check if that property is there.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a bevel button.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a chasing arrows control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a check box control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a clock / date control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a combo box control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a disclosure triangle control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a edit field control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a group box control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a icon control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a image well control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a little arrows control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a picture control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a progress control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a popup arrows control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a popup menu control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a push button control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a radio button control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a radio group control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a relevance control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a round button control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a separator control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a scroll bar control.
|
|
||||||||||||||||||||||||||||
|
Called when we need to convert a slider control.
|
|