kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #30586
Re: [PATCH] Add mils as user unit
On Mon, Sep 04, 2017 at 07:09:32PM -0400, Wayne Stambaugh wrote:
> wxValidator is the standard way to customize control input and output.
> This is well documented in the wxWidgets documentation. Please do not
> create a custom design unless there is no way to do this as validator
> which I highly doubt. There are even source files for creating custom
> validators aptly named include/validators.h and common/validators.cpp.
My (old) unit parser was simply in the variable <-> widget text
conversion functions. All two of them :P Actually I created it to make
accept the point as a decimal separator even on 'comma' locales.
The unit binder came later and the validator serves other purposes.
--
Lorenzo Marcantonio
Attachment:
signature.asc
Description: PGP signature
References