#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Monitor.hpp>
Public Types | |
| enum | PrinterTab { PT_STATUS = 0 , PT_MEDIA = 1 , PT_UPDATE = 2 , PT_HMS = 3 , PT_DEBUG = 4 , PT_MAX_NUM = 5 } |
Public Member Functions | |
| MonitorPanel (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
| ~MonitorPanel () | |
| void | init_bitmap () |
| void | init_timer () |
| void | init_tabpanel () |
| Tabbook * | get_tabpanel () |
| void | set_default () |
| wxWindow * | create_side_tools () |
| void | on_sys_color_changed () |
| void | msw_rescale () |
| StatusPanel * | get_status_panel () |
| void | select_machine (std::string machine_sn) |
| void | on_timer (wxTimerEvent &event) |
| void | on_select_printer (wxCommandEvent &event) |
| void | on_printer_clicked (wxMouseEvent &event) |
| void | on_size (wxSizeEvent &event) |
| void | update_all () |
| void | update_hms_tag () |
| bool | Show (bool show) |
| void | show_status (int status) |
| std::string | get_string_from_tab (PrinterTab tab) |
| void | stop_update () |
| void | start_update () |
| void | jump_to_HMS () |
| void | jump_to_Upgrade () |
| void | jump_to_LiveView () |
| void | jump_to_Rack () |
| void | update_network_version_footer () |
| bool | built () const |
| bool | build_step () |
Static Public Member Functions | |
| static void | on_machine_selected (MachineObject *obj) |
| static MonitorPanel * | if_built () |
| static MonitorPanel * | ensure () |
| static void | when_built (std::function< void(MonitorPanel &)> fn) |
Public Attributes | |
| MachineObject * | obj { nullptr } |
| std::string | last_conn_type = "undedefined" |
Protected Member Functions | |
| void | add_build_step (std::function< void()> step) |
| void | add_build_steps_of (StagedBuild &child) |
Private Member Functions | |
| StagedBuild * | unfinished_child () const |
Private Attributes | |
| Tabbook * | m_tabpanel { nullptr } |
| wxSizer * | m_main_sizer { nullptr } |
| StatusPanel * | m_status_info_panel { nullptr } |
| MediaFilePanel * | m_media_file_panel { nullptr } |
| UpgradePanel * | m_upgrade_panel { nullptr } |
| HMSPanel * | m_hms_panel { nullptr } |
| SideTools * | m_side_tools {nullptr} |
| SelectMachinePopup | m_select_machine |
| wxBitmap | m_signal_strong_img |
| wxBitmap | m_signal_middle_img |
| wxBitmap | m_signal_weak_img |
| wxBitmap | m_signal_no_img |
| wxBitmap | m_printer_img |
| wxBitmap | m_arrow_img |
| int | last_status |
| bool | update_flag {false} |
| wxTimer * | m_refresh_timer = nullptr |
| std::vector< std::function< void()> > | m_steps |
| std::vector< StagedBuild * > | m_children |
| size_t | m_next_step { 0 } |
Static Private Attributes | |
| static Lazy< MonitorPanel > * | s_lazy |
| Slic3r::GUI::MonitorPanel::MonitorPanel | ( | wxWindow * | parent, |
| wxWindowID | id = wxID_ANY, | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize, | ||
| long | style = wxTAB_TRAVERSAL ) |
References init_bitmap(), init_tabpanel(), init_timer(), m_hms_panel, m_main_sizer, m_select_machine, m_side_tools, m_tabpanel, on_printer_clicked(), on_select_printer(), on_size(), on_timer(), style, and update_hms_tag().
| Slic3r::GUI::MonitorPanel::~MonitorPanel | ( | ) |
References m_refresh_timer, m_side_tools, and on_printer_clicked().
|
inlineprotectedinherited |
References m_steps.
Referenced by Slic3r::GUI::StatusBasePanel::StatusBasePanel(), Slic3r::GUI::StatusPanel::StatusPanel(), add_build_steps_of(), Slic3r::GUI::CalibrationWizard::add_page_step(), Slic3r::GUI::StatusBasePanel::create_machine_control_page(), Slic3r::GUI::FlowRateWizard::create_pages(), Slic3r::GUI::PressureAdvanceWizard::create_pages(), Slic3r::GUI::AuxiliaryPanel::init_tabpanel(), and Slic3r::GUI::MonitorPanel::init_tabpanel().
|
inlineprotectedinherited |
References add_build_step(), build_step(), m_children, m_next_step, and m_steps.
Referenced by Slic3r::GUI::ProjectPanel::ProjectPanel(), Slic3r::GUI::CalibrationPanel::init_tabpanel(), and Slic3r::GUI::MonitorPanel::init_tabpanel().
|
inlineinherited |
References built(), m_next_step, m_steps, and unfinished_child().
Referenced by add_build_steps_of().
|
inlineinherited |
References m_children, m_next_step, and m_steps.
Referenced by Slic3r::GUI::StatusPanel::~StatusPanel(), build_step(), Slic3r::GUI::CalibrationPanel::show_status(), Slic3r::GUI::MonitorPanel::show_status(), Slic3r::GUI::CalibrationPanel::update_all(), and Slic3r::GUI::MonitorPanel::update_all().
| wxWindow * Slic3r::GUI::MonitorPanel::create_side_tools | ( | ) |
|
inlinestaticinherited |
Referenced by Slic3r::GUI::MainFrame::jump_to_monitor(), and Slic3r::GUI::CalibrationCaliPage::update().
|
inline |
References m_status_info_panel.
Referenced by Slic3r::GUI::MultiMachineItem::MultiMachineItem(), and Slic3r::GUI::CalibrationCaliPage::update().
| std::string Slic3r::GUI::MonitorPanel::get_string_from_tab | ( | PrinterTab | tab | ) |
|
inline |
References m_tabpanel.
Referenced by Slic3r::GUI::SelectMachineDialog::navigate_to_timelapse_page(), and Slic3r::GUI::Plater::print_job_finished().
|
inlinestaticinherited |
Referenced by Slic3r::GUI::HMSNotifyItem::HMSNotifyItem(), Slic3r::GUI::MultiMachineItem::MultiMachineItem(), Slic3r::GUI::StatusBasePanel::expand_filament_loading(), Slic3r::GUI::GUI_App::hot_reload_network_plugin(), Slic3r::GUI::SelectMachineDialog::navigate_to_timelapse_page(), Slic3r::GUI::DeviceErrorDialog::on_button_click(), Slic3r::GUI::wgtDeviceNozzleRackNozzleItem::OnBtnNozzleStatus(), Slic3r::GUI::wgtDeviceNozzleRackHotendUpdate::OnStatusIconClick(), Slic3r::GUI::Plater::print_job_finished(), Slic3r::GUI::GUI_App::select_machine(), Slic3r::GUI::StatusBasePanel::show_ams_group(), and Slic3r::GUI::StatusBasePanel::show_filament_load_group().
| void Slic3r::GUI::MonitorPanel::init_bitmap | ( | ) |
References create_scaled_bitmap(), m_arrow_img, m_printer_img, m_signal_middle_img, m_signal_no_img, m_signal_strong_img, and m_signal_weak_img.
Referenced by MonitorPanel(), and msw_rescale().
| void Slic3r::GUI::MonitorPanel::init_tabpanel | ( | ) |
References _L, _L_CONTEXT, Slic3r::GUI::StagedBuild::add_build_step(), Slic3r::GUI::StagedBuild::add_build_steps_of(), Slic3r::NetworkAgent::get_version(), L_CONTEXT, m_hms_panel, m_media_file_panel, m_side_tools, m_status_info_panel, m_tabpanel, m_upgrade_panel, MONITOR_NO_PRINTER, show_status(), and update_all().
Referenced by MonitorPanel().
| void Slic3r::GUI::MonitorPanel::init_timer | ( | ) |
References m_refresh_timer, REFRESH_INTERVAL, update_all(), and update_flag.
Referenced by MonitorPanel().
| void Slic3r::GUI::MonitorPanel::jump_to_HMS | ( | ) |
References m_hms_panel, m_tabpanel, and PT_HMS.
| void Slic3r::GUI::MonitorPanel::jump_to_LiveView | ( | ) |
References m_hms_panel, m_status_info_panel, m_tabpanel, and PT_STATUS.
| void Slic3r::GUI::MonitorPanel::jump_to_Rack | ( | ) |
References m_status_info_panel, m_tabpanel, and PT_STATUS.
| void Slic3r::GUI::MonitorPanel::jump_to_Upgrade | ( | ) |
References m_tabpanel, m_upgrade_panel, and PT_UPDATE.
| void Slic3r::GUI::MonitorPanel::msw_rescale | ( | ) |
References init_bitmap(), m_hms_panel, m_media_file_panel, m_side_tools, m_status_info_panel, m_tabpanel, and m_upgrade_panel.
Referenced by Slic3r::GUI::MainFrame::on_dpi_changed().
|
static |
References Slic3r::GUI::Sidebar::need_auto_sync_extruder_list_after_connect_priner(), obj, Slic3r::GUI::Sidebar::set_need_auto_sync_after_connect_printer(), and Slic3r::GUI::Sidebar::update_sync_status().
Referenced by on_select_printer(), and Slic3r::GUI::GUI_App::select_machine().
| void Slic3r::GUI::MonitorPanel::on_printer_clicked | ( | wxMouseEvent & | event | ) |
References m_select_machine, m_side_tools, and Slic3r::GUI::wxMouseEvent.
Referenced by MonitorPanel(), and ~MonitorPanel().
| void Slic3r::GUI::MonitorPanel::on_select_printer | ( | wxCommandEvent & | event | ) |
References Slic3r::MachineObject::get_dev_id(), Slic3r::DeviceManager::get_selected_machine(), m_hms_panel, on_machine_selected(), set_default(), Slic3r::DeviceManager::set_selected_machine(), Slic3r::trace(), and update_all().
Referenced by MonitorPanel().
| void Slic3r::GUI::MonitorPanel::on_size | ( | wxSizeEvent & | event | ) |
Referenced by MonitorPanel().
| void Slic3r::GUI::MonitorPanel::on_sys_color_changed | ( | ) |
References m_media_file_panel, m_status_info_panel, and m_upgrade_panel.
Referenced by Slic3r::GUI::MainFrame::on_sys_color_changed().
| void Slic3r::GUI::MonitorPanel::on_timer | ( | wxTimerEvent & | event | ) |
References update_all(), and update_flag.
Referenced by MonitorPanel().
| void Slic3r::GUI::MonitorPanel::select_machine | ( | std::string | machine_sn | ) |
References Slic3r::trace().
Referenced by Slic3r::GUI::MainFrame::jump_to_monitor().
| void Slic3r::GUI::MonitorPanel::set_default | ( | ) |
References last_conn_type, m_status_info_panel, and obj.
Referenced by on_select_printer(), and show_status().
| bool Slic3r::GUI::MonitorPanel::Show | ( | bool | show | ) |
References Slic3r::DeviceManager::get_selected_machine(), Slic3r::DeviceManager::load_last_machine(), m_refresh_timer, obj, Slic3r::GUI::plater(), REFRESH_INTERVAL, start_update(), stop_update(), update_all(), update_flag, and update_network_version_footer().
| void Slic3r::GUI::MonitorPanel::show_status | ( | int | status | ) |
References Slic3r::GUI::StagedBuild::built(), last_status, m_hms_panel, m_side_tools, m_status_info_panel, m_tabpanel, m_upgrade_panel, MONITOR_CONNECTING, MONITOR_DISCONNECTED, MONITOR_DISCONNECTED_SERVER, MONITOR_NO_PRINTER, MONITOR_NORMAL, obj, and set_default().
Referenced by init_tabpanel(), and update_all().
|
inline |
|
inline |
|
inlineprivateinherited |
References m_children.
Referenced by build_step().
| void Slic3r::GUI::MonitorPanel::update_all | ( | ) |
References Slic3r::GUI::StagedBuild::built(), Slic3r::DeviceManager::get_selected_machine(), Slic3r::NetworkAgent::is_server_connected(), last_conn_type, m_hms_panel, m_media_file_panel, m_side_tools, m_status_info_panel, m_tabpanel, m_upgrade_panel, MONITOR_CONNECTING, MONITOR_DISCONNECTED, MONITOR_DISCONNECTED_SERVER, MONITOR_NO_PRINTER, MONITOR_NORMAL, obj, show_status(), and update_hms_tag().
Referenced by init_tabpanel(), init_timer(), on_select_printer(), on_timer(), and Show().
| void Slic3r::GUI::MonitorPanel::update_hms_tag | ( | ) |
References m_hms_panel, m_tabpanel, and obj.
Referenced by MonitorPanel(), and update_all().
| void Slic3r::GUI::MonitorPanel::update_network_version_footer | ( | ) |
References _L, Slic3r::extract_base_version(), Slic3r::extract_suffix(), Slic3r::NetworkAgent::get_version(), and m_tabpanel.
Referenced by Show().
|
inlinestaticinherited |
Referenced by Slic3r::GUI::MainFrame::on_dpi_changed(), and Slic3r::GUI::MainFrame::on_sys_color_changed().
| std::string Slic3r::GUI::MonitorPanel::last_conn_type = "undedefined" |
Referenced by set_default(), and update_all().
|
private |
Referenced by show_status().
|
private |
Referenced by init_bitmap().
|
privateinherited |
Referenced by add_build_steps_of(), built(), and unfinished_child().
Referenced by MonitorPanel(), init_tabpanel(), jump_to_HMS(), jump_to_LiveView(), msw_rescale(), on_select_printer(), show_status(), update_all(), and update_hms_tag().
|
private |
Referenced by MonitorPanel().
|
private |
Referenced by init_tabpanel(), msw_rescale(), on_sys_color_changed(), and update_all().
|
privateinherited |
Referenced by add_build_steps_of(), build_step(), and built().
|
private |
Referenced by init_bitmap().
|
private |
Referenced by ~MonitorPanel(), init_timer(), and Show().
|
private |
Referenced by MonitorPanel(), and on_printer_clicked().
Referenced by MonitorPanel(), ~MonitorPanel(), init_tabpanel(), msw_rescale(), on_printer_clicked(), show_status(), and update_all().
|
private |
Referenced by init_bitmap().
|
private |
Referenced by init_bitmap().
|
private |
Referenced by init_bitmap().
|
private |
Referenced by init_bitmap().
|
private |
Referenced by get_status_panel(), init_tabpanel(), jump_to_LiveView(), jump_to_Rack(), msw_rescale(), on_sys_color_changed(), set_default(), show_status(), and update_all().
|
privateinherited |
Referenced by add_build_step(), add_build_steps_of(), build_step(), and built().
Referenced by MonitorPanel(), get_tabpanel(), init_tabpanel(), jump_to_HMS(), jump_to_LiveView(), jump_to_Rack(), jump_to_Upgrade(), msw_rescale(), show_status(), update_all(), update_hms_tag(), and update_network_version_footer().
|
private |
Referenced by init_tabpanel(), jump_to_Upgrade(), msw_rescale(), on_sys_color_changed(), show_status(), and update_all().
| MachineObject* Slic3r::GUI::MonitorPanel::obj { nullptr } |
Referenced by on_machine_selected(), set_default(), Show(), show_status(), update_all(), and update_hms_tag().
|
inlinestaticprivateinherited |
|
private |
Referenced by init_timer(), on_timer(), Show(), start_update(), and stop_update().