mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-10 04:20:08 +00:00
25 lines
599 B
C++
25 lines
599 B
C++
#ifndef slic3r_GUI_WebView_hpp_
|
|
#define slic3r_GUI_WebView_hpp_
|
|
|
|
#include <wx/webview.h>
|
|
#include <wx/event.h>
|
|
|
|
wxDECLARE_EVENT(EVT_WEBVIEW_RECREATED, wxCommandEvent);
|
|
|
|
class WebView
|
|
{
|
|
public:
|
|
static wxWebView *CreateWebView(wxWindow *parent, wxString const &url);
|
|
#if wxUSE_WEBVIEW_EDGE
|
|
static bool CheckWebViewRuntime();
|
|
static bool DownloadAndInstallWebViewRuntime();
|
|
#endif
|
|
static void LoadUrl(wxWebView * webView, wxString const &url);
|
|
|
|
static bool RunScript(wxWebView * webView, wxString const & msg);
|
|
|
|
static void RecreateAll();
|
|
};
|
|
|
|
#endif // !slic3r_GUI_WebView_hpp_
|