#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GUI_ObjectLayers.hpp>
Public Member Functions | |
| LayerRangeEditor (ObjectLayers *parent, const wxString &value=wxEmptyString, EditorType type=etUndef, std::function< void(EditorType)> set_focus_data_fn=[](EditorType) {;}, std::function< bool(coordf_t, bool, bool)> edit_fn=[](coordf_t, bool, bool) {return false;}) | |
| ~LayerRangeEditor () | |
| EditorType | type () const |
| void | set_focus_data () const |
| void | SetValue (const wxString &value) |
| wxString | GetValue () |
| void | msw_rescale () |
| void | Create (wxWindow *parent, wxString text, wxString label="", wxString icon="", const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0) |
| void | SetCornerRadius (double radius) |
| int | GetCornerRadius () const |
| void | SetLabel (const wxString &label) override |
| void | SetStaticTips (const wxString &tips, const wxBitmap &bitmap) |
| void | SetIcon (const wxBitmap &icon) |
| void | SetIcon (const wxString &icon) |
| void | SetIcon_1 (const wxString &icon) |
| void | SetIcon_1 (const wxBitmap &icon) |
| void | SetLabelColor (StateColor const &color) |
| void | SetTextColor (StateColor const &color) |
| virtual void | Rescale () |
| virtual bool | Enable (bool enable=true) override |
| virtual void | SetMinSize (const wxSize &size) override |
| wxTextCtrl * | GetTextCtrl () |
| wxTextCtrl const * | GetTextCtrl () const |
Protected Member Functions | |
| virtual void | OnEdit () |
| virtual void | DoSetSize (int x, int y, int width, int height, int sizeFlags=wxSIZE_AUTO) override |
| void | DoSetToolTipText (wxString const &tip) override |
Private Member Functions | |
| coordf_t | get_value () |
| void | paintEvent (wxPaintEvent &evt) |
| void | render (wxDC &dc) |
| void | messureSize () |
Private Attributes | |
| bool | m_enter_pressed { false } |
| bool | m_call_kill_focus { false } |
| wxString | m_valid_value |
| EditorType | m_type |
| std::function< void(EditorType)> | m_set_focus_data |
| wxSize | labelSize |
| ScalableBitmap | icon |
| ScalableBitmap | icon_1 |
| StateColor | label_color |
| StateColor | text_color |
| wxTextCtrl * | text_ctrl |
| wxString | static_tips |
| wxSize | static_tips_size |
| wxBitmap | static_tips_icon |
Static Private Attributes | |
| static const int | TextInputWidth = 200 |
| static const int | TextInputHeight = 50 |
| Slic3r::GUI::LayerRangeEditor::LayerRangeEditor | ( | ObjectLayers * | parent, |
| const wxString & | value = wxEmptyString, | ||
| EditorType | type = etUndef, | ||
| std::function< void(EditorType)> | set_focus_data_fn = [](EditorType) {;}, | ||
| std::function< bool(coordf_t, bool, bool)> | edit_fn = [](coordf_t, bool, bool) {return false; } ) |
References LayerRangeEditor(), TextInput::TextInput(), _L, Slic3r::GUI::double_to_string(), em_unit(), Slic3r::GUI::etLayerHeight, get_value(), TextInput::GetTextCtrl(), m_call_kill_focus, m_enter_pressed, m_set_focus_data, m_type, m_valid_value, set_focus_data(), SetValue(), type(), and Slic3r::GUI::ObjectLayers::update_scene_from_editor_selection().
Referenced by LayerRangeEditor().
|
inline |
|
inherited |
References Label::Body_14, StaticBox::Create(), icon, label_color, messureSize(), OnEdit(), style, text_color, and text_ctrl.
Referenced by ComboBox::ComboBox(), and TextInput().
|
overrideprotectedvirtualinherited |
|
overrideprotectedinherited |
|
overridevirtualinherited |
References text_color, and text_ctrl.
|
private |
References _L, GetValue(), Slic3r::is_decimal_separator_point(), Slic3r::GUI::layer_height, m_valid_value, SetValue(), and Slic3r::GUI::show_error().
Referenced by LayerRangeEditor().
|
inlineinherited |
Referenced by CustomWidgetsPlugin::addTextInputProps().
|
inlineinherited |
References text_ctrl.
Referenced by Slic3r::GUI::LayerRangeEditor::LayerRangeEditor(), CustomWidgetsPlugin::addTextInputProps(), Slic3r::GUI::GridCellTextEditor::BeginEdit(), Slic3r::GUI::GridCellTextEditor::EndEdit(), Slic3r::GUI::LayerRangeEditor::GetValue(), Slic3r::GUI::SavePresetDialog::input_name_from_other(), and Slic3r::GUI::LayerRangeEditor::SetValue().
|
inlineinherited |
|
inline |
References TextInput::GetTextCtrl().
Referenced by get_value().
|
privateinherited |
References Label::Body_12, labelSize, SetMinSize(), static_tips, static_tips_size, and text_ctrl.
Referenced by Create(), Rescale(), SetLabel(), and SetStaticTips().
| void Slic3r::GUI::LayerRangeEditor::msw_rescale | ( | ) |
References TextInput::Rescale().
Referenced by Slic3r::GUI::ObjectLayers::msw_rescale().
|
inlineprotectedvirtualinherited |
|
privateinherited |
|
privateinherited |
References Label::Body_12, icon, icon_1, label_color, labelSize, StaticBox::render(), static_tips, static_tips_size, and text_ctrl.
Referenced by paintEvent().
|
virtualinherited |
References icon, icon_1, and messureSize().
Referenced by Slic3r::GUI::LayerRangeEditor::msw_rescale(), ComboBox::Rescale(), SetIcon(), SetIcon(), SetIcon_1(), and SetIcon_1().
|
inline |
References m_set_focus_data, and m_type.
Referenced by LayerRangeEditor().
|
inherited |
Referenced by CustomWidgetsPlugin::addTextInputProps().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
overrideinherited |
References messureSize().
Referenced by CustomWidgetsPlugin::addTextInputProps(), ComboBox::SetLabel(), and ComboBox::SetTextLabel().
|
inherited |
References label_color.
Referenced by ComboBox::ComboBox().
|
overridevirtualinherited |
Referenced by messureSize().
|
inherited |
References messureSize(), static_tips, and static_tips_icon.
|
inherited |
References text_color.
|
inline |
References TextInput::GetTextCtrl().
Referenced by LayerRangeEditor(), and get_value().
|
inline |
|
privateinherited |
Referenced by TextInput(), Create(), DoSetSize(), render(), Rescale(), SetIcon(), SetIcon(), SetIcon_1(), and SetIcon_1().
|
privateinherited |
Referenced by DoSetSize(), render(), Rescale(), SetIcon_1(), and SetIcon_1().
|
privateinherited |
Referenced by TextInput(), Create(), render(), and SetLabelColor().
|
privateinherited |
Referenced by DoSetSize(), messureSize(), and render().
|
private |
Referenced by LayerRangeEditor().
|
private |
Referenced by LayerRangeEditor().
|
private |
Referenced by LayerRangeEditor(), and set_focus_data().
|
private |
Referenced by LayerRangeEditor(), set_focus_data(), and type().
|
private |
Referenced by LayerRangeEditor(), and get_value().
|
privateinherited |
Referenced by messureSize(), render(), and SetStaticTips().
|
privateinherited |
Referenced by SetStaticTips().
|
privateinherited |
Referenced by messureSize(), and render().
|
privateinherited |
Referenced by TextInput(), Create(), Enable(), and SetTextColor().
|
privateinherited |
Referenced by Create(), DoSetSize(), DoSetToolTipText(), Enable(), GetTextCtrl(), GetTextCtrl(), messureSize(), and render().
|
staticprivateinherited |
|
staticprivateinherited |