diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2019-07-12 16:36:01 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2019-07-12 16:36:01 +0300 |
commit | de88db59180822ddffd3b94bbd7b370a4971f196 (patch) | |
tree | 2c27d94c82142ad13ebaa6382d6a00a99601450e /src/slic3r/GUI/MainFrame.hpp | |
parent | cc70c8dff9c6b9395845caba0542954276081613 (diff) |
#2616 - Added Recent projects item to File menu
Diffstat (limited to 'src/slic3r/GUI/MainFrame.hpp')
-rw-r--r-- | src/slic3r/GUI/MainFrame.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slic3r/GUI/MainFrame.hpp b/src/slic3r/GUI/MainFrame.hpp index 805b663bb..a41f33824 100644 --- a/src/slic3r/GUI/MainFrame.hpp +++ b/src/slic3r/GUI/MainFrame.hpp @@ -6,6 +6,7 @@ #include <wx/frame.h> #include <wx/settings.h> #include <wx/string.h> +#include <wx/filehistory.h> #include <string> #include <map> @@ -84,6 +85,8 @@ class MainFrame : public DPIFrame // vector of a MenuBar items changeable in respect to printer technology std::vector<wxMenuItem*> m_changeable_menu_items; + wxFileHistory m_recent_projects; + protected: virtual void on_dpi_changed(const wxRect &suggested_rect); @@ -121,6 +124,8 @@ public: // Propagate changed configuration from the Tab to the Platter and save changes to the AppConfig void on_config_changed(DynamicPrintConfig* cfg) const ; + void add_to_recent_projects(const wxString& filename); + PrintHostQueueDialog* printhost_queue_dlg() { return m_printhost_queue_dlg; } Plater* m_plater { nullptr }; |