From 91c7bc43d3c991f742df158c3c17d7d9525798df Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 23 Jan 2018 11:37:45 +0100 Subject: [PATCH] Added new files missing from the previous commit. --- xs/src/slic3r/GUI/TabIface.cpp | 9 +++++++++ xs/src/slic3r/GUI/TabIface.hpp | 18 ++++++++++++++++++ xs/xsp/GUI_Tab.xsp | 13 +++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 xs/src/slic3r/GUI/TabIface.cpp create mode 100644 xs/src/slic3r/GUI/TabIface.hpp create mode 100644 xs/xsp/GUI_Tab.xsp diff --git a/xs/src/slic3r/GUI/TabIface.cpp b/xs/src/slic3r/GUI/TabIface.cpp new file mode 100644 index 000000000..0155effc7 --- /dev/null +++ b/xs/src/slic3r/GUI/TabIface.cpp @@ -0,0 +1,9 @@ +#include "TabIface.hpp" +#include "Tab.h" + +namespace Slic3r { + +void TabIface::load_current_preset() { m_tab->load_current_preset(); } +void TabIface::rebuild_page_tree() { m_tab->rebuild_page_tree(); } + +}; // namespace Slic3r diff --git a/xs/src/slic3r/GUI/TabIface.hpp b/xs/src/slic3r/GUI/TabIface.hpp new file mode 100644 index 000000000..a77cb7255 --- /dev/null +++ b/xs/src/slic3r/GUI/TabIface.hpp @@ -0,0 +1,18 @@ +namespace Slic3r { + +namespace GUI { + class Tab; +}; + +class TabIface { +public: + TabIface() : m_tab(nullptr) {} + TabIface(GUI::Tab *tab) : m_tab(tab) {} +// TabIface(const TabIface &rhs) : m_tab(rhs.m_tab) {} + void load_current_preset(); + void rebuild_page_tree(); +protected: + GUI::Tab *m_tab; +}; + +}; // namespace Slic3r diff --git a/xs/xsp/GUI_Tab.xsp b/xs/xsp/GUI_Tab.xsp new file mode 100644 index 000000000..a557e0f19 --- /dev/null +++ b/xs/xsp/GUI_Tab.xsp @@ -0,0 +1,13 @@ +%module{Slic3r::XS}; + +%{ +#include +#include "slic3r/GUI/TabIface.hpp" +%} + +%name{Slic3r::GUI::Tab2} class TabIface { + TabIface(); + ~TabIface(); + void load_current_preset(); + void rebuild_page_tree(); +};