[patch] K{Int|Double}Validator + new classes

Jarosław Staniek js at iidea.pl
Thu Oct 26 22:17:25 BST 2006


Thiago Macieira said the following, On 2006-10-26 22:20:

>>>What do you mean by "full precision" ?
>>
>>100%, absolute accuracy, unlike in floating point numeral system.
>>The application of this data type is (no surprise) database, processing
>>when _currency_ is involved and any data-entry systems.
>>
>>To make the decimal type fit cleanly to the mentioned
>>KNumValidator<type> template, I propose introduction of a class (let's
>>name it 'kdecimal') with all the needed operators implemented.
>>
>>The next step could be to take advantage of the accuracy of the new type
>>and bring KDecimalNumInput and/or KDecimalSpinBox as an alternative to
>>KDoubleSpinBox/KDoubleNumInput.
> 
> Given the limited use for this class and its validator, I'd recommend that 
> you:
> 
> 1) make the KNumValidator<T> flexible for easy extension
> 
> 2) make KDecimal and the validator class only appear in Kexi. If another 
> program needs it, we can consider moving it into KDELibs.

OK, that's good option.

-- 
regards / pozdrawiam, Jaroslaw Staniek
  Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
  Kexi & KOffice: http://www.kexi-project.org, http://www.koffice.org
  KDE3 & KDE4 Libraries for MS Windows: http://kdelibs.com, http://www.kde.org




More information about the kde-core-devel mailing list