Added new files missing from the previous commit.

This commit is contained in:
bubnikv 2018-01-23 11:37:45 +01:00
parent 09c9f6bdc3
commit 91c7bc43d3
3 changed files with 40 additions and 0 deletions

View File

@ -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

View File

@ -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

13
xs/xsp/GUI_Tab.xsp Normal file
View File

@ -0,0 +1,13 @@
%module{Slic3r::XS};
%{
#include <xsinit.h>
#include "slic3r/GUI/TabIface.hpp"
%}
%name{Slic3r::GUI::Tab2} class TabIface {
TabIface();
~TabIface();
void load_current_preset();
void rebuild_page_tree();
};