Add support for PrusaLink webview

This commit is contained in:
SoftFever 2023-08-30 23:38:33 +08:00
parent 4564945b48
commit 80082464cb
6 changed files with 71 additions and 20 deletions

View file

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