#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/plugin/host/PluginPages.hpp>
Public Member Functions | |
| PluginPage (wxWindow *parent, std::shared_ptr< PagesPluginCapability > capability) | |
| ~PluginPage () override | |
| PluginPage ()=delete | |
| void | detach_capability () |
| void | push_message (const std::string &message) |
Protected Member Functions | |
| std::optional< std::string > | page_html () override |
| bool | on_page_message (const std::string &kind, const nlohmann::json &data) override |
| wxWebView * | browser () const |
| void | post_to_page (const std::string &json) |
Private Member Functions | |
| void | on_new_window (wxWebViewEvent &event) |
| 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 | |
| std::shared_ptr< PagesPluginCapability > | m_cap |
| std::shared_ptr< std::atomic< PluginPage * > > | m_lifetime |
| wxWebView * | m_browser {nullptr} |
| bool | m_content_loaded {false} |
| bool | m_own_page_load {false} |
| bool | m_content_navigated {false} |
| Slic3r::PluginPage::PluginPage | ( | wxWindow * | parent, |
| std::shared_ptr< PagesPluginCapability > | capability ) |
References PluginPage(), Slic3r::GUI::WebPanel::WebPanel(), Slic3r::GUI::WebPanel::browser(), m_cap, m_lifetime, and on_new_window().
Referenced by PluginPage().
|
override |
References detach_capability(), and m_lifetime.
|
delete |
|
privateinherited |
References m_browser, WebView::RunScript(), and Slic3r::GUI::WebViewHostDialog::theme_apply_script().
Referenced by on_load_event(), and on_webview_recreated().
|
inlineprotectedinherited |
References m_browser.
Referenced by Slic3r::GUI::DockPanel::DockPanel(), Slic3r::PluginPage::PluginPage(), and Slic3r::PluginPage::on_new_window().
| void Slic3r::PluginPage::detach_capability | ( | ) |
References m_cap, and m_lifetime.
Referenced by ~PluginPage(), and page_html().
|
privateinherited |
References Slic3r::GUI::web_hosting::content_base_url(), m_browser, m_own_page_load, and page_html().
Referenced by on_load_event().
|
privateinherited |
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().
|
privateinherited |
References Slic3r::GUI::web_hosting::is_content_url(), and m_content_navigated.
Referenced by WebPanel().
|
private |
References Slic3r::GUI::WebPanel::browser().
Referenced by PluginPage().
|
overrideprotectedvirtual |
Implements Slic3r::GUI::WebPanel.
References m_cap.
|
privateinherited |
References on_page_message().
Referenced by WebPanel().
|
privateinherited |
References apply_theme(), and m_browser.
Referenced by WebPanel().
|
overrideprotectedvirtual |
Implements Slic3r::GUI::WebPanel.
References detach_capability(), and m_cap.
|
protectedinherited |
References m_browser, and WebView::RunScript().
Referenced by Slic3r::GUI::DockPanel::push_message(), and Slic3r::PluginPage::push_message().
| void Slic3r::PluginPage::push_message | ( | const std::string & | message | ) |
References Slic3r::GUI::WebPanel::post_to_page().
|
privateinherited |
Referenced by WebPanel(), apply_theme(), browser(), load_page_html(), on_webview_recreated(), and post_to_page().
|
private |
Referenced by PluginPage(), detach_capability(), on_page_message(), and page_html().
|
privateinherited |
Referenced by on_load_event().
|
privateinherited |
Referenced by on_load_event(), and on_navigated().
|
private |
Referenced by PluginPage(), ~PluginPage(), and detach_capability().
|
privateinherited |
Referenced by load_page_html(), and on_load_event().