vrecko
virtual reality framework
|
#include <Layout.h>
Public Member Functions | |
Layout () | |
~Layout () | |
void | addItem (GUI_Item *) |
add item to this layout More... | |
void | removeItem (GUI_Item *) |
add item to this layout More... | |
string | getName () |
returns name of this layout More... | |
void | show () |
show all layout items More... | |
void | hide () |
hide all layout items More... | |
bool | loadfromXMLnode (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *pParametersNode) |
parse and load item from XML based parameters node More... | |
bool | initialize (string name, std::vector< string > *items) |
void | actualize (GuiItemMapType *map) |
actualize layout More... | |
Protected Attributes | |
std::string | _name |
name of this layout More... | |
std::vector< string > | _itemsNames |
list of layout items names More... | |
std::vector< GUI_Item * > | _items |
list of layout items pointers More... | |
GUI Layout class.
Serves as named group of GUI items, that can be easily shown / hide Each GUI element may be part of none, one or more layouts. In GUI controller, there can be arbitrary number of layouts defined.
APGUI::Layout::Layout | ( | ) |
APGUI::Layout::~Layout | ( | ) |
void APGUI::Layout::actualize | ( | GuiItemMapType * | map | ) |
actualize layout
clear old list of pointer to GUI items for each item-name on list of names, check if such GUI item exist and add it to list of layout items
map | map of actual GUI controller registered items |
void APGUI::Layout::addItem | ( | GUI_Item * | ) |
add item to this layout
|
inline |
returns name of this layout
void APGUI::Layout::hide | ( | ) |
hide all layout items
bool APGUI::Layout::initialize | ( | string | name, |
std::vector< string > * | items | ||
) |
bool APGUI::Layout::loadfromXMLnode | ( | XERCES_CPP_NAMESPACE_QUALIFIER DOMNode * | pParametersNode | ) |
parse and load item from XML based parameters node
pParametersNode | pointer to parameters node |
void APGUI::Layout::removeItem | ( | GUI_Item * | ) |
add item to this layout
void APGUI::Layout::show | ( | ) |
show all layout items
|
protected |
list of layout items pointers
|
protected |
list of layout items names
|
protected |
name of this layout