Added new files missing from the previous commit.
This commit is contained in:
parent
09c9f6bdc3
commit
91c7bc43d3
9
xs/src/slic3r/GUI/TabIface.cpp
Normal file
9
xs/src/slic3r/GUI/TabIface.cpp
Normal 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
|
18
xs/src/slic3r/GUI/TabIface.hpp
Normal file
18
xs/src/slic3r/GUI/TabIface.hpp
Normal 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
13
xs/xsp/GUI_Tab.xsp
Normal 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();
|
||||
};
|
Loading…
Reference in New Issue
Block a user