#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/UnsavedChangesDialog.hpp>
Classes | |
| struct | ItemData |
Public Member Functions | |
| DiffViewCtrl (wxWindow *parent, wxSize size) | |
| ~DiffViewCtrl () | |
| void | AppendBmpTextColumn (const wxString &label, unsigned model_column, int width, bool set_expander=false) |
| void | AppendToggleColumn_ (const wxString &label, unsigned model_column, int width) |
| void | Rescale (int em=0) |
| void | Append (const std::string &opt_key, Preset::Type type, wxString category_name, wxString group_name, wxString option_name, wxString old_value, wxString new_value, const std::string category_icon_name) |
| void | Clear () |
| wxString | get_short_string (wxString full_string) |
| bool | has_selection () |
| void | context_menu (wxDataViewEvent &event) |
| void | item_value_changed (wxDataViewEvent &event) |
| void | set_em_unit (int em) |
| bool | has_unselected_options () |
| std::vector< std::string > | options (Preset::Type type, bool selected) |
| std::vector< std::string > | selected_options () |
Public Attributes | |
| DiffModel * | model { nullptr } |
Private Attributes | |
| bool | m_has_long_strings { false } |
| bool | m_empty_selection { false } |
| int | m_em_unit |
| std::map< wxDataViewItem, ItemData > | m_items_map |
| std::map< unsigned int, int > | m_columns_width |
| struct Slic3r::GUI::DiffViewCtrl::ItemData |
| Class Members | ||
|---|---|---|
| bool | is_long { false } | |
| wxString | new_val | |
| wxString | old_val | |
| string | opt_key | |
| wxString | opt_name | |
| Type | type | |
| Slic3r::GUI::DiffViewCtrl::DiffViewCtrl | ( | wxWindow * | parent, |
| wxSize | size ) |
References context_menu(), em_unit(), item_value_changed(), m_em_unit, and model.
| Slic3r::GUI::DiffViewCtrl::~DiffViewCtrl | ( | ) |
| void Slic3r::GUI::DiffViewCtrl::Append | ( | const std::string & | opt_key, |
| Preset::Type | type, | ||
| wxString | category_name, | ||
| wxString | group_name, | ||
| wxString | option_name, | ||
| wxString | old_value, | ||
| wxString | new_value, | ||
| const std::string | category_icon_name ) |
References Slic3r::category_name(), get_short_string(), Slic3r::GUI::DiffViewCtrl::ItemData::is_long, m_items_map, model, Slic3r::GUI::DiffViewCtrl::ItemData::new_val, and Slic3r::GUI::DiffViewCtrl::ItemData::old_val.
| void Slic3r::GUI::DiffViewCtrl::AppendBmpTextColumn | ( | const wxString & | label, |
| unsigned | model_column, | ||
| int | width, | ||
| bool | set_expander = false ) |
References m_columns_width, and m_em_unit.
| void Slic3r::GUI::DiffViewCtrl::AppendToggleColumn_ | ( | const wxString & | label, |
| unsigned | model_column, | ||
| int | width ) |
References m_columns_width, and m_em_unit.
| void Slic3r::GUI::DiffViewCtrl::Clear | ( | ) |
References m_items_map, and model.
| void Slic3r::GUI::DiffViewCtrl::context_menu | ( | wxDataViewEvent & | event | ) |
References m_has_long_strings, and m_items_map.
Referenced by DiffViewCtrl().
| wxString Slic3r::GUI::DiffViewCtrl::get_short_string | ( | wxString | full_string | ) |
References Slic3r::GUI::dots(), and m_has_long_strings.
Referenced by Append().
|
inline |
References m_empty_selection.
| bool Slic3r::GUI::DiffViewCtrl::has_unselected_options | ( | ) |
References m_items_map, and model.
| void Slic3r::GUI::DiffViewCtrl::item_value_changed | ( | wxDataViewEvent & | event | ) |
References Slic3r::GUI::DiffModel::colToggle, m_empty_selection, model, and selected_options().
Referenced by DiffViewCtrl().
| std::vector< std::string > Slic3r::GUI::DiffViewCtrl::options | ( | Preset::Type | type, |
| bool | selected ) |
References Slic3r::GUI::get_pure_opt_key(), m_items_map, and model.
| void Slic3r::GUI::DiffViewCtrl::Rescale | ( | int | em = 0 | ) |
References m_columns_width, m_em_unit, and model.
| std::vector< std::string > Slic3r::GUI::DiffViewCtrl::selected_options | ( | ) |
References Slic3r::GUI::get_pure_opt_key(), m_items_map, and model.
Referenced by item_value_changed().
|
inline |
|
private |
Referenced by AppendBmpTextColumn(), AppendToggleColumn_(), and Rescale().
|
private |
Referenced by DiffViewCtrl(), AppendBmpTextColumn(), AppendToggleColumn_(), Rescale(), and set_em_unit().
|
private |
Referenced by has_selection(), and item_value_changed().
|
private |
Referenced by context_menu(), and get_short_string().
|
private |
Referenced by Append(), Clear(), context_menu(), has_unselected_options(), options(), and selected_options().
Referenced by DiffViewCtrl(), ~DiffViewCtrl(), Append(), Clear(), has_unselected_options(), item_value_changed(), options(), Rescale(), and selected_options().