On Sat, 23 Apr 2005, James Graham wrote:

It's certianly cleaner in terms of the appearance (i.e. it doesn't make
the screen so cluttered) and it seems to work reasonably well, but there
are a few problems. Ideally the following things would happen:
Alternative unit names would be converted into their canonical forms
e.g. inches -> in when the combobox lost focus
Numbers > 1 without units would be given the units "pt"
Numbers < 1 without units would be converetd to % i.e 0.15 would be
converted to 15% for display

real unit conversions would also be nice :)

Okay, I've made a big code reorganisation to make this easier to do. I've moved the cnvtDist routine out of utils and put it into setting, where it's much more logically placed. I'll add some code to canonicalise the units later...

Jeremy

--
Jeremy Sanders <[EMAIL PROTECTED]>
http://www.jeremysanders.net/                Cambridge, UK
Public Key Server PGP Key ID: E1AAE053

Répondre à