#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/TextInput.hpp>
Public Member Functions | |
| TextInput () | |
| TextInput (wxWindow *parent, wxString text, wxString label="", wxString icon="", const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0) | |
| 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 | |
| void | paintEvent (wxPaintEvent &evt) |
| void | render (wxDC &dc) |
| void | messureSize () |
Private Attributes | |
| 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 |
| TextInput::TextInput | ( | ) |
References TextInput(), Label::Body_12, StateColor::Disabled, StateColor::Hovered, label_color, StateColor::Normal, and text_color.
Referenced by Slic3r::GUI::GridTextInput::GridTextInput(), Slic3r::GUI::LayerRangeEditor::LayerRangeEditor(), TextInput(), and TextInput().
| TextInput::TextInput | ( | wxWindow * | parent, |
| wxString | text, | ||
| wxString | label = "", | ||
| wxString | icon = "", | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize, | ||
| long | style = 0 ) |
References TextInput(), Create(), icon, and style.
| void TextInput::Create | ( | wxWindow * | parent, |
| wxString | text, | ||
| wxString | label = "", | ||
| wxString | icon = "", | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize, | ||
| long | style = 0 ) |
References Label::Body_14, StaticBox::Create(), icon, label_color, messureSize(), OnEdit(), style, text_color, and text_ctrl.
Referenced by ComboBox::ComboBox(), and TextInput().
|
overrideprotectedvirtual |
|
overrideprotected |
|
overridevirtual |
References text_color, and text_ctrl.
|
inline |
Referenced by CustomWidgetsPlugin::addTextInputProps().
|
inline |
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().
|
inline |
|
private |
References Label::Body_12, labelSize, SetMinSize(), static_tips, static_tips_size, and text_ctrl.
Referenced by Create(), Rescale(), SetLabel(), and SetStaticTips().
|
inlineprotectedvirtual |
|
private |
|
private |
References Label::Body_12, icon, icon_1, label_color, labelSize, StaticBox::render(), static_tips, static_tips_size, and text_ctrl.
Referenced by paintEvent().
|
virtual |
References icon, icon_1, and messureSize().
Referenced by Slic3r::GUI::LayerRangeEditor::msw_rescale(), ComboBox::Rescale(), SetIcon(), SetIcon(), SetIcon_1(), and SetIcon_1().
| void TextInput::SetCornerRadius | ( | double | radius | ) |
Referenced by CustomWidgetsPlugin::addTextInputProps().
| void TextInput::SetIcon | ( | const wxBitmap & | icon | ) |
| void TextInput::SetIcon | ( | const wxString & | icon | ) |
| void TextInput::SetIcon_1 | ( | const wxBitmap & | icon | ) |
| void TextInput::SetIcon_1 | ( | const wxString & | icon | ) |
|
override |
References messureSize().
Referenced by CustomWidgetsPlugin::addTextInputProps(), ComboBox::SetLabel(), and ComboBox::SetTextLabel().
| void TextInput::SetLabelColor | ( | StateColor const & | color | ) |
References label_color.
Referenced by ComboBox::ComboBox().
|
overridevirtual |
Referenced by messureSize().
| void TextInput::SetStaticTips | ( | const wxString & | tips, |
| const wxBitmap & | bitmap ) |
References messureSize(), static_tips, and static_tips_icon.
| void TextInput::SetTextColor | ( | StateColor const & | color | ) |
References text_color.
|
private |
Referenced by TextInput(), Create(), DoSetSize(), render(), Rescale(), SetIcon(), SetIcon(), SetIcon_1(), and SetIcon_1().
|
private |
Referenced by DoSetSize(), render(), Rescale(), SetIcon_1(), and SetIcon_1().
|
private |
Referenced by TextInput(), Create(), render(), and SetLabelColor().
|
private |
Referenced by DoSetSize(), messureSize(), and render().
|
private |
Referenced by messureSize(), render(), and SetStaticTips().
|
private |
Referenced by SetStaticTips().
|
private |
Referenced by messureSize(), and render().
|
private |
Referenced by TextInput(), Create(), Enable(), and SetTextColor().
|
private |
Referenced by Create(), DoSetSize(), DoSetToolTipText(), Enable(), GetTextCtrl(), GetTextCtrl(), messureSize(), and render().
|
staticprivate |
|
staticprivate |