1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-03 15:20:17 +01:00

Backported wxWidgets-3.0rc1 number validators

The are pretty darn slick.  There's an integer one and a floating point 
one.  They support automatic range limiting (ex., you can't even type a 
number outside of the range), proper number formats (ex., you can't 
enter a decimal point in an integer field), you can't enter bogus 
numbers like "0.3-.2", thousands separators are supported, decimal 
precision may be specified and proper number formatting for string 
values (or automatic conversion to int, double, float, etc.).
This commit is contained in:
lllucius@gmail.com
2013-10-23 20:33:17 +00:00
parent dd8e0a5edd
commit 08c94d5372
8 changed files with 1249 additions and 41 deletions

View File

@@ -1911,6 +1911,14 @@
RelativePath="..\..\..\src\widgets\MultiDialog.h"
>
</File>
<File
RelativePath="..\..\..\src\widgets\numformatter.cpp"
>
</File>
<File
RelativePath="..\..\..\src\widgets\numformatter.h"
>
</File>
<File
RelativePath="..\..\..\src\widgets\ProgressDialog.cpp"
>
@@ -1935,6 +1943,14 @@
RelativePath="..\..\..\src\widgets\TimeTextCtrl.h"
>
</File>
<File
RelativePath="..\..\..\src\widgets\valnum.cpp"
>
</File>
<File
RelativePath="..\..\..\src\widgets\valnum.h"
>
</File>
<File
RelativePath="..\..\..\src\widgets\Warning.cpp"
>