mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-27 21:02:23 +00:00
FIX: rebuild the TempInput logic
jira: [STUDIO-10386] Change-Id: If7160dacafaa19d7056125961a59111ff63ea25b (cherry picked from commit f078f6bfdc4bf2610f8c861132241ebdd933bb74) (cherry picked from commit 1820ca6fc00f6b6d1250e3464ee05bd33cd244f5)
This commit is contained in:
@@ -19,6 +19,7 @@ class TempInput : public wxNavigationEnabled<StaticBox>
|
||||
bool hover;
|
||||
|
||||
bool m_read_only{false};
|
||||
bool m_on_changing {false};
|
||||
wxSize labelSize;
|
||||
ScalableBitmap normal_icon;
|
||||
ScalableBitmap actice_icon;
|
||||
@@ -117,14 +118,20 @@ public:
|
||||
|
||||
wxTextCtrl const *GetTextCtrl() const { return text_ctrl; }
|
||||
|
||||
void SetOnChanging() { m_on_changing = true; }
|
||||
void ReSetOnChanging() { m_on_changing = false; }
|
||||
|
||||
protected:
|
||||
virtual void OnEdit() {}
|
||||
virtual void OnEdit();
|
||||
|
||||
virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
|
||||
|
||||
void DoSetToolTipText(wxString const &tip) override;
|
||||
|
||||
private:
|
||||
void ResetWaringDlg();
|
||||
bool CheckIsValidVal(bool show_warning);
|
||||
|
||||
void paintEvent(wxPaintEvent &evt);
|
||||
|
||||
void render(wxDC &dc);
|
||||
|
||||
Reference in New Issue
Block a user