bakery 2.6
|
Preferences Dialog In the Glade file:
#include <Dialog_Preferences.h>
Public Member Functions | |
Dialog_Preferences (Gtk::Window &parent, const Glib::ustring &configuration_directory, const Glib::ustring &glade_filename, const Glib::ustring &widget_name="vbox", bool instant=false) | |
if instant is true then this will be an instant-apply preference dialog. | |
virtual | ~Dialog_Preferences () |
virtual void | load (std::auto_ptr< Glib::Error > &error) |
virtual void | save (std::auto_ptr< Glib::Error > &error) |
Protected Member Functions | |
virtual void | on_button_help () |
virtual void | connect_widget (const Glib::ustring &key, const Glib::ustring &glade_widget_name) |
virtual void | on_show () |
virtual void | on_hide () |
virtual void | on_response (int response_id) |
Protected Attributes | |
Gtk::Button | m_Button_Close |
Gtk::Button | m_Button_Cancel |
Gtk::Button | m_Button_Help |
bool | m_instant |
Glib::RefPtr< Gnome::Glade::Xml > | m_refGlade |
Bakery::Conf::Client * | m_pConfClient |
Preferences Dialog In the Glade file:
Use connect_widget(conf_key, widget_name) in the constructor.
This is the base class for preferences dialogs and supports only Gtk widgets. The Dialog_Preferences_GnomeUI class in the bakery_gnomeui module supports Gnome::UI widgets in addition to Gtk widgets.
Bakery::Dialog_Preferences::Dialog_Preferences | ( | Gtk::Window & | parent, |
const Glib::ustring & | configuration_directory, | ||
const Glib::ustring & | glade_filename, | ||
const Glib::ustring & | widget_name = "vbox" , |
||
bool | instant = false |
||
) |
if instant is true then this will be an instant-apply preference dialog.
virtual Bakery::Dialog_Preferences::~Dialog_Preferences | ( | ) | [virtual] |
virtual void Bakery::Dialog_Preferences::connect_widget | ( | const Glib::ustring & | key, |
const Glib::ustring & | glade_widget_name | ||
) | [protected, virtual] |
virtual void Bakery::Dialog_Preferences::load | ( | std::auto_ptr< Glib::Error > & | error | ) | [virtual] |
virtual void Bakery::Dialog_Preferences::on_button_help | ( | ) | [protected, virtual] |
virtual void Bakery::Dialog_Preferences::on_hide | ( | ) | [protected, virtual] |
virtual void Bakery::Dialog_Preferences::on_response | ( | int | response_id | ) | [protected, virtual] |
virtual void Bakery::Dialog_Preferences::on_show | ( | ) | [protected, virtual] |
virtual void Bakery::Dialog_Preferences::save | ( | std::auto_ptr< Glib::Error > & | error | ) | [virtual] |
Gtk::Button Bakery::Dialog_Preferences::m_Button_Cancel [protected] |
Gtk::Button Bakery::Dialog_Preferences::m_Button_Close [protected] |
Gtk::Button Bakery::Dialog_Preferences::m_Button_Help [protected] |
bool Bakery::Dialog_Preferences::m_instant [protected] |
Glib::RefPtr<Gnome::Glade::Xml> Bakery::Dialog_Preferences::m_refGlade [protected] |