#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/SelectMachinePop.hpp>
Public Member Functions | |
| SelectMachinePopup (wxWindow *parent) | |
| ~SelectMachinePopup () | |
| virtual void | Popup (wxWindow *focus=NULL) wxOVERRIDE |
| virtual void | OnDismiss () wxOVERRIDE |
| virtual bool | ProcessLeftDown (wxMouseEvent &event) wxOVERRIDE |
| virtual bool | Show (bool show=true) wxOVERRIDE |
| void | update_machine_list (wxCommandEvent &event) |
| void | start_ssdp (bool on_off) |
| bool | was_dismiss () |
| bool | Create (wxWindow *parent, int flags=wxBORDER_NONE) |
Protected Member Functions | |
| virtual bool | ShouldDismissOnTopWindowDeactivate () |
Private Member Functions | |
| void | OnLeftUp (wxMouseEvent &event) |
| void | on_timer (wxTimerEvent &event) |
| void | update_other_devices () |
| void | update_user_devices () |
| bool | search_for_printer (MachineObject *obj) |
| void | on_dissmiss_win (wxCommandEvent &event) |
| wxWindow * | create_title_panel (wxString text) |
Private Attributes | |
| int | m_my_devices_count {0} |
| int | m_other_devices_count {0} |
| PinCodePanel * | m_panel_ping_code {nullptr} |
| PinCodePanel * | m_panel_direct_connection {nullptr} |
| wxWindow * | m_placeholder_panel {nullptr} |
| HyperLink * | m_hyperlink {nullptr} |
| wxBoxSizer * | m_sizer_my_devices {nullptr} |
| wxBoxSizer * | m_sizer_other_devices {nullptr} |
| wxSearchCtrl * | m_search_bar {nullptr} |
| wxScrolledWindow * | m_scrolledWindow {nullptr} |
| wxTimer * | m_refresh_timer {nullptr} |
| std::vector< MachinePanel * > | m_user_list_machine_panel |
| std::vector< MachinePanel * > | m_other_list_machine_panel |
| boost::thread * | get_print_info_thread { nullptr } |
| std::shared_ptr< int > | m_token = std::make_shared<int>(0) |
| std::string | m_print_info = "" |
| bool | m_dismiss { false } |
| std::map< std::string, MachineObject * > | m_bind_machine_list |
| std::map< std::string, MachineObject * > | m_free_machine_list |
| Slic3r::GUI::SelectMachinePopup::SelectMachinePopup | ( | wxWindow * | parent | ) |
References PopupWindow::PopupWindow(), _L, create_title_panel(), m_dismiss, m_panel_direct_connection, m_panel_ping_code, m_refresh_timer, m_scrolledWindow, m_search_bar, m_sizer_my_devices, m_sizer_other_devices, on_dissmiss_win(), on_timer(), OnLeftUp(), SELECT_MACHINE_GREY400, SELECT_MACHINE_ITEM_SIZE, SELECT_MACHINE_LIST_SIZE, SELECT_MACHINE_POPUP_SIZE, and update_machine_list().
| Slic3r::GUI::SelectMachinePopup::~SelectMachinePopup | ( | ) |
References m_refresh_timer.
|
inherited |
References GetTopParent(), and style.
Referenced by PopupWindow(), and DropDown::Create().
|
private |
References m_scrolledWindow, SELECT_MACHINE_GREY400, SELECT_MACHINE_ITEM_SIZE, and wxStaticText.
Referenced by SelectMachinePopup().
|
private |
References on_dissmiss_win().
Referenced by SelectMachinePopup(), and on_dissmiss_win().
|
private |
References Slic3r::trace().
Referenced by SelectMachinePopup().
|
virtual |
References get_print_info_thread, m_dismiss, m_refresh_timer, start_ssdp(), and Slic3r::trace().
|
private |
References m_hyperlink, m_other_list_machine_panel, m_panel_direct_connection, m_panel_ping_code, m_scrolledWindow, m_user_list_machine_panel, OnLeftUp(), Slic3r::GUI::DPIAware< P >::ShowModal(), and Slic3r::GUI::wxMouseEvent.
Referenced by SelectMachinePopup(), and OnLeftUp().
|
virtual |
References Slic3r::create_thread(), get_print_info_thread, Slic3r::NetworkAgent::get_user_print_info(), m_print_info, m_refresh_timer, m_token, MACHINE_LIST_REFRESH_INTERVAL, start_ssdp(), and Slic3r::trace().
|
virtual |
References Slic3r::GUI::wxMouseEvent.
|
private |
References Slic3r::MachineObject::get_dev_ip(), Slic3r::MachineObject::get_dev_name(), m_search_bar, and search_for_printer().
Referenced by search_for_printer(), and update_other_devices().
|
inlineprotectedvirtualinherited |
Reimplemented in DropDown.
|
virtual |
References m_other_list_machine_panel, and m_user_list_machine_panel.
| void Slic3r::GUI::SelectMachinePopup::start_ssdp | ( | bool | on_off | ) |
References start_ssdp().
Referenced by OnDismiss(), Popup(), and start_ssdp().
| void Slic3r::GUI::SelectMachinePopup::update_machine_list | ( | wxCommandEvent & | event | ) |
References Slic3r::trace(), update_machine_list(), update_other_devices(), and update_user_devices().
Referenced by SelectMachinePopup(), and update_machine_list().
|
private |
References _L, Slic3r::GUI::ALLOW_BIND, Label::Body_12, Slic3r::GUI::BUSY, StateColor::darkModeColorFor(), Slic3r::DeviceManager::get_current_printer_agent_id(), Slic3r::MachineObject::get_dev_id(), Slic3r::DeviceManager::get_local_machinelist(), Slic3r::MachineObject::has_access_right(), Slic3r::GUI::IDLE, Slic3r::GUI::IN_LAN, Slic3r::MachineObject::is_avaliable(), Slic3r::MachineObject::is_in_printing(), Slic3r::MachineObject::is_lan_mode_printer(), Slic3r::GUI::LOCK, m_bind_machine_list, m_free_machine_list, m_hyperlink, m_other_devices_count, m_other_list_machine_panel, m_placeholder_panel, m_scrolledWindow, m_sizer_other_devices, Slic3r::GUI::MachinePanel::mIndex, Slic3r::GUI::MachinePanel::mPanel, Slic3r::MachineObject::printer_agent_id, search_for_printer(), Slic3r::GUI::ConnectPrinterDialog::set_machine_object(), Slic3r::GUI::MachineObjectPanel::set_printer_state(), Slic3r::GUI::MachineObjectPanel::show_edit_printer_name(), Slic3r::GUI::MachineObjectPanel::show_printer_bind(), Slic3r::GUI::DPIAware< P >::ShowModal(), Slic3r::trace(), Slic3r::GUI::BindMachineDialog::update_machine_info(), and Slic3r::GUI::MachineObjectPanel::update_machine_info().
Referenced by update_machine_list().
|
private |
References Slic3r::DeviceManager::get_current_printer_agent_id(), Slic3r::DeviceManager::get_my_machine_list(), m_bind_machine_list, m_print_info, and Slic3r::DeviceManager::parse_user_print_info().
Referenced by update_machine_list().
|
inline |
|
private |
Referenced by OnDismiss(), and Popup().
|
private |
Referenced by update_other_devices(), and update_user_devices().
|
private |
Referenced by SelectMachinePopup(), OnDismiss(), and was_dismiss().
|
private |
Referenced by update_other_devices().
Referenced by OnLeftUp(), and update_other_devices().
|
private |
|
private |
Referenced by update_other_devices().
|
private |
Referenced by OnLeftUp(), Show(), and update_other_devices().
|
private |
Referenced by SelectMachinePopup(), and OnLeftUp().
|
private |
Referenced by SelectMachinePopup(), and OnLeftUp().
|
private |
Referenced by update_other_devices().
|
private |
Referenced by Popup(), and update_user_devices().
|
private |
Referenced by SelectMachinePopup(), ~SelectMachinePopup(), OnDismiss(), and Popup().
|
private |
Referenced by SelectMachinePopup(), create_title_panel(), OnLeftUp(), and update_other_devices().
|
private |
Referenced by SelectMachinePopup(), and search_for_printer().
|
private |
Referenced by SelectMachinePopup().
|
private |
Referenced by SelectMachinePopup(), and update_other_devices().
|
private |
Referenced by Popup().
|
private |
Referenced by OnLeftUp(), and Show().