kicad/common/gal
John Beard 8766b475c6 Sanitise incoming GAL config options using mapping tables
When reading config options from files, it's important to make sure the
value makes sense - the incoming data could be anything, and may have
incompatible values or be otherwise unreliable.

This introduces a simple way to define and use "mapping tables" which
can map between a "native" value, probably an enum (but not necessarily)
and some external value, for example the value written to file.

This provides a decoupling between the two values, as well as sanitising
inputs and outputs. This is important, as over time, if there isn't a
decoupled interface, changing options result in corrupt configs, or a
proliferation of obsolete enum values kept for compatibility.
2017-02-20 10:52:34 +01:00
..
cairo Give all GAL canvases access to a GAL_DISPLAY_OPTIONS structure instance 2017-02-20 10:52:34 +01:00
opengl Add user control for grid minimum spacing in GAL 2017-02-20 10:52:34 +01:00
color4d.cpp Namespace KiGfx->KIGFX. 2013-10-14 16:13:35 +02:00
gal_display_options.cpp Sanitise incoming GAL config options using mapping tables 2017-02-20 10:52:34 +01:00
graphics_abstraction_layer.cpp Add user control for grid minimum spacing in GAL 2017-02-20 10:52:34 +01:00
stroke_font.cpp Fixes: lp:1629387 (pagelayout text sometimes shrinking) 2016-10-06 17:19:55 +02:00