#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/ComboBox.hpp>
Public Member Functions | |
| ComboBox (wxWindow *parent, wxWindowID id, const wxString &value=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int n=0, const wxString choices[]=NULL, long style=0) | |
| DropDown & | GetDropDown () |
| void | SetKeepDropArrow (bool keep) |
| virtual bool | SetFont (wxFont const &font) override |
| int | Append (const wxString &item, const wxBitmap &bitmap=wxNullBitmap, int item_style=0) |
| int | Append (const wxString &item, const wxBitmap &bitmap, void *clientData, int item_style=0) |
| int | Append (const wxString &item, const wxBitmap &bitmap, const wxString &group, void *clientData=nullptr, int item_style=0) |
| int | Append (const wxString &item, const wxBitmap &bitmap, const wxString &group_key, const wxString &group_label, void *clientData=nullptr, int item_style=0) |
| int | SetItems (const std::vector< DropDown::Item > &the_items) |
| void | set_replace_text (wxString text, wxString image_name) |
| unsigned int | GetCount () const override |
| int | GetSelection () const override |
| void | SetSelection (int n) override |
| void | SelectAndNotify (int n) |
| virtual void | Rescale () override |
| wxString | GetValue () const |
| void | SetValue (const wxString &value) |
| void | SetLabel (const wxString &label) override |
| wxString | GetLabel () const override |
| int | GetFlag (unsigned int n) |
| void | SetFlag (unsigned int n, int value) |
| void | SetTextLabel (const wxString &label) |
| wxString | GetTextLabel () const |
| wxString | GetString (unsigned int n) const override |
| void | SetString (unsigned int n, wxString const &value) override |
| wxString | GetItemTooltip (unsigned int n) const |
| void | SetItemTooltip (unsigned int n, wxString const &value) |
| wxString | GetItemAlias (unsigned int n) const |
| void | SetItemAlias (unsigned int n, wxString const &value) |
| wxBitmap | GetItemBitmap (unsigned int n) |
| void | SetItemBitmap (unsigned int n, wxBitmap const &bitmap) |
| void | SetItemActionBitmap (unsigned int n, wxBitmap const &bitmap) |
| bool | is_drop_down () |
| void | DeleteOneItem (unsigned int pos) |
| void | ForceDropdownOpen () |
| void | CloseDropdown () |
Protected Member Functions | |
| virtual int | DoInsertItems (const wxArrayStringsAdapter &items, unsigned int pos, void **clientData, wxClientDataType type) override |
| virtual void | DoClear () override |
| void | DoDeleteOneItem (unsigned int pos) override |
| void * | DoGetItemClientData (unsigned int n) const override |
| void | DoSetItemClientData (unsigned int n, void *data) override |
| void | OnEdit () override |
| void | sendComboBoxEvent () |
Private Types | |
| typedef DropDown::Item | Item |
Private Member Functions | |
| void | mouseDown (wxMouseEvent &event) |
| void | mouseWheelMoved (wxMouseEvent &event) |
| void | keyDown (wxKeyEvent &event) |
| void | onMove (wxMoveEvent &event) |
Private Attributes | |
| std::vector< Item > | items |
| DropDown | drop |
| bool | drop_down = false |
| bool | text_off = false |
| bool | is_replace_text_to_image = false |
| bool | m_keep_drop_arrow = false |
| wxString | replace_text |
| wxString | image_for_text |
|
private |
| ComboBox::ComboBox | ( | wxWindow * | parent, |
| wxWindowID | id, | ||
| const wxString & | value = wxEmptyString, | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize, | ||
| int | n = 0, | ||
| const wxString | choices[] = NULL, | ||
| long | style = 0 ) |
References Append(), Label::Body_14, CB_NO_DROP_ICON, CB_NO_TEXT, TextInput::Create(), DD_STYLE_MASK, StateColor::Disabled, drop, drop_down, StateColor::Focused, GetScrollParent(), StateColor::Hovered, items, StateColor::Normal, onMove(), TextInput::SetLabelColor(), SetSelection(), style, and text_off.
Referenced by Slic3r::GUI::GridComboBox::GridComboBox(), Slic3r::GUI::LayerNumberTextInput::LayerNumberTextInput(), and Slic3r::GUI::PresetComboBox::PresetComboBox().
| int ComboBox::Append | ( | const wxString & | item, |
| const wxBitmap & | bitmap, | ||
| const wxString & | group, | ||
| void * | clientData = nullptr, | ||
| int | item_style = 0 ) |
| int ComboBox::Append | ( | const wxString & | item, |
| const wxBitmap & | bitmap, | ||
| const wxString & | group_key, | ||
| const wxString & | group_label, | ||
| void * | clientData = nullptr, | ||
| int | item_style = 0 ) |
References drop, items, DropDown::Item::style, and style.
| int ComboBox::Append | ( | const wxString & | item, |
| const wxBitmap & | bitmap, | ||
| void * | clientData, | ||
| int | item_style = 0 ) |
| int ComboBox::Append | ( | const wxString & | item, |
| const wxBitmap & | bitmap = wxNullBitmap, | ||
| int | item_style = 0 ) |
References Append(), and style.
Referenced by ComboBox(), Slic3r::GUI::LayerNumberTextInput::LayerNumberTextInput(), Slic3r::GUI::PresetComboBox::add_ams_filaments(), Slic3r::GUI::PresetComboBox::add_connected_printers(), Slic3r::GUI::IMEXModesCtrl::add_row(), Append(), Append(), Append(), Slic3r::GUI::Choice::BUILD(), Slic3r::GUI::combo_append_index(), Slic3r::GUI::GridCellChoiceEditor::Create(), Slic3r::GUI::GridCellFilamentsEditor::Create(), BitmapChoiceRenderer::CreateEditorCtrl(), Slic3r::GUI::DesignPanel::fill_body_choice(), Slic3r::GUI::fill_nozzle_volume_combo(), Slic3r::GUI::DesignPanel::fill_revolve_axes(), Slic3r::GUI::DesignPanel::populate_body_choices(), Slic3r::GUI::DesignPanel::populate_plane_choices(), Slic3r::GUI::CalibrateFilamentComboBox::update(), Slic3r::GUI::PlaterPresetComboBox::update(), Slic3r::GUI::PresetComboBox::update(), Slic3r::GUI::TabPresetComboBox::update(), and Slic3r::GUI::Sidebar::update_presets().
| void ComboBox::CloseDropdown | ( | ) |
|
inline |
References DoDeleteOneItem().
|
overrideprotectedvirtual |
|
overrideprotected |
|
overrideprotected |
|
overrideprotectedvirtual |
|
overrideprotected |
| void ComboBox::ForceDropdownOpen | ( | ) |
References drop, drop_down, and items.
Referenced by BitmapChoiceRenderer::CreateEditorCtrl().
|
override |
References items.
Referenced by Slic3r::GUI::DesignPanel::DesignPanel(), Slic3r::GUI::PresetComboBox::add_ams_filaments(), Slic3r::GUI::PresetComboBox::add_connected_printers(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::bind_filament_target(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::bind_preset_target(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::combo_item_for_preset(), Slic3r::GUI::DesignPanel::fill_body_choice(), Slic3r::GUI::Choice::get_value(), mouseWheelMoved(), Slic3r::GUI::DesignPanel::populate_body_choices(), Slic3r::GUI::DesignPanel::populate_plane_choices(), Slic3r::GUI::DesignPanel::populate_sheet_body_choices(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::resolve_combo_preset(), Slic3r::GUI::select_nozzle_volume(), Slic3r::GUI::DesignPanel::select_sheet_choice(), Slic3r::GUI::Choice::set_value(), Slic3r::GUI::PlaterPresetComboBox::update(), Slic3r::GUI::TabPresetComboBox::update_dirty(), Slic3r::GUI::Sidebar::update_presets(), and Slic3r::GUI::PresetComboBox::validate_selection().
|
inline |
References drop.
Referenced by Slic3r::GUI::PlaterPresetComboBox::PlaterPresetComboBox(), Slic3r::GUI::TabPresetComboBox::TabPresetComboBox(), Slic3r::GUI::Choice::BUILD(), Slic3r::GUI::PrinterAgentChoice::BUILD(), BitmapChoiceRenderer::CreateEditorCtrl(), and Slic3r::GUI::use_nozzle_row_font().
| int ComboBox::GetFlag | ( | unsigned int | n | ) |
References items.
Referenced by Slic3r::anonymous_namespace{PluginHostPresets.cpp}::bind_filament_target(), Slic3r::GUI::Plater::priv::on_select_preset(), and Slic3r::GUI::PlaterPresetComboBox::update_badge_according_flag().
| wxString ComboBox::GetItemAlias | ( | unsigned int | n | ) | const |
References items.
Referenced by Slic3r::anonymous_namespace{PluginHostPresets.cpp}::combo_item_for_preset(), Slic3r::GUI::Plater::priv::on_select_preset(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::resolve_combo_preset(), and Slic3r::GUI::PresetComboBox::update_ams_color().
| wxString ComboBox::GetItemTooltip | ( | unsigned int | n | ) | const |
|
override |
References text_off.
Referenced by GetValue().
|
override |
References drop.
Referenced by Slic3r::GUI::DesignPanel::DesignPanel(), Slic3r::GUI::DynamicFilamentList::apply_on(), Slic3r::GUI::get_selection(), Slic3r::GUI::Choice::get_value(), Slic3r::GUI::SingleChoiceDialog::GetSingleChoiceIndex(), BitmapChoiceRenderer::GetValueFromEditorCtrl(), Slic3r::GUI::PresetComboBox::is_selected_physical_printer(), Slic3r::GUI::PresetComboBox::is_selected_printer_model(), keyDown(), mouseWheelMoved(), Slic3r::GUI::DesignPanel::populate_plane_choices(), Slic3r::GUI::DesignPanel::populate_sheet_body_choices(), Slic3r::GUI::DesignPanel::read_revolve_axis(), Slic3r::GUI::PresetComboBox::selection_is_changed_according_to_physical_printers(), Slic3r::GUI::DesignPanel::sheet_choice_body(), Slic3r::GUI::PlaterPresetComboBox::switch_to_tab(), Slic3r::GUI::PresetComboBox::update(), Slic3r::GUI::PlaterPresetComboBox::update_badge_according_flag(), and Slic3r::GUI::TabPresetComboBox::update_dirty().
|
override |
References items.
Referenced by Slic3r::GUI::DiffPresetDialog::create_presets_sizer(), Slic3r::GUI::PresetComboBox::get_preset_item_name(), Slic3r::GUI::get_selection(), Slic3r::GUI::Plater::priv::on_select_preset(), Slic3r::GUI::CalibrateFilamentComboBox::OnSelect(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::resolve_combo_preset(), Slic3r::GUI::PresetComboBox::selection_is_changed_according_to_physical_printers(), Slic3r::GUI::PlaterPresetComboBox::switch_to_tab(), Slic3r::GUI::PresetComboBox::update(), Slic3r::GUI::TabPresetComboBox::update_dirty(), and Slic3r::GUI::PresetComboBox::update_selection().
| wxString ComboBox::GetTextLabel | ( | ) | const |
| wxString ComboBox::GetValue | ( | ) | const |
References drop, and GetLabel().
Referenced by Slic3r::GUI::PlaterPresetComboBox::PlaterPresetComboBox(), Slic3r::GUI::Choice::BUILD(), Slic3r::GUI::PrinterAgentChoice::BUILD(), Slic3r::GUI::GridCellChoiceEditor::EndEdit(), Slic3r::GUI::GridCellFilamentsEditor::EndEdit(), Slic3r::GUI::IMEXModesCtrl::fix_row_name(), Slic3r::GUI::Choice::get_value(), Slic3r::GUI::IMEXModesCtrl::snapshot_row(), Slic3r::GUI::TabPrint::toggle_options(), Slic3r::GUI::CalibrateFilamentComboBox::update(), and Slic3r::GUI::PresetComboBox::update_ams_color().
|
private |
References DD_ITEM_STYLE_DISABLED, drop, drop_down, GetSelection(), items, sendComboBoxEvent(), and SetSelection().
|
private |
|
private |
References drop_down, GetCount(), GetSelection(), sendComboBoxEvent(), and SetSelection().
|
overrideprotected |
References SetValue().
|
private |
|
overridevirtual |
References drop, and TextInput::Rescale().
Referenced by Slic3r::GUI::PresetComboBox::msw_rescale().
| void ComboBox::SelectAndNotify | ( | int | n | ) |
|
protected |
References drop.
Referenced by keyDown(), mouseWheelMoved(), and SelectAndNotify().
| void ComboBox::set_replace_text | ( | wxString | text, |
| wxString | image_name ) |
References image_for_text, is_replace_text_to_image, and replace_text.
Referenced by Slic3r::GUI::PlaterPresetComboBox::update().
| void ComboBox::SetFlag | ( | unsigned int | n, |
| int | value ) |
Referenced by Slic3r::GUI::PresetComboBox::add_ams_filaments(), and Slic3r::GUI::PlaterPresetComboBox::update().
|
overridevirtual |
Referenced by Slic3r::GUI::PresetComboBox::PresetComboBox(), Slic3r::GUI::GridCellChoiceEditor::Create(), and Slic3r::GUI::use_nozzle_row_font().
| void ComboBox::SetItemActionBitmap | ( | unsigned int | n, |
| wxBitmap const & | bitmap ) |
| void ComboBox::SetItemAlias | ( | unsigned int | n, |
| wxString const & | value ) |
References items.
Referenced by Slic3r::GUI::PlaterPresetComboBox::update(), and Slic3r::GUI::TabPresetComboBox::update().
| void ComboBox::SetItemBitmap | ( | unsigned int | n, |
| wxBitmap const & | bitmap ) |
| int ComboBox::SetItems | ( | const std::vector< DropDown::Item > & | the_items | ) |
| void ComboBox::SetItemTooltip | ( | unsigned int | n, |
| wxString const & | value ) |
Referenced by Slic3r::GUI::PlaterPresetComboBox::update(), and Slic3r::GUI::TabPresetComboBox::update().
|
inline |
References m_keep_drop_arrow.
|
override |
References image_for_text, is_replace_text_to_image, replace_text, TextInput::SetIcon_1(), TextInput::SetLabel(), and text_off.
Referenced by Slic3r::GUI::create_select_filament_preset_checkbox(), SetSelection(), SetString(), SetValue(), and Slic3r::GUI::LayerNumberTextInput::update_label().
|
override |
References drop, items, m_keep_drop_arrow, and SetLabel().
Referenced by ComboBox(), Slic3r::GUI::DesignPanel::DesignPanel(), Slic3r::GUI::LayerNumberTextInput::LayerNumberTextInput(), Slic3r::GUI::GridCellChoiceEditor::BeginEdit(), Slic3r::GUI::GridCellFilamentsEditor::BeginEdit(), BitmapChoiceRenderer::CreateEditorCtrl(), Slic3r::GUI::DesignPanel::fill_body_choice(), Slic3r::GUI::DesignPanel::fill_revolve_axes(), keyDown(), mouseWheelMoved(), Slic3r::GUI::Sidebar::on_filament_count_change(), Slic3r::GUI::CalibrateFilamentComboBox::OnSelect(), Slic3r::GUI::PlaterPresetComboBox::OnSelect(), Slic3r::GUI::PresetComboBox::OnSelect(), Slic3r::GUI::TabPresetComboBox::OnSelect(), Slic3r::GUI::DesignPanel::populate_body_choices(), Slic3r::GUI::DesignPanel::populate_plane_choices(), Slic3r::GUI::DesignPanel::populate_sheet_body_choices(), Slic3r::GUI::select_nozzle_volume(), Slic3r::GUI::DesignPanel::select_sheet_choice(), SelectAndNotify(), Slic3r::GUI::LayerNumberTextInput::set_layer_number(), Slic3r::GUI::Choice::set_selection(), Slic3r::GUI::Choice::set_value(), Slic3r::GUI::Choice::set_value(), Slic3r::GUI::TabPresetComboBox::update_dirty(), Slic3r::GUI::Sidebar::update_presets(), and Slic3r::GUI::PresetComboBox::update_selection().
|
override |
References drop, items, and SetLabel().
Referenced by Slic3r::GUI::TabPresetComboBox::update_dirty().
| void ComboBox::SetTextLabel | ( | const wxString & | label | ) |
References TextInput::SetLabel().
Referenced by Slic3r::GUI::Choice::BUILD(), and Slic3r::GUI::PrinterAgentChoice::BUILD().
| void ComboBox::SetValue | ( | const wxString & | value | ) |
References drop, items, m_keep_drop_arrow, and SetLabel().
Referenced by Slic3r::GUI::CalibrateFilamentComboBox::load_tray(), OnEdit(), Slic3r::GUI::Choice::set_selection(), Slic3r::GUI::Choice::set_value(), and Slic3r::GUI::Choice::set_value().
|
private |
Referenced by ComboBox(), Append(), CloseDropdown(), DoClear(), DoDeleteOneItem(), DoInsertItems(), ForceDropdownOpen(), GetDropDown(), GetSelection(), GetValue(), keyDown(), mouseDown(), onMove(), Rescale(), sendComboBoxEvent(), SetFlag(), SetItemActionBitmap(), SetItemBitmap(), SetItems(), SetItemTooltip(), SetSelection(), SetString(), and SetValue().
|
private |
Referenced by ComboBox(), ForceDropdownOpen(), is_drop_down(), keyDown(), mouseDown(), and mouseWheelMoved().
|
private |
Referenced by set_replace_text(), and SetLabel().
|
private |
Referenced by set_replace_text(), and SetLabel().
|
private |
Referenced by ComboBox(), Append(), DoClear(), DoDeleteOneItem(), DoGetItemClientData(), DoInsertItems(), DoSetItemClientData(), ForceDropdownOpen(), GetCount(), GetFlag(), GetItemAlias(), GetItemBitmap(), GetItemTooltip(), GetString(), keyDown(), mouseDown(), SetFlag(), SetItemActionBitmap(), SetItemAlias(), SetItemBitmap(), SetItems(), SetItemTooltip(), SetSelection(), SetString(), and SetValue().
|
private |
Referenced by SetKeepDropArrow(), SetSelection(), and SetValue().
|
private |
Referenced by set_replace_text(), and SetLabel().
|
private |
Referenced by ComboBox(), GetLabel(), and SetLabel().