eXperiment robotics framework

ItemBrowser Class Reference

#include <erf/erf_widgets.hpp>>

List of all members.

Public Member Functions

 ItemBrowser (string rootname="", string windowname="")
 ~ItemBrowser ()
fltk::ItemGroup * getCurrentGroup ()
 return pointer to active group.
fltk::ItemGroup * setCurrentGroup (fltk::ItemGroup *group)
 sets the current group where next items and groups will be added.
fltk::ItemGroup * getRootGroup ()
 returns root group.
fltk::ItemGroup * getSelectedGroup (fltk::Browser *t)
 returns highlighted group.
fltk::ItemGroup * addGroup (string name, bool open=0, fltk::Image *image=0)
 add a folder.
fltk::Item * addItem (string name, Callback p=0, void *argument=0)
 add a item and return pointer to added item.
void del (fltk::Widget *name)
 remove a item or item group
void clearItems ()
 clear all items in current group.

Protected Attributes

fltk::Browser * browser
 print.
fltk::ItemGroup * root
 pointer to the root ItemGroup.
fltk::ItemGroup * currentGroup
 pointer to the current ItemGroup.
fltk::Window * window
 pointer to the window.


Detailed Description

A foldable tree of items.

Definition at line 72 of file erf_widgets.hpp.


Constructor & Destructor Documentation

ItemBrowser::ItemBrowser ( string  rootname = "",
string  windowname = "" 
)

ItemBrowser::~ItemBrowser (  ) 


Member Function Documentation

fltk::ItemGroup* ItemBrowser::getCurrentGroup (  ) 

return pointer to active group.

fltk::ItemGroup* ItemBrowser::setCurrentGroup ( fltk::ItemGroup *  group  ) 

sets the current group where next items and groups will be added.

fltk::ItemGroup* ItemBrowser::getRootGroup (  ) 

returns root group.

fltk::ItemGroup* ItemBrowser::getSelectedGroup ( fltk::Browser *  t  ) 

returns highlighted group.

fltk::ItemGroup* ItemBrowser::addGroup ( string  name,
bool  open = 0,
fltk::Image *  image = 0 
)

add a folder.

fltk::Item* ItemBrowser::addItem ( string  name,
Callback  p = 0,
void *  argument = 0 
)

add a item and return pointer to added item.

void ItemBrowser::del ( fltk::Widget *  name  ) 

remove a item or item group

void ItemBrowser::clearItems (  ) 

clear all items in current group.


Member Data Documentation

fltk::Browser* ItemBrowser::browser [protected]

print.

pointer to the browser.

Definition at line 94 of file erf_widgets.hpp.

fltk::ItemGroup* ItemBrowser::root [protected]

pointer to the root ItemGroup.

Definition at line 96 of file erf_widgets.hpp.

fltk::ItemGroup* ItemBrowser::currentGroup [protected]

pointer to the current ItemGroup.

Definition at line 98 of file erf_widgets.hpp.

fltk::Window* ItemBrowser::window [protected]

pointer to the window.

Definition at line 100 of file erf_widgets.hpp.


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

The miarn project - written by Joao Xavier