mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-05 15:10:42 +08:00
Stubbed restore_window_pos
This commit is contained in:
parent
e32be5a224
commit
91edf908f2
@ -48,6 +48,7 @@ MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& si
|
|||||||
this->SetMinSize(wxSize(760, 490));
|
this->SetMinSize(wxSize(760, 490));
|
||||||
this->SetSize(this->GetMinSize());
|
this->SetSize(this->GetMinSize());
|
||||||
wxTheApp->SetTopWindow(this);
|
wxTheApp->SetTopWindow(this);
|
||||||
|
gui_config->restore_window_pos(this, "main_frame");
|
||||||
this->Show();
|
this->Show();
|
||||||
this->Layout();
|
this->Layout();
|
||||||
}
|
}
|
||||||
|
@ -15,4 +15,7 @@ sub save_settings {
|
|||||||
|
|
||||||
void Settings::save_window_pos(wxWindow* ref, wxString name) {
|
void Settings::save_window_pos(wxWindow* ref, wxString name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Settings::restore_window_pos(wxWindow* ref, wxString name) {
|
||||||
|
}
|
||||||
}} // namespace Slic3r::GUI
|
}} // namespace Slic3r::GUI
|
||||||
|
@ -55,6 +55,7 @@ class Settings {
|
|||||||
std::map<wxString, std::tuple<wxPoint, wxSize, bool> > window_pos { std::map<wxString, std::tuple<wxPoint, wxSize, bool> >() };
|
std::map<wxString, std::tuple<wxPoint, wxSize, bool> > window_pos { std::map<wxString, std::tuple<wxPoint, wxSize, bool> >() };
|
||||||
|
|
||||||
void save_window_pos(wxWindow* ref, wxString name);
|
void save_window_pos(wxWindow* ref, wxString name);
|
||||||
|
void restore_window_pos(wxWindow* ref, wxString name);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const std::string LogChannel {"GUI_Settings"}; //< Which log these messages should go to.
|
const std::string LogChannel {"GUI_Settings"}; //< Which log these messages should go to.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user