| 42 | AxUiFactory* AxScriptManager::GetUiFactory() const { return uiFactory; } |
| 43 | |
| 44 | void AxScriptManager::Clear() |
| 45 | { |
| 46 | if (mainScript) { |
| 47 | auto commanderList = adaptixWidget->GetCommandersAll(); |
| 48 | for (const auto& commander : commanderList) |
| 49 | commander->RemoveClientGroup(mainScript->context.name); |
| 50 | |
| 51 | delete mainScript; |
| 52 | mainScript = nullptr; |
| 53 | } |
| 54 | |
| 55 | for (auto &entry : config_scripts) |
| 56 | delete entry.engine; |
| 57 | config_scripts.clear(); |
| 58 | qDeleteAll(scripts); |
| 59 | scripts.clear(); |
| 60 | qDeleteAll(server_scripts); |
| 61 | server_scripts.clear(); |
| 62 | } |
| 63 | |
| 64 | void AxScriptManager::ResetMain() |
| 65 | { |
nothing calls this directly
no test coverage detected