static void PolarClicked() { UpdatePlane(); dlgPlanePolarShowModal(*(SingleWindow*)dialog->GetRootOwner(), plane); Update(); }
inline void PlaneEditWidget::PolarButtonClicked() { bool changed = false; if (!Save(changed)) return; dlgPlanePolarShowModal(plane); UpdatePolarButton(); /* reload attributes that may have been modified */ LoadValue(WING_AREA, plane.wing_area); LoadValue(MAX_BALLAST, plane.max_ballast); LoadValue(MAX_SPEED, plane.max_speed, UnitGroup::HORIZONTAL_SPEED); }
static void PolarClicked(gcc_unused WndButton &button) { dlgPlanePolarShowModal(*(SingleWindow*)dialog->get_root_owner(), plane); Update(); }