diff options
author | Vojtech Kral <vojtech@kral.hk> | 2019-04-02 13:00:50 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2019-04-08 12:34:46 +0300 |
commit | 7e32f2df711e524cac803aacaee5040509205bb8 (patch) | |
tree | deffa079d0bd80c4fe83b14896b8d6e44d4ecfe6 /src/slic3r/GUI/MainFrame.hpp | |
parent | af05e5fc2ca33b5a5ac054356a83987977f4fbde (diff) |
Implement per-screen DPI on Windows, DPI change event, wxDialog & wxFrame mixin base classes
Diffstat (limited to 'src/slic3r/GUI/MainFrame.hpp')
-rw-r--r-- | src/slic3r/GUI/MainFrame.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/slic3r/GUI/MainFrame.hpp b/src/slic3r/GUI/MainFrame.hpp index b44c73f91..625e70b83 100644 --- a/src/slic3r/GUI/MainFrame.hpp +++ b/src/slic3r/GUI/MainFrame.hpp @@ -9,6 +9,7 @@ #include <string> #include <map> +#include "GUI_Utils.hpp" #include "Plater.hpp" #include "Event.hpp" @@ -40,7 +41,7 @@ struct PresetTab { PrinterTechnology technology; }; -class MainFrame : public wxFrame +class MainFrame : public DPIFrame { bool m_loaded {false}; @@ -68,6 +69,9 @@ class MainFrame : public wxFrame bool can_delete() const; bool can_delete_all() const; +protected: + virtual void on_dpi_changed(const wxRect &suggested_rect); + public: MainFrame(); ~MainFrame() {} |