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:
xin.zhang
2025-03-10 09:34:22 +08:00
committed by Noisyfox
parent c8aa1de66f
commit 2c365fba63
3 changed files with 86 additions and 44 deletions

View File

@@ -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);