#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/AmsMappingPopup.hpp>
Public Member Functions | |
| MappingItem (wxWindow *parent) | |
| ~MappingItem () | |
| void | update_data (TrayData data) |
| void | send_event (int fliament_id) |
| void | set_data (const wxString &tag_name, wxColour colour, wxString name, bool remain_detect, TrayData data, bool unmatch=false, std::optional< wxString > tooltip_opt=std::nullopt) |
| void | set_checked (bool checked) |
| void | set_tray_index (wxString t_index) |
| void | msw_rescale () |
Public Attributes | |
| wxWindow * | send_win {nullptr} |
| wxString | m_tray_index |
| wxColour | m_coloul |
| wxString | m_name |
| TrayData | m_tray_data |
| ScalableBitmap | m_transparent_mapping_item |
| ScalableBitmap | mapping_item_checked |
| bool | m_unmatch {false} |
| int | m_ams_id {255} |
| int | m_slot_id {255} |
Private Member Functions | |
| void | paintEvent (wxPaintEvent &evt) |
| void | render (wxDC &dc) |
| void | doRender (wxDC &dc) |
| int | get_remain_area_height () const |
Private Attributes | |
| bool | m_checked = false |
| bool | m_support_remain_detect = false |
| bool | m_to_paint_remain = false |
| Slic3r::GUI::MappingItem::MappingItem | ( | wxWindow * | parent | ) |
References StateColor::darkModeColorFor(), m_transparent_mapping_item, mapping_item_checked, and paintEvent().
| Slic3r::GUI::MappingItem::~MappingItem | ( | ) |
|
private |
References Slic3r::change_the_opacity(), Slic3r::GUI::fill_gradient_rect_east(), get_remain_area_height(), m_coloul, m_transparent_mapping_item, m_tray_data, m_unmatch, and MAPPING_ITEM_REAL_SIZE.
Referenced by render().
|
private |
References m_to_paint_remain.
Referenced by doRender(), and render().
| void Slic3r::GUI::MappingItem::msw_rescale | ( | ) |
References m_transparent_mapping_item, and mapping_item_checked.
|
private |
References render().
Referenced by MappingItem().
|
private |
References Slic3r::GUI::_DrawRemainArea(), Label::Body_12, Label::Body_9, doRender(), get_remain_area_height(), Label::Head_12, m_checked, m_coloul, m_name, m_support_remain_detect, m_to_paint_remain, m_tray_data, m_tray_index, m_unmatch, and mapping_item_checked.
Referenced by paintEvent().
| void Slic3r::GUI::MappingItem::send_event | ( | int | fliament_id | ) |
References m_coloul, m_tray_data, m_tray_index, and send_win.
Referenced by Slic3r::GUI::AmsMapingPopup::add_ams_mapping(), and Slic3r::GUI::AmsMapingPopup::add_ext_ams_mapping().
| void Slic3r::GUI::MappingItem::set_checked | ( | bool | checked | ) |
| void Slic3r::GUI::MappingItem::set_data | ( | const wxString & | tag_name, |
| wxColour | colour, | ||
| wxString | name, | ||
| bool | remain_detect, | ||
| TrayData | data, | ||
| bool | unmatch = false, | ||
| std::optional< wxString > | tooltip_opt = std::nullopt ) |
References _L, m_coloul, m_name, m_support_remain_detect, m_to_paint_remain, m_tray_data, m_unmatch, VIRTUAL_TRAY_DEPUTY_ID, and VIRTUAL_TRAY_MAIN_ID.
Referenced by Slic3r::GUI::AmsMapingPopup::add_ams_mapping(), and Slic3r::GUI::AmsMapingPopup::add_ext_ams_mapping().
|
inline |
References m_tray_index.
Referenced by Slic3r::GUI::AmsMapingPopup::add_ams_mapping(), and Slic3r::GUI::AmsMapingPopup::add_ext_ams_mapping().
| void Slic3r::GUI::MappingItem::update_data | ( | TrayData | data | ) |
| int Slic3r::GUI::MappingItem::m_ams_id {255} |
Referenced by Slic3r::GUI::AmsMapingPopup::add_ams_mapping().
|
private |
Referenced by render(), and set_checked().
| wxColour Slic3r::GUI::MappingItem::m_coloul |
Referenced by doRender(), render(), send_event(), and set_data().
| wxString Slic3r::GUI::MappingItem::m_name |
Referenced by render(), and set_data().
| int Slic3r::GUI::MappingItem::m_slot_id {255} |
Referenced by Slic3r::GUI::AmsMapingPopup::add_ams_mapping().
|
private |
Referenced by render(), and set_data().
|
private |
Referenced by get_remain_area_height(), render(), and set_data().
| ScalableBitmap Slic3r::GUI::MappingItem::m_transparent_mapping_item |
Referenced by MappingItem(), doRender(), and msw_rescale().
| TrayData Slic3r::GUI::MappingItem::m_tray_data |
Referenced by doRender(), render(), send_event(), and set_data().
| wxString Slic3r::GUI::MappingItem::m_tray_index |
Referenced by render(), send_event(), and set_tray_index().
| bool Slic3r::GUI::MappingItem::m_unmatch {false} |
Referenced by doRender(), render(), and set_data().
| ScalableBitmap Slic3r::GUI::MappingItem::mapping_item_checked |
Referenced by MappingItem(), msw_rescale(), and render().
| wxWindow* Slic3r::GUI::MappingItem::send_win {nullptr} |
Referenced by Slic3r::GUI::AmsMapingPopup::add_ams_mapping(), and send_event().