| 73 | } |
| 74 | |
| 75 | void setParentWindow(WindowBase* parentWindow, WidgetIndex widgetIndex) |
| 76 | { |
| 77 | // Save calling window details so that the information can be passed back to the correct window & widget |
| 78 | if (parentWindow == nullptr) |
| 79 | { |
| 80 | _parentWidget.window.classification = WindowClass::null; |
| 81 | _parentWidget.window.number = 0; |
| 82 | _parentWidget.widgetIndex = 0; |
| 83 | |
| 84 | colours[0] = Drawing::Colour::grey; |
| 85 | colours[1] = Drawing::Colour::grey; |
| 86 | colours[2] = Drawing::Colour::grey; |
| 87 | } |
| 88 | else |
| 89 | { |
| 90 | _parentWidget.window.classification = parentWindow->classification; |
| 91 | _parentWidget.window.number = parentWindow->number; |
| 92 | _parentWidget.widgetIndex = widgetIndex; |
| 93 | |
| 94 | colours[0] = parentWindow->colours[1]; |
| 95 | colours[1] = parentWindow->colours[1]; |
| 96 | colours[2] = parentWindow->colours[1]; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | void setTitle(StringId title, StringId description, const Formatter& decriptionArgs) |
| 101 | { |
no outgoing calls
no test coverage detected