![]() |
Image Component Library (ICL)
|
internal xml-parsing node class More...
#include <DynamicGUI.h>
Public Member Functions | |
| bool | isContainer () const |
| dedicated method to distinguish containers More... | |
| bool | hasHandle () const |
| returns whether a handle was given (e.g. is part of args) More... | |
| std::string | getHandleName () const |
| returns the handle (if there is one) More... | |
Public Attributes | |
| std::string | name |
| component type (e.g. 'slider', or 'combo' or 'image') More... | |
| NodePtr | parent |
| parent container component (or null for the top-level component) More... | |
| int | level |
| hierarchy containment level of this component More... | |
| qt::GUI | parsedGUI |
| corresponding parse (but not created) GUI instance More... | |
| std::string | directArgs |
| direct, e.g. component specific arguments More... | |
| std::vector< KeyValue > | args |
| general arguments, such as handle, label or minsize More... | |
| std::vector< NodePtr > | children |
| all child-components (for containers only) More... | |
Private Types | |
| typedef utils::SmartPtr< Node > | NodePtr |
| SmartPtr typedef. More... | |
| typedef std::pair< std::string, std::string > | KeyValue |
| KeyValue pair class. More... | |
Private Member Functions | |
| Node (const std::string &name="", NodePtr parent=NodePtr(), int level=0) | |
| NodePtr | appendChild (const std::string &name, NodePtr parent, int level) |
| internally used appending of children More... | |
| void | grabArgs (const pugi::xml_node &n) |
| internal utility methods More... | |
Friends | |
| class | DynamicGUI |
| makes parent DynamicGUI class a friend of this one More... | |
internal xml-parsing node class
The node class represents the hierarchical structure of the GUI definition and by exposing the interface, it can be used and re-parsed by other components Each GUI component (e.g. a Slider) is defined by its name (which is 'slider') and a set of arguments. Here, the class distinguishes between direct arguments, which are the component specific arguments, e.g. in case of a slider, the min, the max and the initial value, such as "0,255,128". In addition other arguments are stored in a key-value-pair fashion, such as "handle='the slider'".
|
private |
KeyValue pair class.
|
private |
SmartPtr typedef.
|
private |
|
private |
internally used appending of children
| std::string icl::qt::DynamicGUI::Node::getHandleName | ( | ) | const |
returns the handle (if there is one)
|
private |
internal utility methods
| bool icl::qt::DynamicGUI::Node::hasHandle | ( | ) | const |
returns whether a handle was given (e.g. is part of args)
| bool icl::qt::DynamicGUI::Node::isContainer | ( | ) | const |
dedicated method to distinguish containers
|
friend |
makes parent DynamicGUI class a friend of this one
| std::vector<KeyValue> icl::qt::DynamicGUI::Node::args |
general arguments, such as handle, label or minsize
| std::vector<NodePtr> icl::qt::DynamicGUI::Node::children |
all child-components (for containers only)
| std::string icl::qt::DynamicGUI::Node::directArgs |
direct, e.g. component specific arguments
| int icl::qt::DynamicGUI::Node::level |
hierarchy containment level of this component
| std::string icl::qt::DynamicGUI::Node::name |
component type (e.g. 'slider', or 'combo' or 'image')
| NodePtr icl::qt::DynamicGUI::Node::parent |
parent container component (or null for the top-level component)
1.8.15