Fix issue 408 saving the Import Sprite Sheet window position

This commit is contained in:
David Capello 2014-08-09 21:54:12 -03:00
parent 303595689f
commit 33706ce6ff

View File

@ -103,6 +103,10 @@ public:
m_selectFile.DropDownClick.connect(&ImportSpriteSheetWindow::onDropDown, this);
m_import.Click.connect(Bind<void>(&ImportSpriteSheetWindow::onImport, this));
m_cancel.Click.connect(Bind<void>(&ImportSpriteSheetWindow::onCancel, this));
remapWindow();
centerWindow();
load_window_pos(this, "ImportSpriteSheet");
}
~ImportSpriteSheetWindow()
@ -269,6 +273,16 @@ protected:
}
}
bool onProcessMessage(ui::Message* msg) OVERRIDE
{
switch (msg->type()) {
case kCloseMessage:
save_window_pos(this, "ImportSpriteSheet");
break;
}
return Window::onProcessMessage(msg);
}
virtual void onBroadcastMouseMessage(WidgetsList& targets) OVERRIDE
{
Window::onBroadcastMouseMessage(targets);