Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-09-19 12:02:24 +0300
committerbubnikv <bubnikv@gmail.com>2018-09-19 12:02:24 +0300
commit0558b53493a77bae44831cf87bb0f59359828ef5 (patch)
treec3e8dbdf7d91a051c12d9ebbf7606d41047fea96 /src/slic3r/GUI/TabIface.cpp
parent3ddaccb6410478ad02d8c0e02d6d8e6eb1785b9f (diff)
WIP: Moved sources int src/, separated most of the source code from Perl.
The XS was left only for the unit / integration tests, and it links libslic3r only. No wxWidgets are allowed to be used from Perl starting from now.
Diffstat (limited to 'src/slic3r/GUI/TabIface.cpp')
-rw-r--r--src/slic3r/GUI/TabIface.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/slic3r/GUI/TabIface.cpp b/src/slic3r/GUI/TabIface.cpp
new file mode 100644
index 000000000..29833322b
--- /dev/null
+++ b/src/slic3r/GUI/TabIface.cpp
@@ -0,0 +1,20 @@
+#include "TabIface.hpp"
+#include "Tab.hpp"
+
+namespace Slic3r {
+
+void TabIface::load_current_preset() { m_tab->load_current_preset(); }
+void TabIface::update_tab_ui() { m_tab->update_tab_ui(); }
+void TabIface::update_ui_from_settings() { m_tab->update_ui_from_settings();}
+void TabIface::select_preset(char* name) { m_tab->select_preset(name);}
+void TabIface::load_config(DynamicPrintConfig* config) { m_tab->load_config(*config);}
+void TabIface::load_key_value(char* opt_key, char* value){ m_tab->load_key_value(opt_key, static_cast<std::string>(value)); }
+bool TabIface::current_preset_is_dirty() { return m_tab->current_preset_is_dirty();}
+void TabIface::OnActivate() { return m_tab->OnActivate();}
+size_t TabIface::get_selected_preset_item() { return m_tab->get_selected_preset_item(); }
+std::string TabIface::title() { return m_tab->title().ToUTF8().data(); }
+DynamicPrintConfig* TabIface::get_config() { return m_tab->get_config(); }
+PresetCollection* TabIface::get_presets() { return m_tab!=nullptr ? m_tab->get_presets() : nullptr; }
+std::vector<std::string> TabIface::get_dependent_tabs() { return m_tab->get_dependent_tabs(); }
+
+}; // namespace Slic3r