Public Member Functions | |
| ElegooPrinterWebViewHandler (PrinterWebView &owner) | |
| ~ElegooPrinterWebViewHandler () override | |
| void | on_script_message (wxWebViewEvent &evt) override |
| virtual void | on_loaded (wxWebViewEvent &evt) |
Protected Member Functions | |
| PrinterWebView & | owner () const |
| wxWebView * | browser () const |
Private Member Functions | |
| void | send_ipc_message (const char *type, const std::string &request_id, const std::string &method, int code, const std::string &message, const std::string &data_json="{}") |
| void | handle_upload_request (const std::string &request_id, const std::string &method, const std::string ¶ms_json) |
| void | handle_open_file_dialog_request (const std::string &request_id, const std::string &method, const std::string ¶ms_json) |
| void | handle_get_sn_request (const std::string &request_id, const std::string &method) |
Private Attributes | |
| std::atomic< bool > | upload_in_progress { false } |
| std::atomic< bool > | stop_upload { false } |
| std::thread | upload_thread |
| PrinterWebView & | m_owner |
|
inlineexplicit |
References Slic3r::GUI::PrinterWebViewHandler::PrinterWebViewHandler(), and Slic3r::GUI::PrinterWebViewHandler::owner().
|
inlineoverride |
References stop_upload, and upload_thread.
|
protectedinherited |
References m_owner.
Referenced by Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::ElegooPrinterWebViewHandler::send_ipc_message().
|
inlineprivate |
References Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::dump_json(), Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::get_active_printer_config(), Slic3r::PrintHost::get_print_host(), and send_ipc_message().
Referenced by on_script_message().
|
inlineprivate |
References _L, _u8L, Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::dump_json(), Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::json_string(), Slic3r::GUI::PrinterWebViewHandler::owner(), and send_ipc_message().
Referenced by on_script_message().
|
inlineprivate |
References Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::dump_json(), Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::filename_to_utf8(), Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::get_active_printer_config(), Slic3r::PrintHost::get_print_host(), Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::json_string(), Slic3r::None, Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::path_from_utf8(), Slic3r::PrintHostUpload::post_action, send_ipc_message(), Slic3r::PrintHostUpload::source_path, stop_upload, Slic3r::Http::Progress::ulnow, Slic3r::Http::Progress::ultotal, upload_in_progress, Slic3r::PrintHostUpload::upload_path, upload_thread, and Slic3r::PrintHostUpload::use_3mf.
Referenced by on_script_message().
|
virtualinherited |
|
inlineoverridevirtual |
Reimplemented from Slic3r::GUI::PrinterWebViewHandler.
References Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::dump_json(), handle_get_sn_request(), handle_open_file_dialog_request(), handle_upload_request(), Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::json_string(), and send_ipc_message().
|
protectedinherited |
References m_owner.
Referenced by Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::ElegooPrinterWebViewHandler::ElegooPrinterWebViewHandler(), PrinterWebViewHandler(), and Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::ElegooPrinterWebViewHandler::handle_open_file_dialog_request().
|
inlineprivate |
References Slic3r::GUI::PrinterWebViewHandler::browser(), Slic3r::GUI::anonymous_namespace{PrinterWebViewHandler.cpp}::dump_json(), and WebView::RunScript().
Referenced by handle_get_sn_request(), handle_open_file_dialog_request(), handle_upload_request(), and on_script_message().
|
privateinherited |
Referenced by PrinterWebViewHandler(), browser(), and owner().
|
private |
Referenced by ~ElegooPrinterWebViewHandler(), and handle_upload_request().
|
private |
Referenced by handle_upload_request().
|
private |
Referenced by ~ElegooPrinterWebViewHandler(), and handle_upload_request().