Guitarix
gx_gui::GxBuilder Class Reference

#include <gx_ui_builder.h>

Inheritance diagram for gx_gui::GxBuilder:
Collaboration diagram for gx_gui::GxBuilder:

Public Member Functions

void fixup_controlparameters (gx_engine::GxMachineBase &machine)
 
template<class T_Widget >
void find_widget (const Glib::ustring &name, T_Widget *&widget)
 
template<class T_Widget , class F >
void find_widget_derived (const Glib::ustring &name, T_Widget *&widget, F f)
 
bool has_object (const Glib::ustring &name)
 
template<class T_Widget >
void get_toplevel (const Glib::ustring &name, T_Widget *&widget)
 
Gtk::Window * get_first_window ()
 
template<class T_Widget , class F >
void get_toplevel_derived (const Glib::ustring &name, T_Widget *&widget, F f)
 

Static Public Member Functions

static Glib::RefPtr< GxBuildercreate ()
 
static Glib::RefPtr< GxBuildercreate_from_file (const std::string &filename, gx_engine::GxMachineBase *pmach=0, const char *object_id=0)
 
static Glib::RefPtr< GxBuildercreate_from_file (const std::string &filename, gx_engine::GxMachineBase *pmach, const Glib::StringArrayHandle &object_ids)
 
static Glib::RefPtr< GxBuildercreate_from_string (const Glib::ustring &buffer, gx_engine::GxMachineBase *pmach=0, const char *object_id=0)
 
static Glib::RefPtr< GxBuildercreate_from_string (const Glib::ustring &buffer, gx_engine::GxMachineBase *pmach, const Glib::StringArrayHandle &object_ids)
 

Protected Member Functions

Gtk::Object * get_widget_checked (const Glib::ustring &name, GType type, bool take_ref)
 

Detailed Description

Definition at line 104 of file gx_ui_builder.h.

Member Function Documentation

◆ create()

static Glib::RefPtr<GxBuilder> gx_gui::GxBuilder::create ( )
inlinestatic

Definition at line 138 of file gx_ui_builder.h.

Referenced by create_from_file(), and create_from_string().

◆ create_from_file() [1/2]

Glib::RefPtr< GxBuilder > gx_gui::GxBuilder::create_from_file ( const std::string &  filename,
gx_engine::GxMachineBase pmach,
const Glib::StringArrayHandle &  object_ids 
)
static

Definition at line 305 of file gx_ui_builder.cpp.

◆ create_from_file() [2/2]

Glib::RefPtr< GxBuilder > gx_gui::GxBuilder::create_from_file ( const std::string &  filename,
gx_engine::GxMachineBase pmach = 0,
const char *  object_id = 0 
)
static

Definition at line 284 of file gx_ui_builder.cpp.

◆ create_from_string() [1/2]

Glib::RefPtr< GxBuilder > gx_gui::GxBuilder::create_from_string ( const Glib::ustring &  buffer,
gx_engine::GxMachineBase pmach,
const Glib::StringArrayHandle &  object_ids 
)
static

Definition at line 341 of file gx_ui_builder.cpp.

◆ create_from_string() [2/2]

Glib::RefPtr< GxBuilder > gx_gui::GxBuilder::create_from_string ( const Glib::ustring &  buffer,
gx_engine::GxMachineBase pmach = 0,
const char *  object_id = 0 
)
static

Definition at line 322 of file gx_ui_builder.cpp.

◆ find_widget()

template<class T_Widget >
void gx_gui::GxBuilder::find_widget ( const Glib::ustring &  name,
T_Widget *&  widget 
)
inline

Definition at line 155 of file gx_ui_builder.h.

◆ find_widget_derived()

template<class T_Widget , class F >
void gx_gui::GxBuilder::find_widget_derived ( const Glib::ustring &  name,
T_Widget *&  widget,
f 
)
inline

Definition at line 162 of file gx_ui_builder.h.

◆ fixup_controlparameters()

void gx_gui::GxBuilder::fixup_controlparameters ( gx_engine::GxMachineBase machine)

Definition at line 559 of file gx_ui_builder.cpp.

◆ get_first_window()

Gtk::Window * gx_gui::GxBuilder::get_first_window ( )

Definition at line 355 of file gx_ui_builder.cpp.

◆ get_toplevel()

template<class T_Widget >
void gx_gui::GxBuilder::get_toplevel ( const Glib::ustring &  name,
T_Widget *&  widget 
)
inline

Definition at line 185 of file gx_ui_builder.h.

◆ get_toplevel_derived()

template<class T_Widget , class F >
void gx_gui::GxBuilder::get_toplevel_derived ( const Glib::ustring &  name,
T_Widget *&  widget,
f 
)
inline

Definition at line 196 of file gx_ui_builder.h.

◆ get_widget_checked()

Gtk::Object * gx_gui::GxBuilder::get_widget_checked ( const Glib::ustring &  name,
GType  type,
bool  take_ref 
)
protected

Definition at line 387 of file gx_ui_builder.cpp.

◆ has_object()

bool gx_gui::GxBuilder::has_object ( const Glib::ustring &  name)
inline

Definition at line 180 of file gx_ui_builder.h.


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