Fixed menubar item's name in respect to printer_technology

This commit is contained in:
YuSanka 2019-04-30 13:51:36 +02:00
parent 52c28578d6
commit 646986348a
3 changed files with 31 additions and 2 deletions

View file

@ -70,6 +70,16 @@ class MainFrame : public DPIFrame
bool can_delete() const;
bool can_delete_all() const;
// MenuBar items changeable in respect to printer technology
enum MenuItems
{ // FFF SLA
miExport = 0, // Export G-code Export
miMaterialTab, // Filament Settings Material Settings
};
// vector of a MenuBar items changeable in respect to printer technology
std::vector<wxMenuItem*> m_changeable_menu_items;
protected:
virtual void on_dpi_changed(const wxRect &suggested_rect);
@ -83,6 +93,7 @@ public:
void create_preset_tabs();
void add_created_tab(Tab* panel);
void init_menubar();
void update_menubar();
void update_ui_from_settings();
bool is_loaded() const { return m_loaded; }