Classes | |
| struct | GilSafeCallable |
| class | UiRegistry |
| struct | UiWindowHandle |
| struct | UiProgressHandle |
| struct | UiDockPanelHandle |
| class | PlaterShownWaiter |
Typedefs | |
| using | CallablePtr = std::shared_ptr<GilSafeCallable> |
Functions | |
| CallablePtr | make_holder (py::object obj) |
| GUI::WebDialog::MessageHandler | make_message_adapter (py::object on_message) |
| GUI::WebDialog::SubmitHandler | make_submit_adapter (py::object on_submit) |
| std::function< void()> | make_close_adapter (const CallablePtr &holder) |
| bool | app_closing () |
| template<typename Fn> | |
| auto | run_on_ui_blocking (Fn &&fn) -> std::invoke_result_t< Fn & > |
| wxWindow * | ui_parent () |
| long | message_style (const std::string &buttons, const std::string &icon) |
| std::string | button_to_string (int rc) |
| std::string | ui_message (const std::string &text, const std::string &title, const std::string &buttons, const std::string &icon) |
| py::object | ui_create_window (const std::string &html, const std::string &title, int width, int height, py::object on_message, py::object on_close, long style, py::object on_submit) |
| void | run_when_plater_shown (std::function< void(GUI::Plater *)> fn) |
| py::object | ui_create_dock_panel (const std::string &html, const std::string &title, int width, int height, py::object on_message, py::object on_close, const std::string &dock) |
| void | handle_post (int id, py::object data) |
| void | handle_close (int id) |
| void | handle_show (int id, bool show) |
| UiProgressHandle | ui_create_progress_dialog (const std::string &title, const std::string &message, int maximum, int style) |
| UiProgressHandle * | new_progress_dialog (const std::string &title, const std::string &message, int maximum, int style) |
| bool | progress_is_open (int id) |
| bool | progress_pulse (int id, const std::string &message) |
| bool | progress_update (int id, int value, const std::string &message) |
| void | progress_start_pulse (int id, int interval_ms, const std::string &message) |
| void | progress_stop_pulse (int id) |
| void | progress_close (int id) |
| void | plater_notification (GUI::NotificationManager::NotificationLevel notification_level, const std::string &text, const std::string &hypertext, py::object on_click) |
Variables | |
| constexpr long | WINDOW_MODELESS = 0L |
| constexpr long | WINDOW_MODAL = 1L << 0 |
| constexpr long | PLUGIN_WX_STYLE = wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxMAXIMIZE_BOX | wxRESIZE_BORDER |
| constexpr const char * | DOCK_POSITIONS [] = {"left", "right", "bottom", "float"} |
| using Slic3r::anonymous_namespace{PluginHostUi.cpp}::CallablePtr = std::shared_ptr<GilSafeCallable> |
| bool Slic3r::anonymous_namespace{PluginHostUi.cpp}::app_closing | ( | ) |
References app_closing().
Referenced by app_closing(), and run_on_ui_blocking().
| std::string Slic3r::anonymous_namespace{PluginHostUi.cpp}::button_to_string | ( | int | rc | ) |
References button_to_string().
Referenced by button_to_string(), and ui_message().
| void Slic3r::anonymous_namespace{PluginHostUi.cpp}::handle_close | ( | int | id | ) |
References handle_close(), Slic3r::anonymous_namespace{PluginHostUi.cpp}::UiRegistry::instance(), and Slic3r::GUI::WebDialog::request_close().
Referenced by handle_close().
| void Slic3r::anonymous_namespace{PluginHostUi.cpp}::handle_post | ( | int | id, |
| py::object | data ) |
References handle_post(), Slic3r::anonymous_namespace{PluginHostUi.cpp}::UiRegistry::instance(), Slic3r::GUI::WebDialog::post_message(), and Slic3r::py_to_json().
Referenced by handle_post().
| void Slic3r::anonymous_namespace{PluginHostUi.cpp}::handle_show | ( | int | id, |
| bool | show ) |
References handle_show(), Slic3r::anonymous_namespace{PluginHostUi.cpp}::UiRegistry::instance(), and Slic3r::GUI::Plater::show_dock_pane().
Referenced by handle_show().
| std::function< void()> Slic3r::anonymous_namespace{PluginHostUi.cpp}::make_close_adapter | ( | const CallablePtr & | holder | ) |
References make_close_adapter().
Referenced by make_close_adapter(), ui_create_dock_panel(), and ui_create_window().
| CallablePtr Slic3r::anonymous_namespace{PluginHostUi.cpp}::make_holder | ( | py::object | obj | ) |
References make_holder().
Referenced by make_holder(), make_message_adapter(), make_submit_adapter(), plater_notification(), ui_create_dock_panel(), and ui_create_window().
| GUI::WebDialog::MessageHandler Slic3r::anonymous_namespace{PluginHostUi.cpp}::make_message_adapter | ( | py::object | on_message | ) |
References Slic3r::json_to_py(), make_holder(), and make_message_adapter().
Referenced by make_message_adapter(), ui_create_dock_panel(), and ui_create_window().
| GUI::WebDialog::SubmitHandler Slic3r::anonymous_namespace{PluginHostUi.cpp}::make_submit_adapter | ( | py::object | on_submit | ) |
References Slic3r::json_to_py(), make_holder(), and make_submit_adapter().
Referenced by make_submit_adapter(), and ui_create_window().
| long Slic3r::anonymous_namespace{PluginHostUi.cpp}::message_style | ( | const std::string & | buttons, |
| const std::string & | icon ) |
References message_style(), and style.
Referenced by message_style(), and ui_message().
| UiProgressHandle * Slic3r::anonymous_namespace{PluginHostUi.cpp}::new_progress_dialog | ( | const std::string & | title, |
| const std::string & | message, | ||
| int | maximum, | ||
| int | style ) |
References new_progress_dialog(), style, and ui_create_progress_dialog().
Referenced by new_progress_dialog().
| void Slic3r::anonymous_namespace{PluginHostUi.cpp}::plater_notification | ( | GUI::NotificationManager::NotificationLevel | notification_level, |
| const std::string & | text, | ||
| const std::string & | hypertext, | ||
| py::object | on_click ) |
References Slic3r::PluginAuditManager::current_plugin(), Slic3r::GUI::CustomNotification, Slic3r::anonymous_namespace{PluginHostUi.cpp}::UiRegistry::instance(), Slic3r::PluginAuditManager::instance(), make_holder(), plater_notification(), and run_on_ui_blocking().
Referenced by plater_notification().
| void Slic3r::anonymous_namespace{PluginHostUi.cpp}::progress_close | ( | int | id | ) |
References Slic3r::anonymous_namespace{PluginHostUi.cpp}::UiRegistry::instance(), progress_close(), Slic3r::GUI::PluginProgressDialog::request_close(), and run_on_ui_blocking().
Referenced by progress_close().
| bool Slic3r::anonymous_namespace{PluginHostUi.cpp}::progress_is_open | ( | int | id | ) |
References Slic3r::anonymous_namespace{PluginHostUi.cpp}::UiRegistry::instance(), and progress_is_open().
Referenced by progress_is_open().
| bool Slic3r::anonymous_namespace{PluginHostUi.cpp}::progress_pulse | ( | int | id, |
| const std::string & | message ) |
References Slic3r::anonymous_namespace{PluginHostUi.cpp}::UiRegistry::instance(), progress_pulse(), Slic3r::GUI::PluginProgressDialog::pulse(), and run_on_ui_blocking().
Referenced by progress_pulse().
| void Slic3r::anonymous_namespace{PluginHostUi.cpp}::progress_start_pulse | ( | int | id, |
| int | interval_ms, | ||
| const std::string & | message ) |
References Slic3r::anonymous_namespace{PluginHostUi.cpp}::UiRegistry::instance(), progress_start_pulse(), run_on_ui_blocking(), and Slic3r::GUI::PluginProgressDialog::start_pulse().
Referenced by progress_start_pulse().
| void Slic3r::anonymous_namespace{PluginHostUi.cpp}::progress_stop_pulse | ( | int | id | ) |
References Slic3r::anonymous_namespace{PluginHostUi.cpp}::UiRegistry::instance(), progress_stop_pulse(), run_on_ui_blocking(), and Slic3r::GUI::PluginProgressDialog::stop_pulse().
Referenced by progress_stop_pulse().
| bool Slic3r::anonymous_namespace{PluginHostUi.cpp}::progress_update | ( | int | id, |
| int | value, | ||
| const std::string & | message ) |
References Slic3r::anonymous_namespace{PluginHostUi.cpp}::UiRegistry::instance(), progress_update(), run_on_ui_blocking(), and Slic3r::GUI::PluginProgressDialog::update().
Referenced by progress_update().
| auto Slic3r::anonymous_namespace{PluginHostUi.cpp}::run_on_ui_blocking | ( | Fn && | fn | ) | ->std::invoke_result_t< Fn & > |
References app_closing(), and run_on_ui_blocking().
Referenced by plater_notification(), progress_close(), progress_pulse(), progress_start_pulse(), progress_stop_pulse(), progress_update(), run_on_ui_blocking(), ui_create_progress_dialog(), and ui_message().
| void Slic3r::anonymous_namespace{PluginHostUi.cpp}::run_when_plater_shown | ( | std::function< void(GUI::Plater *)> | fn | ) |
References run_when_plater_shown().
Referenced by run_when_plater_shown(), and ui_create_dock_panel().
| py::object Slic3r::anonymous_namespace{PluginHostUi.cpp}::ui_create_dock_panel | ( | const std::string & | html, |
| const std::string & | title, | ||
| int | width, | ||
| int | height, | ||
| py::object | on_message, | ||
| py::object | on_close, | ||
| const std::string & | dock ) |
References Slic3r::GUI::Plater::add_dock_pane(), Slic3r::PluginAuditManager::current_plugin(), DOCK_POSITIONS, Slic3r::anonymous_namespace{PluginHostUi.cpp}::UiRegistry::instance(), Slic3r::PluginAuditManager::instance(), make_close_adapter(), make_holder(), make_message_adapter(), Slic3r::GUI::plugin_pane_name(), run_when_plater_shown(), and ui_create_dock_panel().
Referenced by ui_create_dock_panel().
| UiProgressHandle Slic3r::anonymous_namespace{PluginHostUi.cpp}::ui_create_progress_dialog | ( | const std::string & | title, |
| const std::string & | message, | ||
| int | maximum, | ||
| int | style ) |
References Slic3r::GUI::PluginProgressDialog::create_dialog(), Slic3r::PluginAuditManager::current_plugin(), Slic3r::anonymous_namespace{PluginHostUi.cpp}::UiRegistry::instance(), Slic3r::PluginAuditManager::instance(), run_on_ui_blocking(), style, ui_create_progress_dialog(), and ui_parent().
Referenced by new_progress_dialog(), and ui_create_progress_dialog().
| py::object Slic3r::anonymous_namespace{PluginHostUi.cpp}::ui_create_window | ( | const std::string & | html, |
| const std::string & | title, | ||
| int | width, | ||
| int | height, | ||
| py::object | on_message, | ||
| py::object | on_close, | ||
| long | style, | ||
| py::object | on_submit ) |
References Slic3r::PluginAuditManager::current_plugin(), Slic3r::anonymous_namespace{PluginHostUi.cpp}::UiRegistry::instance(), Slic3r::PluginAuditManager::instance(), make_close_adapter(), make_holder(), make_message_adapter(), make_submit_adapter(), PLUGIN_WX_STYLE, style, ui_create_window(), ui_parent(), and WINDOW_MODAL.
Referenced by ui_create_window().
| std::string Slic3r::anonymous_namespace{PluginHostUi.cpp}::ui_message | ( | const std::string & | text, |
| const std::string & | title, | ||
| const std::string & | buttons, | ||
| const std::string & | icon ) |
References button_to_string(), message_style(), run_on_ui_blocking(), Slic3r::GUI::DPIAware< P >::ShowModal(), style, and ui_message().
Referenced by ui_message().
| wxWindow * Slic3r::anonymous_namespace{PluginHostUi.cpp}::ui_parent | ( | ) |
References ui_parent().
Referenced by ui_create_progress_dialog(), ui_create_window(), and ui_parent().
|
constexpr |
Referenced by ui_create_dock_panel().
|
constexpr |
Referenced by ui_create_window().
|
constexpr |
Referenced by ui_create_window().
|
constexpr |