MCPcopy Create free account
hub / github.com/cmauri/eviacam / UpdateToggleButtonStatus

Method UpdateToggleButtonStatus

src/wwizard.cpp:258–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void WWizard::UpdateToggleButtonStatus (wxToggleButton& toggle)
259{
260 if (wxGetApp().GetController().GetEnabled()) {
261 toggle.SetValue(true);
262 toggle.SetLabel(_("Disable pointer control"));
263 }
264 else {
265 toggle.SetValue(false);
266 toggle.SetLabel(_("Enable pointer control"));
267 }
268}
269
270void WWizard::OnToggleHeadTrackingClick (wxCommandEvent& event, wxToggleButton& toggle)
271{

Callers

nothing calls this directly

Calls 2

SetValueMethod · 0.80
GetEnabledMethod · 0.45

Tested by

no test coverage detected