MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / onChangeSection

Method onChangeSection

src/app/commands/cmd_options.cpp:352–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350
351private:
352 void onChangeSection() {
353 ListItem* item = static_cast<ListItem*>(sectionListbox()->getSelectedChild());
354 if (!item)
355 return;
356
357 panel()->showChild(findChild(item->getValue().c_str()));
358 m_curSection = sectionListbox()->getSelectedIndex();
359
360 // Load themes
361 if (item->getValue() == kSectionThemeId)
362 loadThemes();
363 }
364
365 void onChangeGridScope() {
366 int item = gridScope()->getSelectedItemIndex();

Callers

nothing calls this directly

Calls 4

getSelectedChildMethod · 0.80
showChildMethod · 0.80
getValueMethod · 0.45
getSelectedIndexMethod · 0.45

Tested by

no test coverage detected