MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / _onCheckBoxToggle

Method _onCheckBoxToggle

plugins/dm.objectives/DifficultyPanel.cpp:81–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void DifficultyPanel::_onCheckBoxToggle(wxCommandEvent& ev)
82{
83 // Update the sensitivity of the other toggles
84
85 if (ev.GetEventObject() == _allLevels)
86 {
87 // The "All levels" toggle has been changed, set the 1..N checkboxes
88 // to the inverse of the togglebutton's status
89 for (std::size_t i = 0; i < _toggles.size(); i++)
90 {
91 _toggles[i]->Enable(!_allLevels->GetValue());
92 }
93 }
94}
95
96void DifficultyPanel::writeToObjective(Objective& obj)
97{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected