26 #include <wx/checkbox.h> 27 #include <wx/choice.h> 28 #include <wx/notebook.h> 29 #include <wx/radiobox.h> 30 #include <wx/radiobut.h> 31 #include <wx/textctrl.h> 97 *ctrl.m_dest.m_bool = ctrl.m_control.m_checkbox->GetValue();
101 *ctrl.m_dest.m_bool = ctrl.m_control.m_radiobutton->GetValue();
105 *ctrl.m_dest.m_str = ctrl.m_control.m_textctrl->GetValue();
109 ctrl.m_control.m_textctrl->GetValue().ToLong( ctrl.m_dest.m_long );
113 ctrl.m_control.m_textctrl->GetValue().ToDouble( ctrl.m_dest.m_double );
117 *ctrl.m_dest.m_long = ctrl.m_control.m_unit_binder->GetValue();
121 *ctrl.m_dest.m_long = ctrl.m_control.m_choice->GetSelection();
125 *ctrl.m_dest.m_long = ctrl.m_control.m_radiobox->GetSelection();
129 *ctrl.m_dest.m_long = ctrl.m_control.m_notebook->GetSelection();
145 switch( ctrl.m_type )
148 ctrl.m_control.m_checkbox->SetValue( *ctrl.m_dest.m_bool );
152 ctrl.m_control.m_radiobutton->SetValue( *ctrl.m_dest.m_bool );
156 ctrl.m_control.m_textctrl->SetValue( *ctrl.m_dest.m_str );
160 ctrl.m_control.m_textctrl->SetValue(
wxString::Format(
"%ld", *ctrl.m_dest.m_long ) );
164 ctrl.m_control.m_textctrl->SetValue(
wxString::Format(
"%f", *ctrl.m_dest.m_double ) );
168 ctrl.m_control.m_unit_binder->SetValue( *ctrl.m_dest.m_long );
172 ctrl.m_control.m_choice->SetSelection( *ctrl.m_dest.m_long );
176 ctrl.m_control.m_radiobox->SetSelection( *ctrl.m_dest.m_long );
180 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.