26 #include <wx/checkbox.h> 27 #include <wx/choice.h> 28 #include <wx/notebook.h> 29 #include <wx/radiobox.h> 30 #include <wx/textctrl.h> 90 *ctrl.m_dest.m_bool = ctrl.m_control.m_checkbox->GetValue();
94 *ctrl.m_dest.m_str = ctrl.m_control.m_textctrl->GetValue();
98 ctrl.m_control.m_textctrl->GetValue().ToLong( ctrl.m_dest.m_long );
102 ctrl.m_control.m_textctrl->GetValue().ToDouble( ctrl.m_dest.m_double );
106 *ctrl.m_dest.m_long = ctrl.m_control.m_unit_binder->GetValue();
110 *ctrl.m_dest.m_long = ctrl.m_control.m_choice->GetSelection();
114 *ctrl.m_dest.m_long = ctrl.m_control.m_radiobox->GetSelection();
118 *ctrl.m_dest.m_long = ctrl.m_control.m_notebook->GetSelection();
134 switch( ctrl.m_type )
137 ctrl.m_control.m_checkbox->SetValue( *ctrl.m_dest.m_bool );
141 ctrl.m_control.m_textctrl->SetValue( *ctrl.m_dest.m_str );
145 ctrl.m_control.m_textctrl->SetValue(
wxString::Format(
"%ld", *ctrl.m_dest.m_long ) );
149 ctrl.m_control.m_textctrl->SetValue(
wxString::Format(
"%f", *ctrl.m_dest.m_double ) );
153 ctrl.m_control.m_unit_binder->SetValue( *ctrl.m_dest.m_long );
157 ctrl.m_control.m_choice->SetSelection( *ctrl.m_dest.m_long );
161 ctrl.m_control.m_radiobox->SetSelection( *ctrl.m_dest.m_long );
165 ctrl.m_control.m_notebook->SetSelection( *ctrl.m_dest.m_long );
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.