Fixed window size memory.

Closes #71.
This commit is contained in:
WrinklyNinja
2014-06-23 21:44:27 +01:00
parent 6fa299991d
commit 7a8454ebc6
4 changed files with 19 additions and 4 deletions
+6 -1
View File
@@ -1181,6 +1181,9 @@ MiniEditor::MiniEditor(wxWindow *parent, const wxString& title, wxPoint pos, wxS
SetIcon(wxIconLocation("LOOT.exe"));
SetSizerAndFit(bigBox);
if (size != wxDefaultSize)
SetSize(size);
}
void MiniEditor::OnApply(wxCommandEvent& event) {
@@ -1228,7 +1231,9 @@ FullEditor::FullEditor(wxWindow *parent, const wxString& title, wxPoint pos, wxS
SetIcon(wxIconLocation("LOOT.exe"));
SetSizerAndFit(bigBox);
Layout();
if (size != wxDefaultSize)
SetSize(size);
}
void FullEditor::OnQuit(wxCommandEvent& event) {
+6 -2
View File
@@ -552,8 +552,12 @@ Launcher::Launcher(const wxChar *title, YAML::Node& settings, Game * game, vecto
//Now set the layout and sizes.
SetMenuBar(MenuBar);
SetBackgroundColour(wxColour(255,255,255));
SetSizerAndFit(buttonBox);
SetSize(wxSize(250, 200));
SetSizerAndFit(buttonBox);
if (size != wxDefaultSize)
SetSize(size);
else
SetSize(wxSize(250, 200));
SortButton->SetFocus();
}
+3
View File
@@ -143,6 +143,9 @@ SettingsFrame::SettingsFrame(wxWindow *parent, const wxString& title, YAML::Node
SetBackgroundColour(wxColour(255,255,255));
SetIcon(wxIconLocation("LOOT.exe"));
SetSizerAndFit(bigBox);
if (size != wxDefaultSize)
SetSize(size);
}
void SettingsFrame::SetDefaultValues() {
+4 -1
View File
@@ -37,7 +37,10 @@ Viewer::Viewer(wxWindow *parent, const wxString& title, const wxString& url, wxP
topsizer->Add(web, 1, wxEXPAND);
SetSizer(topsizer);
SetSize(800,600);
if (size != wxDefaultSize)
SetSize(size);
else
SetSize(800, 600);
SetIcon(wxIconLocation("LOOT.exe"));
}