|
Public Types |
typedef Gnome::Glade::XmlError | Error |
Public Member Functions |
virtual | ~Xml () |
GladeXML* | gobj () |
| Provides access to the underlying C GObject.
|
const GladeXML* | gobj () const |
| Provides access to the underlying C GObject.
|
GladeXML* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
std::string | get_filename () const |
Gtk::Widget* | get_widget (const Glib::ustring& name) |
| Get a widget from the glade file.
|
template<class T_Widget> |
T_Widget* | get_widget (const Glib::ustring& name, T_Widget*& widget) |
| This is for convenience.
|
template<class T_Widget> |
T_Widget* | get_widget_derived (const Glib::ustring& name, T_Widget*& widget) |
| This provides a pointer to a widget whose details are specified in the Glade file, but which is implemented by your own derived class.
|
Glib::ListHandle<Gtk::Widget*> | get_widget_prefix (const Glib::ustring& name) |
void | reparent_widget (const Glib::ustring& name, Gtk::Container& container) |
| Take the widget from the glade-generated container and put it in another container.
|
std::string | relative_file (const std::string& filename) const |
void | connect_clicked (const Glib::ustring& name, const sigc::slot<void>& slot_) |
| Connect a Gtk::Button's clicked signal or a Gtk::MenuItem's activated signal to a slot.
|
Static Public Member Functions |
static Glib::RefPtr<Xml> | create (const std::string& filename, const Glib::ustring& root=Glib::ustring(), const Glib::ustring& domain=Glib::ustring()) |
| Loads a glade XML file.
|
static Glib::RefPtr<Xml> | create_from_buffer (const char* buffer, int size, const Glib::ustring& root=Glib::ustring(), const Glib::ustring& domain=Glib::ustring()) |
| Reads glade XML data from memory.
|
static Glib::ustring | get_widget_name (Gtk::Widget& widget) |
static Glib::RefPtr<Xml> | get_widget_tree (Gtk::Widget& widget) |
Protected Member Functions |
| Xml (const std::string& filename, const Glib::ustring& root, const Glib::ustring& domain) |
| Loads a glade XML file.
|
| Xml (const char* buffer, int size, const Glib::ustring& root, const Glib::ustring& domain) |
| Reads glade XML data from memory.
|
Gtk::Widget* | get_widget_checked (const Glib::ustring& name, GType type) |
GtkWidget* | get_cwidget (const Glib::ustring& name) |
virtual GType | lookup_type_vfunc (const Glib::ustring& classname) |
| * interface for changing the custom widget handling */
|
Related Functions |
(Note that these are not member functions.)
|
Glib::RefPtr<Gnome::Glade::Xml> | wrap (GladeXML* object, bool take_copy=false) |