#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/WebPanel.hpp>
Public Member Functions | |
| WebPanel (wxWindow *parent, const char *bridge_script) | |
Protected Member Functions | |
| wxWebView * | browser () const |
| void | post_to_page (const std::string &json) |
| virtual std::optional< std::string > | page_html ()=0 |
| virtual bool | on_page_message (const std::string &kind, const nlohmann::json &data)=0 |
Private Member Functions | |
| void | on_load_event (wxWebViewEvent &event) |
| void | on_navigated (wxWebViewEvent &event) |
| void | on_script_message (wxWebViewEvent &event) |
| void | on_webview_recreated (wxCommandEvent &event) |
| void | apply_theme () |
| void | load_page_html () |
Private Attributes | |
| wxWebView * | m_browser {nullptr} |
| bool | m_content_loaded {false} |
| bool | m_own_page_load {false} |
| bool | m_content_navigated {false} |
| Slic3r::GUI::WebPanel::WebPanel | ( | wxWindow * | parent, |
| const char * | bridge_script ) |
References Slic3r::GUI::web_hosting::bootstrap_url(), WebView::CreateWebView(), Slic3r::GUI::WebViewHostDialog::element_defaults_user_script(), m_browser, on_load_event(), on_navigated(), on_script_message(), on_webview_recreated(), and Slic3r::GUI::WebViewHostDialog::theme_user_script().
Referenced by Slic3r::GUI::DockPanel::DockPanel(), and Slic3r::PluginPage::PluginPage().
|
private |
References m_browser, WebView::RunScript(), and Slic3r::GUI::WebViewHostDialog::theme_apply_script().
Referenced by on_load_event(), and on_webview_recreated().
|
inlineprotected |
References m_browser.
Referenced by Slic3r::GUI::DockPanel::DockPanel(), Slic3r::PluginPage::PluginPage(), and Slic3r::PluginPage::on_new_window().
|
private |
References Slic3r::GUI::web_hosting::content_base_url(), m_browser, m_own_page_load, and page_html().
Referenced by on_load_event().
|
private |
References apply_theme(), Slic3r::GUI::web_hosting::is_content_url(), load_page_html(), m_content_loaded, m_content_navigated, and m_own_page_load.
Referenced by WebPanel().
|
private |
References Slic3r::GUI::web_hosting::is_content_url(), and m_content_navigated.
Referenced by WebPanel().
|
protectedpure virtual |
Implemented in Slic3r::GUI::DockPanel, and Slic3r::PluginPage.
Referenced by on_script_message().
|
private |
References on_page_message().
Referenced by WebPanel().
|
private |
References apply_theme(), and m_browser.
Referenced by WebPanel().
|
protectedpure virtual |
Implemented in Slic3r::GUI::DockPanel, and Slic3r::PluginPage.
Referenced by load_page_html().
|
protected |
References m_browser, and WebView::RunScript().
Referenced by Slic3r::GUI::DockPanel::push_message(), and Slic3r::PluginPage::push_message().
|
private |
Referenced by WebPanel(), apply_theme(), browser(), load_page_html(), on_webview_recreated(), and post_to_page().
|
private |
Referenced by on_load_event().
|
private |
Referenced by on_load_event(), and on_navigated().
|
private |
Referenced by load_page_html(), and on_load_event().