MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / parse_menu_location

Function parse_menu_location

src/python/lfs/py_ui_menus.cpp:35–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 }
34
35 static MenuLocation parse_menu_location(const std::string& s) {
36 if (s == "EDIT")
37 return MenuLocation::Edit;
38 if (s == "VIEW")
39 return MenuLocation::View;
40 if (s == "WINDOW")
41 return MenuLocation::Window;
42 if (s == "HELP")
43 return MenuLocation::Help;
44 if (s == "MENU_BAR")
45 return MenuLocation::MenuBar;
46 return MenuLocation::File;
47 }
48
49 static void sort_by_order(std::vector<PyMenuClassInfo>& menus) {
50 std::sort(menus.begin(), menus.end(),

Callers 2

register_menuMethod · 0.85
sync_from_pythonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected