gcu::UIBuilder Class Reference

GtkBuilder wrapping. More...

#include <ui-builder.h>

Inheritance diagram for gcu::UIBuilder:

gcu::Dialog gcp::DocPropDlg gcp::HPosDlg gcp::NewFileDlg gcp::PrefsDlg gcp::ReactionPropDlg gcp::StringDlg gcp::Tools gcp::ZoomDlg gcu::PrintSetupDlg

List of all members.

Public Member Functions

 UIBuilder (char const *filename, char const *domain) throw (std::runtime_error)
virtual ~UIBuilder ()
GtkWidget * GetWidget (char const *wname)
GtkWidget * GetRefdWidget (char const *wname)
GtkComboBox * GetComboBox (char const *cbname)
GtkBuilder * GetBuilder (void) const


Detailed Description

GtkBuilder wrapping.

Wraps a GtkBuilder and provides some useful methods.

Definition at line 41 of file ui-builder.h.


Constructor & Destructor Documentation

gcu::UIBuilder::UIBuilder ( char const *  filename,
char const *  domain 
) throw (std::runtime_error)

Parameters:
filename,: the name of the ui file which contains the description of the widgets.
domain,: the translation domain.
Constructs a UIBuilder using the given file. Throws an exception if things fail.

virtual gcu::UIBuilder::~UIBuilder (  )  [virtual]

The destructor.


Member Function Documentation

gcu::UIBuilder::GetBuilder ( void   )  const [inline]

Returns:
the embedded GtkBuilder

Definition at line 79 of file ui-builder.h.

GtkComboBox* gcu::UIBuilder::GetComboBox ( char const *  cbname  ) 

Parameters:
cbname a combo box name.
Returns:
the found combo box if any.

GtkWidget* gcu::UIBuilder::GetRefdWidget ( char const *  wname  ) 

Parameters:
wname a widget name.
Returns:
the found widget if any with an incremented references count.

GtkWidget* gcu::UIBuilder::GetWidget ( char const *  wname  ) 

Parameters:
wname a widget name.
Returns:
the found widget if any.


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

Generated on Fri Sep 24 15:58:47 2010 for The Gnome Chemistry Utils by  doxygen 1.5.9