The Gnome Chemistry Utils  0.15.1
Public Member Functions | List of all members
gcugtk::UIBuilder Class Reference

GtkBuilder wrapping. More...

#include <ui-builder.h>

Inheritance diagram for gcugtk::UIBuilder:
gcu::UIBuilder gcugtk::Dialog gcp::DocPropDlg gcp::HPosDlg gcp::NewFileDlg gcp::PrefsDlg gcp::ReactionPropDlg gcp::Tools gcp::ZoomDlg gcr::AtomsDlg gcr::CellDlg gcr::CleavagesDlg gcr::LinesDlg gcr::PrefsDlg gcr::SizeDlg gcr::ViewSettingsDlg gcugtk::PrintSetupDlg gcugtk::StringDlg gcugtk::StringInputDlg

Public Member Functions

 UIBuilder ()
 
 UIBuilder (char const *filename, char const *domain) throw (std::runtime_error)
 
virtual ~UIBuilder ()
 
GtkWidget * GetWidget (char const *wname)
 
GtkWidget * GetRefdWidget (char const *wname)
 
GObject * GetObject (char const *name)
 
void ActivateActionWidget (char const *path, bool activate)
 
GtkBuilder * GetBuilder (void) const
 
- Public Member Functions inherited from gcu::UIBuilder
 UIBuilder ()
 

Detailed Description

GtkBuilder wrapping.

Wraps a GtkBuilder and provides some useful methods.

Definition at line 42 of file tk/ui-builder.h.

Constructor & Destructor Documentation

gcugtk::UIBuilder::UIBuilder ( )

Constructs a new UIBuilder.

gcugtk::UIBuilder::UIBuilder ( char const *  filename,
char const *  domain 
)
throw (std::runtime_error
)
Parameters
filenamethe name of the ui file which contains the description of the widgets.
domainthe translation domain.

Constructs a UIBuilder using the given file. Throws an exception if things fail.

virtual gcugtk::UIBuilder::~UIBuilder ( )
virtual

The destructor.

Reimplemented from gcu::UIBuilder.

Member Function Documentation

void gcugtk::UIBuilder::ActivateActionWidget ( char const *  path,
bool  activate 
)
virtual
Parameters
patha path describing a menu or tool item.
activatewhether to activate the item.

Make the item associated to path active or inactive according to activate.

Reimplemented from gcu::UIBuilder.

gcugtk::UIBuilder::GetBuilder ( void  ) const
inline
Returns
the embedded GtkBuilder

Definition at line 93 of file tk/ui-builder.h.

GObject* gcugtk::UIBuilder::GetObject ( char const *  name)
Parameters
namean object name.
Returns
the found object if any.
GtkWidget* gcugtk::UIBuilder::GetRefdWidget ( char const *  wname)
Parameters
wnamea widget name.
Returns
the found widget if any with an incremented references count.
GtkWidget* gcugtk::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: