xfltk::GUI Class Reference

List of all members.

Public Member Functions

 GUI ()
 GUI (std::istream &in_stream)
 GUI (const char *file_name)
virtual ~GUI ()
fltk::Widget * operator[] (const char *name)
void setWidget (const char *id, fltk::Widget *w)
fltk::Widget * root ()
fltk::Window * rootAsWindow ()
void readFromFile (const char *file_name)
void clear ()

Public Attributes

Errors errors

Friends

void XMLCALL startElement (void *userData, const char *name, const char **atts)
std::istream & operator>> (std::istream &in_stream, GUI &g)

Detailed Description

Definition at line 18 of file GUI.h.


Constructor & Destructor Documentation

xfltk::GUI::GUI  )  [inline]
 

Construct empty GUI object.

Definition at line 39 of file GUI.h.

xfltk::GUI::GUI std::istream &  in_stream  ) 
 

Construct GUI and read it from stream.

Parameters:
in_stream 

Definition at line 87 of file GUI.cpp.

xfltk::GUI::GUI const char *  file_name  ) 
 

Construct GUI and read it from file.

Parameters:
file 

Definition at line 91 of file GUI.cpp.

xfltk::GUI::~GUI  )  [virtual]
 

Call clear();

Definition at line 103 of file GUI.cpp.


Member Function Documentation

void xfltk::GUI::clear  ) 
 

Delete all widgets. Delete roor widget and clear widgets map.

Definition at line 95 of file GUI.cpp.

fltk::Widget * xfltk::GUI::operator[] const char *  name  ) 
 

Returns:
widget with given id from map

Definition at line 107 of file GUI.cpp.

void xfltk::GUI::readFromFile const char *  file_name  ) 
 

Read widget from XML file.

Parameters:
file_name file name

Definition at line 145 of file GUI.cpp.

fltk::Widget* xfltk::GUI::root  )  [inline]
 

Returns:
root widget

Definition at line 75 of file GUI.h.

fltk::Window* xfltk::GUI::rootAsWindow  )  [inline]
 

Returns:
root as fltk::Window or 0 (if root==0 or is not fltk::Window class)

Definition at line 82 of file GUI.h.

void xfltk::GUI::setWidget const char *  id,
fltk::Widget *  w
[inline]
 

Add widget to widgets map.

Parameters:
id widget id in map
w widget

Definition at line 68 of file GUI.h.


Friends And Related Function Documentation

std::istream& operator>> std::istream &  in_stream,
GUI g
[friend]
 

Read widget from stream.

Parameters:
in_stream 
g 

Definition at line 112 of file GUI.cpp.


Member Data Documentation

Errors xfltk::GUI::errors
 

Last parsing errors. If empty last parsing was succesful.

Definition at line 34 of file GUI.h.


The documentation for this class was generated from the following files:
Generated on Tue Jan 3 14:32:38 2006 for xfltk by  doxygen 1.4.6-NO