| 169 | } |
| 170 | |
| 171 | int EnumBinderBase::Get() { |
| 172 | if (auto rb = dynamic_cast<wxRadioBox*>(GetWindow())) |
| 173 | return rb->GetSelection(); |
| 174 | if (auto rb = dynamic_cast<wxComboBox*>(GetWindow())) |
| 175 | return rb->GetSelection(); |
| 176 | throw agi::InternalError("Control type not supported by EnumBinder"); |
| 177 | } |
| 178 | |
| 179 | void EnumBinderBase::Set(int value) { |
| 180 | if (auto rb = dynamic_cast<wxRadioBox*>(GetWindow())) |
no outgoing calls