#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/CameraPopup.hpp>
Public Types | |
| enum | CameraResolution { RESOLUTION_720P = 0 , RESOLUTION_1080P = 1 , RESOLUTION_OPTIONS_NUM = 2 } |
Public Member Functions | |
| CameraPopup (wxWindow *parent) | |
| virtual | ~CameraPopup () |
| 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 | sync_vcamera_state (bool show_vcamera) |
| void | check_func_supported (MachineObject *obj) |
| void | update (bool vcamera_streaming) |
| void | rescale () |
| bool | Create (wxWindow *parent, int flags=wxBORDER_NONE) |
Protected Member Functions | |
| void | on_switch_recording (wxCommandEvent &event) |
| void | on_set_resolution () |
| void | sdcard_absent_hint () |
| wxWindow * | create_item_radiobox (wxString title, wxWindow *parent, wxString tooltip, int padding_left) |
| void | select_curr_radiobox (int btn_idx) |
| void | sync_resolution_setting (std::string resolution) |
| void | reset_resolution_setting () |
| wxString | to_resolution_label_string (CameraResolution resolution) |
| std::string | to_resolution_msg_string (CameraResolution resolution) |
| virtual bool | ShouldDismissOnTopWindowDeactivate () |
Private Member Functions | |
| void | start_interval () |
| void | stop_interval (wxTimerEvent &event) |
| void | OnMouse (wxMouseEvent &event) |
| void | OnSize (wxSizeEvent &event) |
| void | OnSetFocus (wxFocusEvent &event) |
| void | OnKillFocus (wxFocusEvent &event) |
| void | OnLeftUp (wxMouseEvent &event) |
| wxDECLARE_ABSTRACT_CLASS (CameraPopup) | |
| wxDECLARE_EVENT_TABLE () | |
Private Attributes | |
| MachineObject * | m_obj { nullptr } |
| wxTimer * | m_interval_timer {nullptr} |
| bool | m_is_in_interval { false } |
| wxStaticText * | m_text_recording |
| SwitchButton * | m_switch_recording |
| wxStaticText * | m_text_vcamera |
| SwitchButton * | m_switch_vcamera |
| wxStaticText * | m_text_liveview_retry |
| SwitchButton * | m_switch_liveview_retry |
| wxStaticText * | m_text_resolution |
| wxWindow * | m_resolution_options [RESOLUTION_OPTIONS_NUM] |
| wxScrolledWindow * | m_panel |
| wxBoxSizer * | main_sizer |
| std::vector< RadioBox * > | resolution_rbtns |
| std::vector< wxStaticText * > | resolution_texts |
| CameraResolution | curr_sel_resolution = RESOLUTION_1080P |
| Label * | vcamera_guide_link { nullptr } |
| wxPanel * | link_underline { nullptr } |
| bool | is_vcamera_show = false |
| bool | allow_alter_resolution = false |
| Enumerator | |
|---|---|
| RESOLUTION_720P | |
| RESOLUTION_1080P | |
| RESOLUTION_OPTIONS_NUM | |
| Slic3r::GUI::CameraPopup::CameraPopup | ( | wxWindow * | parent | ) |
References PopupWindow::PopupWindow(), _L, create_item_radiobox(), Label::Head_14, L, link_underline, m_interval_timer, m_panel, m_resolution_options, m_switch_liveview_retry, m_switch_recording, m_switch_vcamera, m_text_liveview_retry, m_text_recording, m_text_resolution, m_text_vcamera, main_sizer, on_switch_recording(), OnLeftUp(), OnMouse(), RESOLUTION_OPTIONS_NUM, stop_interval(), Slic3r::GUI::TEXT_COL, to_resolution_label_string(), vcamera_guide_link, Slic3r::GUI::wxMouseEvent, and wxStaticText.
Referenced by wxDECLARE_ABSTRACT_CLASS().
|
inlinevirtual |
| void Slic3r::GUI::CameraPopup::check_func_supported | ( | MachineObject * | obj | ) |
References allow_alter_resolution, Slic3r::DeviceManager::get_selected_machine(), Slic3r::MachineObject::is_support_1080dpi, is_vcamera_show, link_underline, m_obj, m_resolution_options, m_switch_recording, m_switch_vcamera, m_text_recording, m_text_resolution, m_text_vcamera, RESOLUTION_OPTIONS_NUM, resolution_rbtns, to_resolution_msg_string(), and vcamera_guide_link.
|
inherited |
References GetTopParent(), and style.
Referenced by PopupWindow(), and DropDown::Create().
|
protected |
References allow_alter_resolution, Label::Body_13, m_obj, on_set_resolution(), resolution_rbtns, resolution_texts, select_curr_radiobox(), Slic3r::GUI::wxMouseEvent, and wxStaticText.
Referenced by CameraPopup().
|
protected |
References curr_sel_resolution, m_obj, and to_resolution_msg_string().
Referenced by create_item_radiobox().
|
protected |
References Slic3r::DevStorage::HAS_SDCARD_NORMAL, m_obj, m_switch_recording, and sdcard_absent_hint().
Referenced by CameraPopup().
|
virtual |
References start_interval().
|
private |
Referenced by Slic3r::GUI::wxBEGIN_EVENT_TABLE().
|
private |
References L, m_panel, m_switch_recording, m_switch_vcamera, RESOLUTION_OPTIONS_NUM, resolution_rbtns, resolution_texts, vcamera_guide_link, and Slic3r::GUI::wxMouseEvent.
Referenced by CameraPopup().
|
private |
References Slic3r::GUI::wxMouseEvent.
Referenced by CameraPopup(), and Slic3r::GUI::wxBEGIN_EVENT_TABLE().
|
private |
Referenced by Slic3r::GUI::wxBEGIN_EVENT_TABLE().
|
private |
Referenced by Slic3r::GUI::wxBEGIN_EVENT_TABLE().
|
virtual |
References m_is_in_interval.
|
virtual |
| void Slic3r::GUI::CameraPopup::rescale | ( | ) |
References m_panel, and main_sizer.
Referenced by sync_vcamera_state(), and update().
|
protected |
References curr_sel_resolution, RESOLUTION_OPTIONS_NUM, and resolution_rbtns.
Referenced by sync_resolution_setting().
|
protected |
Referenced by on_switch_recording().
|
protected |
References curr_sel_resolution, m_obj, and resolution_rbtns.
Referenced by create_item_radiobox(), and sync_resolution_setting().
|
inlineprotectedvirtualinherited |
Reimplemented in DropDown.
|
virtual |
|
private |
References CAMERAPOPUP_CLICK_INTERVAL, m_interval_timer, and m_is_in_interval.
Referenced by OnDismiss().
|
private |
References m_interval_timer, and m_is_in_interval.
Referenced by CameraPopup().
|
protected |
References reset_resolution_setting(), Slic3r::resolution(), RESOLUTION_720P, RESOLUTION_OPTIONS_NUM, select_curr_radiobox(), and to_resolution_msg_string().
Referenced by update().
| void Slic3r::GUI::CameraPopup::sync_vcamera_state | ( | bool | show_vcamera | ) |
References is_vcamera_show, link_underline, m_switch_vcamera, rescale(), and vcamera_guide_link.
Referenced by update().
|
protected |
References Slic3r::resolution(), RESOLUTION_1080P, and RESOLUTION_720P.
Referenced by CameraPopup().
|
protected |
References Slic3r::resolution(), RESOLUTION_1080P, and RESOLUTION_720P.
Referenced by check_func_supported(), on_set_resolution(), and sync_resolution_setting().
| void Slic3r::GUI::CameraPopup::update | ( | bool | vcamera_streaming | ) |
References m_obj, m_switch_recording, rescale(), sync_resolution_setting(), and sync_vcamera_state().
|
private |
|
private |
|
private |
Referenced by check_func_supported(), and create_item_radiobox().
|
private |
Referenced by on_set_resolution(), reset_resolution_setting(), and select_curr_radiobox().
|
private |
Referenced by check_func_supported(), and sync_vcamera_state().
|
private |
Referenced by CameraPopup(), check_func_supported(), and sync_vcamera_state().
|
private |
Referenced by CameraPopup(), start_interval(), and stop_interval().
|
private |
Referenced by Popup(), start_interval(), and stop_interval().
|
private |
Referenced by check_func_supported(), create_item_radiobox(), on_set_resolution(), on_switch_recording(), select_curr_radiobox(), and update().
|
private |
Referenced by CameraPopup(), OnLeftUp(), and rescale().
|
private |
Referenced by CameraPopup(), and check_func_supported().
|
private |
Referenced by CameraPopup().
|
private |
Referenced by CameraPopup(), check_func_supported(), on_switch_recording(), OnLeftUp(), and update().
|
private |
Referenced by CameraPopup(), check_func_supported(), OnLeftUp(), and sync_vcamera_state().
|
private |
Referenced by CameraPopup().
|
private |
Referenced by CameraPopup(), and check_func_supported().
|
private |
Referenced by CameraPopup(), and check_func_supported().
|
private |
Referenced by CameraPopup(), and check_func_supported().
|
private |
Referenced by CameraPopup(), and rescale().
|
private |
Referenced by check_func_supported(), create_item_radiobox(), OnLeftUp(), reset_resolution_setting(), and select_curr_radiobox().
|
private |
Referenced by create_item_radiobox(), and OnLeftUp().
Referenced by CameraPopup(), check_func_supported(), OnLeftUp(), and sync_vcamera_state().