Implement per-screen DPI on Windows, DPI change event, wxDialog & wxFrame mixin base classes

This commit is contained in:
Vojtech Kral 2019-04-02 12:00:50 +02:00
parent af05e5fc2c
commit 7e32f2df71
5 changed files with 159 additions and 2 deletions

View file

@ -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() {}