Moved plater stubs to its own cpp

This commit is contained in:
Joseph Lenox 2018-04-28 23:37:27 -05:00
parent 87b3f9582e
commit c2d10aeeed
3 changed files with 23 additions and 6 deletions

View File

@ -177,10 +177,11 @@ IF(wxWidgets_FOUND)
include_directories(${wxWidgets_INCLUDE}) include_directories(${wxWidgets_INCLUDE})
add_library(slic3r_gui STATIC add_library(slic3r_gui STATIC
${GUI_LIBDIR}/MainFrame.cpp
${GUI_LIBDIR}/GUI.cpp
${GUI_LIBDIR}/Settings.cpp
${GUI_LIBDIR}/AboutDialog.cpp ${GUI_LIBDIR}/AboutDialog.cpp
${GUI_LIBDIR}/GUI.cpp
${GUI_LIBDIR}/MainFrame.cpp
${GUI_LIBDIR}/Plater.cpp
${GUI_LIBDIR}/Settings.cpp
${GUI_LIBDIR}/misc_ui.cpp ${GUI_LIBDIR}/misc_ui.cpp
) )
#only build GUI lib if building with wx #only build GUI lib if building with wx

13
src/GUI/Plater.cpp Normal file
View File

@ -0,0 +1,13 @@
#include "Plater.hpp"
namespace Slic3r { namespace GUI {
Plater::Plater(wxWindow* parent, const wxString& title) :
wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, title) { }
void Plater::add() {
}
}} // Namespace Slic3r::GUI

View File

@ -1,14 +1,17 @@
#ifndef PLATER_HPP #ifndef PLATER_HPP
#define PLATER_HPP #define PLATER_HPP
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
namespace Slic3r { namespace GUI { namespace Slic3r { namespace GUI {
class Plater : public wxPanel class Plater : public wxPanel
{ {
public: public:
Plater(wxWindow* parent, const wxString& title) : Plater(wxWindow* parent, const wxString& title);
wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, title) void add();
{ }
}; };