John Beard
d7db84e282
Break out tools' common menu functions and ownership
...
Add a class TOOL_MENU, which provides a management class for a
CONDITIONAL_MENU and a set of CONTEXT_MENUs. The aim of this is to
provide a central place where all TOOL_INTERACTIVEs can get a "basic"
context menu that either they or other tools can register new items and
sub-menus against.
This means that "top-level" tools no longer need to manage the lifetimes
of any CONTEXT_MENUs that they add, and can also delegate simple menu
display functions.
2017-01-12 14:33:57 +01:00
Maciej Suminski
da00d64877
OpenGL antialising code clean up & formatting
2017-01-11 16:20:37 +01:00
decimad
5a4e247564
EDA_DRAW_PANEL_GAL now takes the gal display options per dependency injection
...
Add a hack so that the pad properties base dialog constructor can pass in the dependency. Since the derived dialog's constructor takes the parent by this exact type, the static cast is safe.
2017-01-11 16:20:37 +01:00
decimad
77138e3702
Add UI control to set up gal opengl antialiasing and load/store the settings
2017-01-11 16:20:37 +01:00
decimad
d04b3bdc27
Add Antialiasing option to dialog_display_options (Thank you Simon Richter)
2017-01-11 16:20:37 +01:00
John Beard
378f5cce33
Don't show separator in Select tool if not needed
...
If the SELECTION_TOOL's Select... menu is not shown, the separator under
it should also not be shown, so use the same SELECTION_CONDITIONS to
enforce this.
2017-01-11 11:15:25 +01:00
John Beard
f1c5b9a9ae
Add context menu to GAL DRAWING_TOOL, including the zone menu
...
Includes a tiny class for scoped set-reset of a variable, which is used
here to store the current drawing mode.
Fixes: lp:1218629
* https://bugs.launchpad.net/kicad/+bug/1518629
2017-01-11 10:41:08 +01:00
John Beard
6baf0edc08
Line segments obey 45 degree preference in GAL
...
The GAL line segment tool now listens to the global line segment 45
degree locking preference, with Ctrl used to invert the behaviour. The
behaviour therefore follows the setting normally, and the user can
override when needed with Ctrl.
Fixes: lp:1635718
* https://bugs.launchpad.net/kicad/+bug/1635718
2017-01-11 09:57:55 +01:00
jean-pierre charras
853310da6e
Remove duplicate definition of LAYER_PAIR, defined both in gendrill_Excellon_writer.h and specctra.h
...
Now, in gendrill_Excellon_writer.h it is DRILL_LAYER_PAIR, and in specctra.h it is SPECCTRA_ LAYER_PAIR
2017-01-10 20:12:50 +01:00
John Beard
3448698849
Add grid menu to routing context menu
...
This is a missing GAL feature (though grid cycling by hotkey was already
working fine).
Fixes: lp:1519973
* https://bugs.launchpad.net/kicad/+bug/1519973
2017-01-10 11:18:25 +01:00
jean-pierre charras
4f46f79cf0
dialog_footprint_wizard_list.cpp: allows updating (on request) python modules from this dialog.
...
This option reloads modules which are more recent than already loaded modules, and load new modules.
2017-01-09 14:44:24 +01:00
jean-pierre charras
9684031bc8
Fix I18n issue in dialog_design_rules.cpp
2017-01-09 14:19:02 +01:00
jean-pierre charras
1039b6dda7
Make dialog_footprint_wizard_list.cpp compilable when scripting is not enabled.
2017-01-08 08:25:04 +01:00
jean-pierre charras
e72a3b99ee
dialog_footprint_wizard_list: cosmetic enhancements.
2017-01-07 21:10:38 +01:00
jean-pierre charras
e6a8294c56
dialog_footprint_wizard_list: add button to show the trace of errors when python scripts wizards failed to load.
2017-01-07 20:43:39 +01:00
jean-pierre charras
44cc728b25
enforce a control to avoid crash if pcbnew.py is an incorrect version (bad install).
2017-01-07 16:25:11 +01:00
jean-pierre charras
76a82dcd3b
Dialog footprint wizard selector: better dialog (displays the wizard search path list) and allows double click to select a wizard
2017-01-07 13:39:47 +01:00
jean-pierre charras
56f8e10eb4
Footprint wizards management: Now display the list of not loadable footprint wizards in footprint wizard dialog.
...
Not loadable wizards are Python scripts having a syntax error or are not compatible scripts due to changes in API.
2017-01-06 20:15:23 +01:00
Chris Pavlina
f407450732
Remove code referring to deleted variable
2017-01-05 20:11:37 -05:00
Diego Herranz
50cdd5cdf1
Pcbnew, plot dialog: grey out advanced net attributes if Gerber X2 is unchecked.
...
m_useGerberNetAttributes is useless if m_useGerberX2Attributes is not checked.
So disabled (greyed out) when Gerber X2 gets unchecked to make it clear to
the user.
2017-01-04 17:13:26 -05:00
Wayne Stambaugh
50a388fe56
Page setting menu entry consistency fixes.
...
Move the page setting menu entry from the edit menu to the file menu in
Eeschema so it is consistent with Pcbnew.
Change the page setting menu entry tooltip in Pcbnew so it is the same as
Eeschema.
2017-01-04 15:24:45 -05:00
jean-pierre charras
24192ff3d6
Add Micromatch connectors footprint wizard. Unfortunately, I don't remember the initial author of this script.
2017-01-04 20:01:15 +01:00
jean-pierre charras
995940e992
refinement
2017-01-04 16:17:40 +01:00
jean-pierre charras
02fa9639cd
DIALOG_FOOTPRINT_WIZARD_LIST: minor enhancement. qrcode_footprint_wizard.py: use filled polygons instead of square pads on silkscren layer.
2017-01-04 15:03:43 +01:00
jean-pierre charras
1a464ab8c8
Coding style fixes
2017-01-03 18:04:35 +01:00
Oliver Walters
66ee44cb1f
Footprint Wizards Update
2017-01-03 16:01:47 +01:00
Oliver
d1278a48b6
UI Improvements for PCB Design Rules Dialog
...
* Added floating point validators for wxTextCtrl items relating to via and track sizes
* Prevent entering negative values
* Changed via option wxRadioButton pairs to wxCheckBox
* Toggling the OptAllowMicroVias checkbox toggles the enabled status of the microvia settings controls
* Cleanup of error message(s)
2017-01-02 12:50:13 -05:00
jean-pierre charras
fff449ecf0
Performance counter rework: Add comments, fix coding style issues.
2016-12-31 13:00:24 +01:00
jean-pierre charras
b8b08dafd6
Code cleaning: remove pcbcommon.* which contains nothing really useful. The very few lines of code are moved to a better place.
2016-12-31 12:56:21 +01:00
Tomasz Wlostowski
c45cc1de68
Fixes: lp:1653146 (Assertion failed when trying to delete track with router tool active, in debug mode)
...
https://bugs.launchpad.net/kicad/+bug/1653146
2016-12-30 20:14:44 +01:00
jean-pierre charras
a9fbedfb12
More Coverity warnings fixes.
2016-12-30 14:36:23 +01:00
jean-pierre charras
dec2d6e8cc
Fix a few Coverity warnings. A bit of clean code in export_vrml.cpp.
2016-12-30 12:40:05 +01:00
Chris Pavlina
6078ca85e5
Improve broken edge outline error message
2016-12-29 12:31:12 -05:00
jean-pierre charras
a76f40be3b
Pcbnew: fix compil issue when Python scripting isn't enabled.
2016-12-29 08:17:33 +01:00
Oliver
636e060c99
A few enhancements from a larger patch, not yet committed, for footprint wizards
2016-12-28 10:26:01 +01:00
jean-pierre charras
352f1a025c
Better compatibility with previous Pcbnew versions: save diff pair prms only when values are not set to default values
2016-12-28 10:00:39 +01:00
jean-pierre charras
2972f6fbc7
Fix shadowed local variable
2016-12-20 17:51:55 +01:00
jean-pierre charras
9be5398cd2
Add bitmaps to Align/distribute menu ans menu items
2016-12-20 17:50:29 +01:00
Tomasz Włostowski
b20323dc63
SELECTION: fixed pointer arithmetic-related segfault in operator[]
2016-12-20 12:01:09 +01:00
jean-pierre charras
3ffa37c8b9
Fixes: lp:1650524 (Trapezoidal pad solder mask is incorrect when the minimal solder mask width is 0)
...
https://bugs.launchpad.net/kicad/+bug/1650524
2016-12-18 13:03:15 +01:00
Maciej Suminski
f631ae27b2
Fixed crash on DRC
...
Fixes: lp:1650360
* https://bugs.launchpad.net/kicad/+bug/1650360
2016-12-16 12:04:15 +01:00
Chris Pavlina
809e71abac
Rename footprint attributes more understandably
2016-12-14 15:53:04 -05:00
jean-pierre charras
188d7812ec
Disable Flip board view in Legacy mode (because the view cannot be flipped)
2016-12-13 21:24:29 +01:00
jean-pierre charras
0265a5bac5
Add a specific icon to the Flip board menuitem command
2016-12-13 19:36:17 +01:00
Maciej Suminski
139521750b
Fixed a crash on finishing line drawing in the legacy FP editor
...
Fixes: lp:1649597
* https://bugs.launchpad.net/kicad/+bug/1649597
2016-12-13 17:25:34 +01:00
Maciej Suminski
b1e37ae1dc
Fixed a few warnings (dialog_track_via_properties.cpp)
2016-12-12 18:01:09 +01:00
Maciej Suminski
c8676db84e
Fixed panning & cursor control with arrow keys in flipped view
2016-12-12 16:45:52 +01:00
Maciej Suminski
027515f4e1
Fixed refreshing after flipping the view
2016-12-12 16:45:52 +01:00
Maciej Suminski
7ad5fca6de
More code formatting, updated copyright headers
2016-12-12 16:45:52 +01:00
Maciej Suminski
07c7334238
Moved 'Flip View' menu entry
...
Under Windows wxWidgets there is a problem with the last menu
item having wxITEM_CHECK flag.
2016-12-12 16:45:52 +01:00