vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
APGUI::Layout Class Reference

GUI Layout class. More...

#include <Layout.h>

Inheritance diagram for APGUI::Layout:

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...
 

Detailed Description

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.

Author
Jiri Chmelik
Date
2011

Constructor & Destructor Documentation

APGUI::Layout::Layout ( )
APGUI::Layout::~Layout ( )

Member Function Documentation

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

Parameters
mapmap of actual GUI controller registered items
void APGUI::Layout::addItem ( GUI_Item )

add item to this layout

string APGUI::Layout::getName ( void  )
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

Parameters
pParametersNodepointer to parameters node
Returns
successfulness of operation
void APGUI::Layout::removeItem ( GUI_Item )

add item to this layout

void APGUI::Layout::show ( )

show all layout items

Member Data Documentation

std::vector<GUI_Item *> APGUI::Layout::_items
protected

list of layout items pointers

std::vector<string> APGUI::Layout::_itemsNames
protected

list of layout items names

std::string APGUI::Layout::_name
protected

name of this layout


The documentation for this class was generated from the following files: