MCPcopy Create free account
hub / github.com/bumptop/BumpTop / update

Method update

trunk/win/Source/BT_LibrariesMenuActionCustomizer.cpp:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void LibrariesMenuActionCustomizer::update( MenuAction *action )
31{
32 if (winOS->GetLibraryManager())
33 {
34 clearSubMenus(action);
35 QListIterator< QSharedPointer<Library> > libIt(winOS->GetLibraryManager()->getLibraries());
36 while (libIt.hasNext())
37 {
38 QSharedPointer<Library> library = libIt.next();
39 action->subMenu.push_back(MenuAction(KeyCombo(), true, library->getName(), QT_TR_NOOP("Switch to this library"), 1.0f, 100.0f, Ellipsis, Nothing, NULL, NULL, new LibrarySubMenuActionCustomizer(library)));
40 }
41 }
42}
43
44void LibrariesMenuActionCustomizer::clearSubMenus(MenuAction *action)
45{

Callers

nothing calls this directly

Calls 8

GetLibraryManagerMethod · 0.80
getLibrariesMethod · 0.80
hasNextMethod · 0.80
MenuActionClass · 0.70
KeyComboClass · 0.70
nextMethod · 0.45
push_backMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected