~agarciamontoro/kicad:master

Last commit made on 2017-02-20
Get this branch:
git clone -b master https://git.launchpad.net/~agarciamontoro/kicad
Only Alejandro can upload to this branch. If you are Alejandro please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~agarciamontoro/kicad

Recent commits

6fdccc1... by Maciej Suminski

PAD_TOOL: enable 'Apply' after copying a pad

2fa17b4... by John Beard

Put pad enumerate tool in PAD_TOOL submenu

Prior to this, it was in the top level of the selection
menu, and was always shown, even if the module editor
didn't have a loaded footprint.

ca91c27... by John Beard

Adjust pad sub-menu enablements

The apply settings and push settings options now take account of the
validity of the global pad settings when deciding whether to show or
not.

Global pad push now requires a source pad and doesn't push from the
global pad setting when there is no selection.

The whole submenu is hidden when there are no enabled items.

Fixes: lp:1664016
* https://bugs.launchpad.net/kicad/+bug/1664016

6164b9b... by John Beard

Grid line/point size & density settings

ca75be4... by John Beard

Simplify display option selection mappings using CFG_MAP

Rather than defining static functions to do the mapping, this can be mor
concisely done with the UTIL::CFG_MAP utility functions.

8766b47... by John Beard

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.

1f5619f... by John Beard

Add protected virtual dtor for GAL_DISPLAY_OPTIONS_OBSERVER

GAL_DISPLAY_OPTIONS_OBSERVER aren't deleted by a base class pointer -
they are an "incidental" part of other classes. Add a virtual protected
destructor to make this explicit.

0bf3a19... by John Beard

Add user control for grid minimum spacing in GAL

This allows the user to set a thicker grid line without causing the
grid lines to become over dense, or just make the grid denser according
to preference.

The term "density" is modified to "minimum grid spacing", which is
the pixel spacing between adjacent grid lines.

The spacing settings now comes in along, with other GAL display settings,
as part of GAL_DISPLAY_OPTIONS observer functionality. To this end, the
setter in GAL interface is removed, as an external user should be
setting this parameter via the GAL_DISPLAY_OPTIONS interface.

970e4f8... by John Beard

Add grid line thickness control to Display Options Dialog

This adds a user-settable control for the grid line thickness on GAL
canvases to the display options dialog.

The thickness settings now comes in, along with other GAL display
settings, as part of GAL_DISPLAY_OPTIONS observer functionality. To this
end, the setter in GAL interface is removed, as an external user should
be setting this parameter via the GAL_DISPLAY_OPTIONS interface.

Fixes: lp:1662482
* https://bugs.launchpad.net/kicad/+bug/1662482

061d659... by John Beard

Add a class to govern an "incrementing" text control

This class, INCREMENTAL_TEXT_CTRL, is used to provide a frameworks for
classes that want to control a text control that can be incremented
according to some scheme.

Also provided is a wxWidgets implementation with spin buttons for
control, as well as mousewheel support.