Object Attribute Manager Dialog: Serialization Hooks Bug Number: n/a Release notes (y/n): no For Release Nums: 6.6 Added serialization hooks for Neil's development of Object Attribute Set XML export and import. See screenshot: http://cadswes2.colorado.edu/~philw/2014/ObjAttribs/devImages/ExpImpMenuItems.png These two menu items are now available: File >> Export Attribute Set ... File >> Import Attribute Set ... The Export operation: (1) Shows a file dialog to allow the user to specify a file path, preselected with a recent file or directory. (2) Converts the Object Attribute Set being edited to an XML string. (3) Writes that XML string to the specified file path. The Import operation: (1) Shows a file dialog to allow the user to specify a file path, preselected with a recent file or directory. (2) Reads the file context (which is supposed to be an Object Attribute Set XML serialization). (3) Causes the Object Attribute Set being edited to set its value from the XML string Updates the dialog GUI content from that Object Attribute Set. This is currently coded using these two [Sim] ObjAttributeSet STUBS: QString ObjAttribSet::toXml (bool includeComments) const { // *** NOT YET IMPLEMENTED *** return ("Object Attribute Set serialization is not implemented."); } okstat ObjAttribSet::loadFromXml (const QString& xmlStr) { // *** NOT YET IMPLEMENTED *** return okstat ("Object Attribute Set serialization is not implemented."); } ALSO: The Object Attribute Manager Dialog now has partial support for Object Types: Display (e.g. of the hard-coded test values) and Removal. (It is not yet possible to ADD object types in this dialog). ---