| 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(), |
no outgoing calls
no test coverage detected