Modified menu for open/save/save as project (3mf) and import/export

This commit is contained in:
Enrico Turri 2018-11-15 15:27:39 +01:00
parent a82c07e8cc
commit 9bb04ff15a
8 changed files with 242 additions and 16 deletions

View file

@ -57,8 +57,10 @@ class MainFrame : public wxFrame
wxMenuItem* m_menu_item_repeat { nullptr };
wxMenuItem* m_menu_item_reslice_now { nullptr };
wxMenu* m_plater_menu { nullptr };
#if !ENABLE_NEW_MENU_LAYOUT
wxMenu* m_plater_menu{ nullptr };
wxMenu* m_viewMenu{ nullptr };
#endif // !ENABLE_NEW_MENU_LAYOUT
std::string get_base_name(const wxString full_name) const ;
std::string get_dir_name(const wxString full_name) const ;
@ -67,6 +69,12 @@ class MainFrame : public wxFrame
void on_value_changed(wxCommandEvent&);
Tab* get_tab(const std::string& name);
#if ENABLE_NEW_MENU_LAYOUT
bool can_save() const;
bool can_export_model() const;
bool can_export_gcode() const;
#endif // ENABLE_NEW_MENU_LAYOUT
public:
MainFrame() {}
MainFrame(const bool no_plater, const bool loaded);