mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
Add support for PrusaLink webview
This commit is contained in:
parent
4564945b48
commit
80082464cb
6 changed files with 71 additions and 20 deletions
|
@ -2,6 +2,7 @@
|
|||
#define slic3r_Events_hpp_
|
||||
|
||||
#include <array>
|
||||
#include <wx/debug.h>
|
||||
#include <wx/event.h>
|
||||
|
||||
|
||||
|
@ -86,6 +87,27 @@ template<class T> struct Event : public wxEvent
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
class LoadPrinterViewEvent : public wxCommandEvent
|
||||
{
|
||||
public:
|
||||
LoadPrinterViewEvent(wxEventType commandType = wxEVT_NULL, int winid = 0)
|
||||
: wxCommandEvent(commandType, winid)
|
||||
{ }
|
||||
|
||||
LoadPrinterViewEvent(const LoadPrinterViewEvent& event)
|
||||
: wxCommandEvent(event)
|
||||
{ m_APIkey = event.m_APIkey; }
|
||||
|
||||
const wxString& GetAPIkey() const { return m_APIkey; }
|
||||
void SetAPIkey(const wxString& apikey) { m_APIkey = apikey; }
|
||||
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new LoadPrinterViewEvent(*this); }
|
||||
|
||||
private:
|
||||
wxString m_APIkey;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue