|
|
|
@ -518,35 +518,42 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
WindowManager::~WindowManager()
|
|
|
|
|
{
|
|
|
|
|
mKeyboardNavigation.reset();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
mKeyboardNavigation.reset();
|
|
|
|
|
|
|
|
|
|
MyGUI::LanguageManager::getInstance().eventRequestTag.clear();
|
|
|
|
|
MyGUI::PointerManager::getInstance().eventChangeMousePointer.clear();
|
|
|
|
|
MyGUI::InputManager::getInstance().eventChangeKeyFocus.clear();
|
|
|
|
|
MyGUI::ClipboardManager::getInstance().eventClipboardChanged.clear();
|
|
|
|
|
MyGUI::ClipboardManager::getInstance().eventClipboardRequested.clear();
|
|
|
|
|
MyGUI::LanguageManager::getInstance().eventRequestTag.clear();
|
|
|
|
|
MyGUI::PointerManager::getInstance().eventChangeMousePointer.clear();
|
|
|
|
|
MyGUI::InputManager::getInstance().eventChangeKeyFocus.clear();
|
|
|
|
|
MyGUI::ClipboardManager::getInstance().eventClipboardChanged.clear();
|
|
|
|
|
MyGUI::ClipboardManager::getInstance().eventClipboardRequested.clear();
|
|
|
|
|
|
|
|
|
|
for (WindowBase* window : mWindows)
|
|
|
|
|
delete window;
|
|
|
|
|
mWindows.clear();
|
|
|
|
|
for (WindowBase* window : mWindows)
|
|
|
|
|
delete window;
|
|
|
|
|
mWindows.clear();
|
|
|
|
|
|
|
|
|
|
delete mMessageBoxManager;
|
|
|
|
|
delete mLocalMapRender;
|
|
|
|
|
delete mCharGen;
|
|
|
|
|
delete mDragAndDrop;
|
|
|
|
|
delete mSoulgemDialog;
|
|
|
|
|
delete mCursorManager;
|
|
|
|
|
delete mToolTips;
|
|
|
|
|
delete mMessageBoxManager;
|
|
|
|
|
delete mLocalMapRender;
|
|
|
|
|
delete mCharGen;
|
|
|
|
|
delete mDragAndDrop;
|
|
|
|
|
delete mSoulgemDialog;
|
|
|
|
|
delete mCursorManager;
|
|
|
|
|
delete mToolTips;
|
|
|
|
|
|
|
|
|
|
cleanupGarbage();
|
|
|
|
|
cleanupGarbage();
|
|
|
|
|
|
|
|
|
|
mFontLoader.reset();
|
|
|
|
|
mFontLoader.reset();
|
|
|
|
|
|
|
|
|
|
mGui->shutdown();
|
|
|
|
|
delete mGui;
|
|
|
|
|
mGui->shutdown();
|
|
|
|
|
delete mGui;
|
|
|
|
|
|
|
|
|
|
mGuiPlatform->shutdown();
|
|
|
|
|
delete mGuiPlatform;
|
|
|
|
|
mGuiPlatform->shutdown();
|
|
|
|
|
delete mGuiPlatform;
|
|
|
|
|
}
|
|
|
|
|
catch(const MyGUI::Exception& e)
|
|
|
|
|
{
|
|
|
|
|
Log(Debug::Error) << "Error in the destructor: " << e.what();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void WindowManager::setStore(const MWWorld::ESMStore &store)
|
|
|
|
|