Add grid-increment-mm (and similar) settings
commite989bb9693ee2806d41fd946de3c4bd96772d58f
authorAndrew Poelstra (local) <apoelstra@wpsoftware.net>
Wed, 28 Mar 2012 17:40:55 +0000 (28 10:40 -0700)
committerAndrew Poelstra (local) <apoelstra@wpsoftware.net>
Thu, 29 Mar 2012 03:37:44 +0000 (28 20:37 -0700)
tree9b3cccab168f0071a234d85f4ecce54af923f427
parenta4762a2a43645ffb08de644cfa635b55f69f29be
Add grid-increment-mm (and similar) settings

Added the following settings:

  grid-increment-mm       grid-increment-mil
  size-increment-mm       size-increment-mil
  line-increment-mm       line-increment-mil
  clear-increment-mm     clear-increment-mil

These behave differently than the old settings of the same names (from
20090929 and earlier). They take a measure, not a real number. The -mm
versions affect the increment settings when the user is using a metric
grid, and the -mil versions affect the settings for imperial grids.

Old ~/.pcb/preferences files likely have lines like

  grid-increment-mil = 5

which have been hanging around for several pcb versions. These should
be safely ignored, since, for example, "5" is now read as "5nm", which
is well below the minimum allowed increment setting.

These settings can be read but (so far) not written out, either to the
pcb or to the preferences file.
src/hid/gtk/gui-config.c
src/main.c
src/pcb-printf.c
src/pcb-printf.h