OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
WebView.cpp File Reference
#include "WebView.hpp"
#include "slic3r/GUI/Widgets/StateColor.hpp"
#include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/Utils/MacDarkMode.hpp"
#include <algorithm>
#include <boost/log/trivial.hpp>
#include <cassert>
#include <chrono>
#include <cstddef>
#include <exception>
#include <thread>
#include <wx/setup.h>
#include <wx/webview.h>
#include <wx/string.h>
#include <wx/gdicmn.h>
#include <wx/sharedptr.h>
#include <wx/vector.h>
#include <wx/event.h>
#include <vector>
#include <wx/object.h>
#include <wx/log.h>
#include <utility>
#include <wx/webviewarchivehandler.h>
#include <wx/webviewfshandler.h>
#include <wx/weakref.h>
#include <wx/uri.h>
#include <wx/filename.h>
#include <wx/stdpaths.h>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <ios>
#include <string>
#include <wx/versioninfo.h>
Include dependency graph for WebView.cpp:

Go to the source code of this file.

Classes

class  FakeWebView
class  WebViewRef

Functions

 wxDEFINE_EVENT (EVT_WEBVIEW_RECREATED, wxCommandEvent)
static WebViewRef * webview_ref (wxWebView *webView)

Variables

static std::vector< wxWebView * > g_webviews
static std::vector< wxWeakRef< wxWebView > > g_delay_webviews

Function Documentation

◆ webview_ref()

WebViewRef * webview_ref ( wxWebView * webView)
static
292{
293 return webView ? static_cast<WebViewRef *>(webView->GetRefData()) : nullptr;
294}
Definition WebView.cpp:277

Referenced by WebView::CreateWebView(), and WebView::MarkScriptMessageHandlerAdded().

Here is the caller graph for this function:

◆ wxDEFINE_EVENT()

wxDEFINE_EVENT ( EVT_WEBVIEW_RECREATED ,
wxCommandEvent  )

Variable Documentation

◆ g_delay_webviews

std::vector<wxWeakRef<wxWebView> > g_delay_webviews
static

Referenced by WebView::CreateWebView().

◆ g_webviews

std::vector<wxWebView*> g_webviews
static