#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/UnsavedChangesDialog.hpp>
Public Member Functions | |
| ModelNode (Preset::Type preset_type, wxWindow *parent_win, const wxString &text, const std::string &icon_name) | |
| ModelNode (ModelNode *parent, const wxString &text, const std::string &icon_name) | |
| ModelNode (ModelNode *parent, const wxString &text) | |
| ModelNode (ModelNode *parent, const wxString &text, const wxString &old_value, const wxString &new_value) | |
| bool | IsContainer () const |
| bool | IsToggled () const |
| void | Toggle (bool toggle=true) |
| bool | IsRoot () const |
| Preset::Type | type () const |
| const wxString & | text () const |
| ModelNode * | GetParent () |
| ModelNodePtrArray & | GetChildren () |
| ModelNode * | GetNthChild (unsigned int n) |
| unsigned int | GetChildCount () const |
| void | Append (std::unique_ptr< ModelNode > child) |
| void | UpdateEnabling () |
| void | UpdateIcons () |
Public Attributes | |
| bool | m_toggle {true} |
| wxBitmap | m_icon |
| wxBitmap | m_old_color_bmp |
| wxBitmap | m_new_color_bmp |
| wxString | m_text |
| wxString | m_old_value |
| wxString | m_new_value |
| bool | m_container {true} |
Private Member Functions | |
| wxBitmap | get_bitmap (const wxString &color) |
Private Attributes | |
| wxWindow * | m_parent_win { nullptr } |
| ModelNode * | m_parent |
| ModelNodePtrArray | m_children |
| wxBitmap | m_empty_bmp |
| Preset::Type | m_preset_type {Preset::TYPE_INVALID} |
| std::string | m_icon_name |
| wxString | m_old_color |
| wxString | m_new_color |
| Slic3r::GUI::ModelNode::ModelNode | ( | Preset::Type | preset_type, |
| wxWindow * | parent_win, | ||
| const wxString & | text, | ||
| const std::string & | icon_name ) |
References m_icon_name, m_parent, m_parent_win, m_preset_type, m_text, text(), and UpdateIcons().
Referenced by ModelNode(), ModelNode(), ModelNode(), GetNthChild(), and GetParent().
| Slic3r::GUI::ModelNode::ModelNode | ( | ModelNode * | parent, |
| const wxString & | text, | ||
| const std::string & | icon_name ) |
References ModelNode(), m_icon_name, m_parent, m_parent_win, m_text, text(), and UpdateIcons().
| Slic3r::GUI::ModelNode::ModelNode | ( | ModelNode * | parent, |
| const wxString & | text ) |
References ModelNode(), m_icon_name, m_parent, m_parent_win, m_text, text(), and UpdateIcons().
| Slic3r::GUI::ModelNode::ModelNode | ( | ModelNode * | parent, |
| const wxString & | text, | ||
| const wxString & | old_value, | ||
| const wxString & | new_value ) |
References ModelNode(), Slic3r::GUI::color_string(), Slic3r::GUI::def_text_color(), m_container, m_icon_name, m_new_color, m_new_value, m_old_color, m_old_value, m_parent, m_text, Slic3r::GUI::orange, text(), and UpdateIcons().
|
inline |
References m_children.
Referenced by Slic3r::GUI::DiffModel::AddOption(), Slic3r::GUI::DiffModel::AddOptionWithGroup(), and Slic3r::GUI::DiffModel::AddOptionWithGroupAndCategory().
|
private |
References Slic3r::GUI::decode_color(), em_unit(), Slic3r::GUI::into_u8(), m_parent_win, and Slic3r::GUI::BitmapCache::mksolid().
Referenced by UpdateIcons().
|
inline |
References m_children.
|
inline |
References m_children.
Referenced by Slic3r::GUI::DiffModel::AddOption(), Slic3r::GUI::DiffModel::AddOptionWithGroup(), Slic3r::GUI::DiffModel::AddOptionWithGroupAndCategory(), Slic3r::GUI::DiffModel::Delete(), Slic3r::GUI::DiffModel::GetChildren(), Slic3r::GUI::rescale_children(), Slic3r::GUI::update_children(), and Slic3r::GUI::update_parents().
|
inline |
|
inline |
References ModelNode(), and m_parent.
Referenced by Slic3r::GUI::DiffModel::Delete(), Slic3r::GUI::DiffModel::GetParent(), and Slic3r::GUI::update_parents().
|
inline |
References m_container.
Referenced by Slic3r::GUI::DiffModel::IsContainer(), Slic3r::GUI::rescale_children(), and Slic3r::GUI::update_children().
|
inline |
References m_parent.
Referenced by Slic3r::GUI::DiffModel::GetParent().
|
inline |
References m_toggle.
Referenced by Slic3r::GUI::DiffModel::IsEnabledItem(), and Slic3r::GUI::update_children().
|
inline |
References m_text.
Referenced by ModelNode(), ModelNode(), ModelNode(), and ModelNode().
|
inline |
References m_toggle.
Referenced by Slic3r::GUI::update_parents().
|
inline |
References m_preset_type.
| void Slic3r::GUI::ModelNode::UpdateEnabling | ( | ) |
References Slic3r::GUI::def_text_color(), Slic3r::GUI::from_u8(), Slic3r::GUI::grey, Slic3r::GUI::into_u8(), m_new_value, m_old_value, m_text, m_toggle, Slic3r::GUI::orange, and UpdateIcons().
Referenced by Slic3r::GUI::update_parents(), and Slic3r::GUI::DiffModel::UpdateItemEnabling().
| void Slic3r::GUI::ModelNode::UpdateIcons | ( | ) |
References create_scaled_bitmap(), get_bitmap(), Slic3r::GUI::grey, m_icon, m_icon_name, m_new_color, m_new_color_bmp, m_old_color, m_old_color_bmp, m_parent_win, and m_toggle.
Referenced by ModelNode(), ModelNode(), ModelNode(), ModelNode(), and UpdateEnabling().
|
private |
Referenced by Append(), GetChildCount(), GetChildren(), and GetNthChild().
| bool Slic3r::GUI::ModelNode::m_container {true} |
Referenced by ModelNode(), and IsContainer().
|
private |
| wxBitmap Slic3r::GUI::ModelNode::m_icon |
Referenced by Slic3r::GUI::DiffModel::GetValue(), Slic3r::GUI::DiffModel::SetValue(), and UpdateIcons().
|
private |
Referenced by ModelNode(), ModelNode(), ModelNode(), ModelNode(), and UpdateIcons().
|
private |
Referenced by ModelNode(), and UpdateIcons().
| wxBitmap Slic3r::GUI::ModelNode::m_new_color_bmp |
Referenced by Slic3r::GUI::DiffModel::GetValue(), Slic3r::GUI::DiffModel::SetValue(), and UpdateIcons().
| wxString Slic3r::GUI::ModelNode::m_new_value |
Referenced by ModelNode(), Slic3r::GUI::DiffModel::GetValue(), Slic3r::GUI::DiffModel::SetValue(), and UpdateEnabling().
|
private |
Referenced by ModelNode(), and UpdateIcons().
| wxBitmap Slic3r::GUI::ModelNode::m_old_color_bmp |
Referenced by Slic3r::GUI::DiffModel::GetValue(), Slic3r::GUI::DiffModel::SetValue(), and UpdateIcons().
| wxString Slic3r::GUI::ModelNode::m_old_value |
Referenced by ModelNode(), Slic3r::GUI::DiffModel::GetValue(), Slic3r::GUI::DiffModel::SetValue(), and UpdateEnabling().
|
private |
Referenced by ModelNode(), ModelNode(), ModelNode(), ModelNode(), GetParent(), and IsRoot().
|
private |
Referenced by ModelNode(), ModelNode(), ModelNode(), get_bitmap(), and UpdateIcons().
|
private |
Referenced by ModelNode(), and type().
| wxString Slic3r::GUI::ModelNode::m_text |
| bool Slic3r::GUI::ModelNode::m_toggle {true} |
Referenced by Slic3r::GUI::DiffModel::GetValue(), IsToggled(), Slic3r::GUI::DiffModel::SetValue(), Toggle(), UpdateEnabling(), and UpdateIcons().