Refactor code for numeric validation in numeric wxPG properties

Move template function NumericValidation() to wxNumericProperty because all data necessary to validate the value are available here: acceptable value range, SpinCtrl editor value wrapping mode, etc.
This commit is contained in:
Artur Wieczorek
2019-06-28 21:16:58 +02:00
parent 69632371e3
commit 48adc38bbb
3 changed files with 134 additions and 149 deletions

View File

@@ -146,9 +146,6 @@ public:
*/
bool UseSpinMotion() const;
wxVariant GetMinVal() const;
wxVariant GetMaxVal() const;
protected:
/**
Constructor is protected because wxNumericProperty is only a base