|
VSTGUI
4.3
Graphical User Interface Framework not only for VST plugins
|
XML description parser and view creator. More...
Inheritance diagram for UIDescription:
Collaboration diagram for UIDescription:Public Types | |
| enum | SaveFlags { kWriteWindowsResourceFile = 1 << 0, kWriteImagesIntoXMLFile = 1 << 1 } |
Static Public Member Functions | |
| static bool | parseColor (const std::string &colorString, CColor &color) |
Static Public Attributes | |
| static CViewAttributeID | kTemplateNameAttributeID = 'uitl' |
| static IdStringPtr | kMessageTagChanged = "kMessageTagChanged" |
| static IdStringPtr | kMessageColorChanged = "kMessageColorChanged" |
| static IdStringPtr | kMessageFontChanged = "kMessageFontChanged" |
| static IdStringPtr | kMessageBitmapChanged = "kMessageBitmapChanged" |
| static IdStringPtr | kMessageTemplateChanged = "kMessageTemplateChanged" |
| static IdStringPtr | kMessageGradientChanged = "kMessageGradientChanged" |
| static IdStringPtr | kMessageBeforeSave = "kMessageBeforeSave" |
| static IdStringPtr | kCustomViewName = "custom-view-name" |
Protected Types | |
| typedef std::set< IdStringPtr > | DeferedChangesSet |
| typedef std::list< CBaseObject * > | DependentList |
Protected Member Functions | |
| 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) |
Static Protected Member Functions | |
| static void | rememberObject (CBaseObject *obj) |
| static void | forgetObject (CBaseObject *obj) |
Protected Attributes | |
| CResourceDescription | xmlFile |
| std::string | filePath |
| UINode * | nodes |
| IController * | controller |
| IViewFactory * | viewFactory |
| Xml::IContentProvider * | xmlContentProvider |
| IBitmapCreator * | bitmapCreator |
| std::deque< IController * > | subControllerStack |
| std::deque< UINode * > | nodeStack |
| bool | restoreViewsMode |
| int32_t | deferChangeCount |
| DeferedChangesSet | deferedChanges |
| DependentList | dependents |
XML description parser and view creator.
|
protectedinherited |
|
protectedinherited |
| enum SaveFlags |
| UIDescription | ( | const CResourceDescription & | xmlFile, |
| IViewFactory * | viewFactory = 0 |
||
| ) |
Here is the call graph for this function:| UIDescription | ( | Xml::IContentProvider * | xmlContentProvider, |
| IViewFactory * | viewFactory = 0 |
||
| ) |
Here is the call graph for this function:| ~UIDescription | ( | ) |
|
protected |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtualinherited |
add a dependent object
Here is the caller graph for this function:| bool addNewTemplate | ( | UTF8StringPtr | name, |
| UIAttributes * | attr | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtualinherited |
| bool calculateStringValue | ( | UTF8StringPtr | str, |
| double & | result | ||
| ) | const |
Here is the call graph for this function:
Here is the caller graph for this function:| void changeAlternativeFontNames | ( | UTF8StringPtr | name, |
| UTF8StringPtr | alternativeFonts | ||
| ) |
Here is the call graph for this function:| void changeBitmap | ( | UTF8StringPtr | name, |
| UTF8StringPtr | newName, | ||
| const CRect * | nineparttiledOffset = 0 |
||
| ) |
Here is the call graph for this function:| void changeBitmapFilters | ( | UTF8StringPtr | bitmapName, |
| const std::list< SharedPointer< UIAttributes > > & | filters | ||
| ) |
Here is the call graph for this function:| void changeBitmapName | ( | UTF8StringPtr | oldName, |
| UTF8StringPtr | newName | ||
| ) |
| void changeColor | ( | UTF8StringPtr | name, |
| const CColor & | newColor | ||
| ) |
Here is the call graph for this function:| void changeColorName | ( | UTF8StringPtr | oldName, |
| UTF8StringPtr | newName | ||
| ) |
| bool changeControlTagString | ( | UTF8StringPtr | tagName, |
| const std::string & | newTagString, | ||
| bool | create = false |
||
| ) |
Here is the call graph for this function:
|
inlinevirtualinherited |
notify dependent objects of change with message.
Here is the call graph for this function:
Here is the caller graph for this function:| void changeFont | ( | UTF8StringPtr | name, |
| CFontRef | newFont | ||
| ) |
Here is the call graph for this function:| void changeFontName | ( | UTF8StringPtr | oldName, |
| UTF8StringPtr | newName | ||
| ) |
| void changeGradient | ( | UTF8StringPtr | name, |
| CGradient * | newGradient | ||
| ) |
Here is the call graph for this function:| void changeGradientName | ( | UTF8StringPtr | oldName, |
| UTF8StringPtr | newName | ||
| ) |
|
protected |
Here is the call graph for this function:| void changeTagName | ( | UTF8StringPtr | oldName, |
| UTF8StringPtr | newName | ||
| ) |
| bool changeTemplateName | ( | UTF8StringPtr | name, |
| UTF8StringPtr | newName | ||
| ) |
Here is the call graph for this function:| void collectBitmapFilters | ( | UTF8StringPtr | bitmapName, |
| std::list< SharedPointer< UIAttributes > > & | filters | ||
| ) | const |
Here is the call graph for this function:
|
virtual |
Implements IUIDescription.
|
virtual |
Implements IUIDescription.
|
virtual |
Implements IUIDescription.
|
virtual |
Implements IUIDescription.
|
virtual |
Implements IUIDescription.
|
protected |
Here is the call graph for this function:
|
virtual |
Implements IUIDescription.
|
virtual |
Implements IUIDescription.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtualinherited |
defer changes until later. can be nested. If you use this, you must make sure that all message pointers are valid the whole time.
Here is the call graph for this function:
Here is the caller graph for this function:| bool duplicateTemplate | ( | UTF8StringPtr | name, |
| UTF8StringPtr | duplicateName | ||
| ) |
Here is the call graph for this function:
|
protectedvirtual |
Implements IHandler.
|
protected |
Here is the caller graph for this function:
|
protected |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtualinherited |
decrease refcount and delete object if refcount == 0
Here is the call graph for this function:
|
inlinestaticprotectedinherited |
Here is the call graph for this function:
Here is the caller graph for this function:| bool getAlternativeFontNames | ( | UTF8StringPtr | name, |
| std::string & | alternativeFonts | ||
| ) | const |
Here is the call graph for this function:
|
protected |
Here is the caller graph for this function:
|
virtual |
|
virtual |
Implements IUIDescription.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
Implements IUIDescription.
|
virtual |
| bool getControlTagString | ( | UTF8StringPtr | tagName, |
| std::string & | tagString | ||
| ) | const |
Here is the call graph for this function:| UIAttributes * getCustomAttributes | ( | UTF8StringPtr | name, |
| bool | create = false |
||
| ) |
Here is the call graph for this function:
|
inline |
|
virtual |
|
virtual |
|
inlinevirtualinherited |
get refcount
|
virtual |
Implements IUIDescription.
Here is the call graph for this function:
Here is the caller graph for this function:| bool getTemplateNameFromView | ( | CView * | view, |
| std::string & | templateName | ||
| ) | const |
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Implements IUIDescription.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
| const UIAttributes * getViewAttributes | ( | UTF8StringPtr | name | ) | const |
Here is the caller graph for this function:
|
inlinevirtual |
Implements IUIDescription.
| bool hasBitmapName | ( | UTF8StringPtr | name | ) | const |
Here is the call graph for this function:| bool hasColorName | ( | UTF8StringPtr | name | ) | const |
Here is the call graph for this function:| bool hasFontName | ( | UTF8StringPtr | name | ) | const |
Here is the call graph for this function:| bool hasGradientName | ( | UTF8StringPtr | name | ) | const |
Here is the call graph for this function:| bool hasTagName | ( | UTF8StringPtr | name | ) | const |
Here is the call graph for this function:
|
virtual |
Implements IUIDescription.
|
virtual |
Implements IUIDescription.
|
virtual |
|
virtual |
Implements IUIDescription.
|
virtual |
|
protected |
Here is the call graph for this function:
|
inlinevirtualinherited |
Reimplemented in CView, GenericStringListDataBrowserSource, CDataBrowser, CViewContainer, CRockerSwitch, CScrollView, CAnimationSplashScreen, UIDescriptionViewSwitchController, CRowColumnView, CShadowViewContainer, CTooltipSupport, and CScrollbar.
Here is the caller graph for this function:
|
virtual |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the caller graph for this function:
|
inlinevirtualinherited |
increase refcount
Here is the caller graph for this function:
|
inlinestaticprotectedinherited |
Here is the call graph for this function:
Here is the caller graph for this function:| void removeBitmap | ( | UTF8StringPtr | name | ) |
Here is the call graph for this function:| void removeColor | ( | UTF8StringPtr | name | ) |
Here is the call graph for this function:
|
inlinevirtualinherited |
remove a dependent object.
Here is the caller graph for this function:| void removeFont | ( | UTF8StringPtr | name | ) |
Here is the call graph for this function:| void removeGradient | ( | UTF8StringPtr | name | ) |
Here is the call graph for this function:
|
protected |
Here is the call graph for this function:
Here is the caller graph for this function:| void removeTag | ( | UTF8StringPtr | name | ) |
Here is the call graph for this function:| bool removeTemplate | ( | UTF8StringPtr | name | ) |
Here is the call graph for this function:| bool restoreViews | ( | InputStream & | stream, |
| std::list< SharedPointer< CView > > & | views, | ||
| UIAttributes ** | customData = 0 |
||
| ) |
Here is the call graph for this function:
|
virtual |
Here is the call graph for this function:
|
protected |
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Here is the call graph for this function:
Here is the caller graph for this function:| void setBitmapCreator | ( | IBitmapCreator * | bitmapCreator | ) |
| void setController | ( | IController * | controller | ) | const |
Here is the caller graph for this function:| bool setCustomAttributes | ( | UTF8StringPtr | name, |
| UIAttributes * | attr | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:| void setFilePath | ( | UTF8StringPtr | path | ) |
Here is the caller graph for this function:
|
protectedvirtual |
| bool storeViews | ( | const std::list< CView * > | views, |
| OutputStream & | stream, | ||
| UIAttributes * | customData = 0 |
||
| ) | const |
Here is the call graph for this function:
|
protected |
Here is the call graph for this function:
Here is the caller graph for this function:| void updateViewDescription | ( | UTF8StringPtr | name, |
| CView * | view | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
protectedvirtual |
Implements IHandler.
|
protectedvirtual |
Implements IHandler.
|
protected |
|
mutableprotected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
staticinherited |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |