The Gnome Chemistry Utils  0.12.13
Public Member Functions | List of all members
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

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
cbnamea combo box name.
Returns
the found combo box if any.
GtkWidget* gcu::UIBuilder::GetRefdWidget ( char const *  wname)
Parameters
wnamea widget name.
Returns
the found widget if any with an incremented references count.
GtkWidget* gcu::UIBuilder::GetWidget ( char const *  wname)
Parameters
wnamea widget name.
Returns
the found widget if any.

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