| 27 | } |
| 28 | |
| 29 | void SettingsResourcePathsControl::OnInitialise( |
| 30 | Control* _parent, |
| 31 | MyGUI::Widget* _place, |
| 32 | std::string_view _layoutName) |
| 33 | { |
| 34 | Control::OnInitialise(_parent, _place, _layoutName); |
| 35 | |
| 36 | assignWidget(mResourcePathAdd, "ResourcePathAdd"); |
| 37 | assignWidget(mResourcePathDelete, "ResourcePathDelete"); |
| 38 | assignWidget(mResourcePaths, "ResourcePaths"); |
| 39 | |
| 40 | mOpenSaveFileDialog = new OpenSaveFileDialog(); |
| 41 | mOpenSaveFileDialog->Initialise( |
| 42 | SettingsManager::getInstance().getValue("EditorState/OpenSaveFileDialogLayout")); |
| 43 | mOpenSaveFileDialog->setDialogInfo(replaceTags("CaptionOpenFolder"), replaceTags("ButtonOpenFolder"), true); |
| 44 | mOpenSaveFileDialog->eventEndDialog.connect(this, &SettingsResourcePathsControl::notifyEndDialogOpenSaveFile); |
| 45 | |
| 46 | mResourcePathAdd->eventMouseButtonClick += |
| 47 | MyGUI::newDelegate(this, &SettingsResourcePathsControl::notifyClickAdd); |
| 48 | mResourcePathDelete->eventMouseButtonClick += |
| 49 | MyGUI::newDelegate(this, &SettingsResourcePathsControl::notifyClickDelete); |
| 50 | } |
| 51 | |
| 52 | void SettingsResourcePathsControl::loadSettings() |
| 53 | { |
nothing calls this directly
no test coverage detected