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
00036 class UIBuilder
00037 {
00038 public:
00044 UIBuilder (char const *filename, char const *domain) throw (std::runtime_error);
00045 virtual ~UIBuilder ();
00046
00047 GtkWidget *GetWidget (char const *wname);
00048 GtkWidget *GetRefdWidget (char const *wname);
00049 GtkComboBox *GetComboBox (char const *cbname);
00050
00051 GCU_RO_PROP (GtkBuilder *, Builder)
00052 };
00053
00054 }
00055
00056 #endif // GCU_UI_BUILDER_H