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 |
typedef std::map< UInt32, const CP_String, std::less< UInt32 > > | CP_CustomControlToCPLATClass_Map |
typedef std::map< UInt32, const CP_String, std::less< UInt32 > >::iterator | CP_CustomControlToCPLATClass_Iterator |
typedef std::pair< const UInt32, const CP_String > | CP_CustomControlToCPLATClass_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.
|
|
Called when we need to convert a static text control.
|
|
Called when we need to convert a tab view control. This will also create a separate view for each tab panels content area view.
|
|
Writes the tab items.
|
|
Writes a single tab item out. This is called from the WriteTabItems once for each tab.
|
|
Called to write out the views that are contained on one of the tabs. This will write all of the items in this tab out to a separate file that contains a parent view, and all of the subviews in the tabs content area.
|
|
Ask the user to select a file name.
|
|
|
|
Called when we need to convert a text view control.
|
|
Called when we need to convert a user pane control.
|
|
Called when we need to convert a custom control. The custom control is used to create CPLAT views for any view that Interface Builder does not support.
|
|
Called when a custom control is used to represent a CP_LittleArrowsBuddy object. The custom control id is: LABD
|
|
Called when a custom control is used to represent a CP_OpenGL object. The custom control id is: OPGL
|
|
Called when a custom control is used to represent a CP_Placard object. The custom control id is: PLAC
|
|
Called when a custom control is used to represent a kCP_ClassName_QuickTimeMovieView object. The custom control id is: QTMV
|
|
Called when a custom control is used to represent a CP_SelectColorButton object. The custom control id is: SELB
|
|
Called when a custom control is used to represent a CP_ScrollableView object. The custom control id is: SCVI
|
|
Called when a custom control is used to represent a CP_Scroller object. The custom control id is: SCRL
|
|
Called when a custom control is used to represent a CP_Splitter object. The custom control id is: SPLT
|
|
Called when a custom control is used to represent a CP_TableView object. The custom control id is: TBVI
|
|
Called when a custom control is used to represent a CP_TableView object. The custom control id is: TVDB
|
|
Called when a custom control is used to represent a CP_Toolbar object. The custom control id is: TOLB
|
|
Called when a custom control is used to represent a CP_View object. The custom control id is: TVDB
|
|
Called when a custom control is used to represent a CP_WindowHeader object. The custom control id is: WINH
|
|
Called when a custom control is used to represent a CP_WindowListHeader object. The custom control id is: WILH
|
|
Seach the passed in node, and return a node if it finds one that represents a menu definition. If no menu definition is found, then NULL is returned.
|
|
Writes out a menu.
|
|
Writes out the individual items in the menu.
|
|
Writes out a single menu item. This is called from the WriteMenuItems to write out a single menu item.
|
|
|
|
Check if the window properties has a dictionary frame properties node with the value kCP_IB_CPLAT_CP_WindowProperty indicating that we want to create a CP_Window instead of a CP_DocumentWindow when the window class is of type document from Interface Builder windows.
|
|
|