ui-builder.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GCU_UI_BUILDER_H
00026 #define GCU_UI_BUILDER_H
00027
00028 #include <gtk/gtk.h>
00029 #include <gcu/macros.h>
00030 #include <stdexcept>
00031
00033 namespace gcu
00034 {
00035
00041 class UIBuilder
00042 {
00043 public:
00051 UIBuilder (char const *filename, char const *domain) throw (std::runtime_error);
00055 virtual ~UIBuilder ();
00056
00062 GtkWidget *GetWidget (char const *wname);
00068 GtkWidget *GetRefdWidget (char const *wname);
00074 GtkComboBox *GetComboBox (char const *cbname);
00075
00079 GCU_RO_PROP (GtkBuilder *, Builder)
00080 };
00081
00082 }
00083
00084 #endif // GCU_UI_BUILDER_H