Added "update", "update_serial_ports" & "extruders_count_changed" for TabPrinter.

Extended "build" for TabPrinter.
This commit is contained in:
YuSanka
2018-01-12 17:16:59 +01:00
parent d3b4dbf8bc
commit 2809b4b2b5
2 changed files with 132 additions and 49 deletions

View File

@@ -99,8 +99,7 @@ public:
PresetBundle* m_preset_bundle;
bool m_no_controller;
PresetCollection* m_presets;
DynamicPrintConfig* m_config; //! tmp_val
const ConfigDef* m_config_def; // It will be used in get_option_(const std::string title)
DynamicPrintConfig* m_config;
t_change m_on_value_change{ nullptr };
public:
@@ -185,8 +184,8 @@ public:
class TabPrinter : public Tab
{
public:
wxButton* serial_test_btn;
wxButton* octoprint_host_test_btn;
wxButton* m_serial_test_btn;
wxButton* m_octoprint_host_test_btn;
size_t m_extruders_count;
@@ -196,7 +195,9 @@ public:
~TabPrinter(){}
void build() override;
void update() override{};
void update() override;
void update_serial_ports();
void extruders_count_changed(size_t extruders_count);
void build_extruder_pages();
};