|  |  | 
Use connect_widget() to link the widgets with variables that will contain their data. Then use transfer_widgets_to_variables() and transfer_variables_to_widgets() to get or set all of the variables at once.
This is meant to be a bit like MFC's "Dialog Data Exchange and Validation".
The association of widget and member varables follow this mapping:
Gtk::Entry --> Glib::ustring Gtk::SpinBox --> Glib::ustring Gtk::ComboBoxEntry --> Glib::ustring Gtk::Scale --> double Gtk::Calendar --> Glib::Date Gtk::CheckBox --> bool Gtk::RadioButton --> bool
| Public Member Functions | |
| VariablesMap (const Glib::RefPtr<Glade::Xml>& glade) | |
| virtual | ~VariablesMap () | 
| virtual void | connect_widget (const Glib::ustring& widget_name, bool& variable) | 
| For ToggleButton (CheckBox and RadioButton). | |
| virtual void | connect_widget (const Glib::ustring& widget_name, Glib::ustring& variable) | 
| For Entry, ComboBoxEntry and SpinBox. | |
| virtual void | connect_widget (const Glib::ustring& widget_name, double& variable) | 
| For Scale (HScale and VScale). | |
| virtual void | connect_widget (const Glib::ustring& widget_name, Glib::Date& variable) | 
| For Calendar. | |
| virtual void | transfer_widgets_to_variables () | 
| Transfer data from the widget to the variable. | |
| virtual void | transfer_variables_to_widgets () | 
| Transfer data from the variable to the widget. | |
| Protected Types | |
| typedef std::map< Gtk::Widget *, void* > | type_mapWidgetsToVariables | 
| Protected Member Functions | |
| virtual bool | validate_widgets () | 
| Override this to validate the data that the user enters into the widgets. | |
| virtual void | transfer_one_widget (Gtk::Widget* pWidget, bool to_variable) | 
| Protected Attributes | |
| type_mapWidgetsToVariables | m_mapWidgetsToVariables | 
| Glib::RefPtr<Glade::Xml> | m_refGlade | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| For Calendar. 
 | 
| 
 | ||||||||||||
| For Scale (HScale and VScale). 
 | 
| 
 | ||||||||||||
| For Entry, ComboBoxEntry and SpinBox. 
 | 
| 
 | ||||||||||||
| For ToggleButton (CheckBox and RadioButton). 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | 
| Transfer data from the variable to the widget. 
 | 
| 
 | 
| Transfer data from the widget to the variable. 
 | 
| 
 | 
| Override this to validate the data that the user enters into the widgets. The return value indicates whether the widgets' data is valid. | 
| 
 | 
| 
 | 
| 
 | 
| 
 |