|
| UIDescription (const CResourceDescription &xmlFile, IViewFactory *viewFactory=0) |
|
| UIDescription (Xml::IContentProvider *xmlContentProvider, IViewFactory *viewFactory=0) |
|
| ~UIDescription () |
|
virtual bool | parse () |
|
virtual bool | save (UTF8StringPtr filename, int32_t flags=kWriteWindowsResourceFile) |
|
virtual bool | saveWindowsRCFile (UTF8StringPtr filename) |
|
bool | storeViews (const std::list< CView * > views, OutputStream &stream, UIAttributes *customData=0) const |
|
bool | restoreViews (InputStream &stream, std::list< SharedPointer< CView > > &views, UIAttributes **customData=0) |
|
UTF8StringPtr | getFilePath () const |
|
void | setFilePath (UTF8StringPtr path) |
|
const UIAttributes * | getViewAttributes (UTF8StringPtr name) const |
|
void | setController (IController *controller) const |
|
CView * | createView (UTF8StringPtr name, IController *controller) const |
|
CBitmap * | getBitmap (UTF8StringPtr name) const |
|
CFontRef | getFont (UTF8StringPtr name) const |
|
bool | getColor (UTF8StringPtr name, CColor &color) const |
|
CGradient * | getGradient (UTF8StringPtr name) const |
|
int32_t | getTagForName (UTF8StringPtr name) const |
|
IControlListener * | getControlListener (UTF8StringPtr name) const |
|
IController * | getController () const |
|
const IViewFactory * | getViewFactory () const |
|
UTF8StringPtr | lookupColorName (const CColor &color) const |
|
UTF8StringPtr | lookupFontName (const CFontRef font) const |
|
UTF8StringPtr | lookupBitmapName (const CBitmap *bitmap) const |
|
UTF8StringPtr | lookupGradientName (const CGradient *gradient) const |
|
UTF8StringPtr | lookupControlTagName (const int32_t tag) const |
|
bool | getVariable (UTF8StringPtr name, double &value) const |
|
bool | getVariable (UTF8StringPtr name, std::string &value) const |
|
void | collectTemplateViewNames (std::list< const std::string * > &names) const |
|
void | collectColorNames (std::list< const std::string * > &names) const |
|
void | collectFontNames (std::list< const std::string * > &names) const |
|
void | collectBitmapNames (std::list< const std::string * > &names) const |
|
void | collectGradientNames (std::list< const std::string * > &names) const |
|
void | collectControlTagNames (std::list< const std::string * > &names) const |
|
void | changeColorName (UTF8StringPtr oldName, UTF8StringPtr newName) |
|
void | changeTagName (UTF8StringPtr oldName, UTF8StringPtr newName) |
|
void | changeFontName (UTF8StringPtr oldName, UTF8StringPtr newName) |
|
void | changeBitmapName (UTF8StringPtr oldName, UTF8StringPtr newName) |
|
void | changeGradientName (UTF8StringPtr oldName, UTF8StringPtr newName) |
|
void | changeColor (UTF8StringPtr name, const CColor &newColor) |
|
void | changeFont (UTF8StringPtr name, CFontRef newFont) |
|
void | changeGradient (UTF8StringPtr name, CGradient *newGradient) |
|
void | changeBitmap (UTF8StringPtr name, UTF8StringPtr newName, const CRect *nineparttiledOffset=0) |
|
void | changeBitmapFilters (UTF8StringPtr bitmapName, const std::list< SharedPointer< UIAttributes > > &filters) |
|
void | collectBitmapFilters (UTF8StringPtr bitmapName, std::list< SharedPointer< UIAttributes > > &filters) const |
|
void | removeColor (UTF8StringPtr name) |
|
void | removeTag (UTF8StringPtr name) |
|
void | removeFont (UTF8StringPtr name) |
|
void | removeBitmap (UTF8StringPtr name) |
|
void | removeGradient (UTF8StringPtr name) |
|
void | changeAlternativeFontNames (UTF8StringPtr name, UTF8StringPtr alternativeFonts) |
|
bool | getAlternativeFontNames (UTF8StringPtr name, std::string &alternativeFonts) const |
|
bool | hasColorName (UTF8StringPtr name) const |
|
bool | hasTagName (UTF8StringPtr name) const |
|
bool | hasFontName (UTF8StringPtr name) const |
|
bool | hasBitmapName (UTF8StringPtr name) const |
|
bool | hasGradientName (UTF8StringPtr name) const |
|
void | updateViewDescription (UTF8StringPtr name, CView *view) |
|
bool | getTemplateNameFromView (CView *view, std::string &templateName) const |
|
bool | addNewTemplate (UTF8StringPtr name, UIAttributes *attr) |
|
bool | removeTemplate (UTF8StringPtr name) |
|
bool | changeTemplateName (UTF8StringPtr name, UTF8StringPtr newName) |
|
bool | duplicateTemplate (UTF8StringPtr name, UTF8StringPtr duplicateName) |
|
bool | setCustomAttributes (UTF8StringPtr name, UIAttributes *attr) |
|
UIAttributes * | getCustomAttributes (UTF8StringPtr name, bool create=false) |
|
bool | getControlTagString (UTF8StringPtr tagName, std::string &tagString) const |
|
bool | changeControlTagString (UTF8StringPtr tagName, const std::string &newTagString, bool create=false) |
|
bool | calculateStringValue (UTF8StringPtr str, double &result) const |
|
void | setBitmapCreator (IBitmapCreator *bitmapCreator) |
|
void | freePlatformResources () |
|
| CBaseObject () |
|
virtual | ~CBaseObject () |
|
virtual void | beforeDelete () |
|
virtual void | forget () |
| decrease refcount and delete object if refcount == 0 More...
|
|
virtual void | remember () |
| increase refcount More...
|
|
virtual int32_t | getNbReference () const |
| get refcount More...
|
|
virtual CMessageResult | notify (CBaseObject *sender, IdStringPtr message) |
|
virtual | ~IUIDescription () |
|
virtual void | addDependency (CBaseObject *obj) |
| add a dependent object More...
|
|
virtual void | removeDependency (CBaseObject *obj) |
| remove a dependent object. More...
|
|
virtual void | changed (IdStringPtr message) |
| notify dependent objects of change with message. More...
|
|
virtual void | deferChanges (bool state) |
| defer changes until later. More...
|
|
|
CView * | createViewFromNode (UINode *node) const |
|
UINode * | getBaseNode (UTF8StringPtr name) const |
|
UINode * | findChildNodeByNameAttribute (UINode *node, UTF8StringPtr nameAttribute) const |
|
UINode * | findNodeForView (CView *view) const |
|
bool | updateAttributesForView (UINode *node, CView *view, bool deep=true) |
|
void | removeNode (UTF8StringPtr name, IdStringPtr mainNodeName, IdStringPtr changeMsg) |
|
template<typename NodeType , typename ObjType , typename CompareFunction > |
UTF8StringPtr | lookupName (const ObjType &obj, IdStringPtr mainNodeName, CompareFunction compare) const |
|
template<typename NodeType > |
void | changeNodeName (UTF8StringPtr oldName, UTF8StringPtr newName, IdStringPtr mainNodeName, IdStringPtr changeMsg) |
|
template<typename NodeType > |
void | collectNamesFromNode (IdStringPtr mainNodeName, std::list< const std::string * > &names) const |
|
void | addDefaultNodes () |
|
bool | saveToStream (OutputStream &stream, int32_t flags) |
|
void | startXmlElement (Xml::Parser *parser, IdStringPtr elementName, UTF8StringPtr *elementAttributes) |
|
void | endXmlElement (Xml::Parser *parser, IdStringPtr name) |
|
void | xmlCharData (Xml::Parser *parser, const int8_t *data, int32_t length) |
|
void | xmlComment (Xml::Parser *parser, IdStringPtr comment) |
|
| IDependency () |
|
virtual | ~IDependency () |
|
XML description parser and view creator.