Jeff Young
29af26565d
Fix re-entrancy issue in LibEdit move tool.
2019-08-15 15:51:27 +01:00
Jeff Young
8ba7d4570c
Move warp-mouse-on-move setting from Eeschema settings to common settings.
...
It's also used by the Symbol Editor, and will likely be used by
Pcbnew and friends in the future.
2019-08-15 12:53:04 +01:00
Jeff Young
206b40621e
Fix bugs in Eeschema paste.
...
1) don't ASSERT; use exceptions (which can be caught) instead.
2) clean up LIB_LOGGER so it's only used during sync
3) fix typos in wxLogMessage() calls so they produce output.
4) throw on unrecognized token in loadContent().
5) if clipboard can't be pasted as content then paste as text.
Fixes: lp:1840172
* https://bugs.launchpad.net/kicad/+bug/1840172
2019-08-15 10:00:23 +01:00
Jeff Young
b4c8657904
Fix non-visible-part or conversion items from getting selected.
...
Also renames lib_draw_item to lib_item to match the class.
Fixes: lp:1840170
* https://bugs.launchpad.net/kicad/+bug/1840170
2019-08-15 10:00:23 +01:00
jean-pierre charras
d50dc4ff65
PANEL_SETUP_LAYERS: minor cosmetic change: Fix for commit e2be49a2
.
...
The commit e2be49a2
was sent too early.
2019-08-15 10:26:08 +02:00
jean-pierre charras
e2be49a2f6
PANEL_SETUP_LAYERS: minor cosmetic change.
2019-08-15 09:44:55 +02:00
jean-pierre charras
2f2aba2333
FOOTPRINT_WIZARD_FRAME: fix UI issues (incorrect size of message panel and not selectable first item in param list)
...
Fixes: lp:1840193
https://bugs.launchpad.net/kicad/+bug/1840193
2019-08-15 09:27:28 +02:00
Seth Hillbrand
959a4bdded
pcbnew: Don't stack same tool handler
...
The Get and place tool used to live in selection tool and could activate
the edit tool by stacking calls. Now that it is itself in the edit
tool, we cannot stack another call to the edit tool that runs
immediately, instead we allow the GetAndPlace to finish before beginning
the next tool (Move)
2019-08-14 17:12:00 -07:00
Jeff Young
a0eaff289a
Add filters to footprint viewer.
...
This also allows us to remove button to access the tree dialog
since the only extra it provided was filtering.
Fixes: lp:1465295
* https://bugs.launchpad.net/kicad/+bug/1465295
2019-08-14 21:51:26 +01:00
Shawn Anastasio
3e22b75948
Fix libcontext on PPC64 ELFv2
...
libcontext currently restores and saves the FPSCR register
on ppc64. This behavior is fine (though unnecessary) on the
ELFv1 ABI which designates the register as volatile, but has
been observed to cause crashes on ELFv2 systems.
The ELFv2 ABI designates the FPSCR register as Limited-access
and specifies specific conditions that must be met to clobber
it. It does not seem that a context swap function meets these
conditions (and indeed, the save/restore register example in the
ABI document does not modify FPSCR).
This patch fixes ELFv2 ABI compliance by removing the FPSCR
save/restore code in libcontext entirely. This fixes observed
crashes on the platform and should have no consequence for
ELFv1 support.
Fixes: lp:1840088
* https://bugs.launchpad.net/kicad/+bug/1840088
2019-08-14 11:16:40 -07:00
Jeff Young
6fb96891b1
Mirror add zone icon so it's different from zone display mode icon.
...
Fixes: lp:1818867
* https://bugs.launchpad.net/kicad/+bug/1818867
2019-08-14 12:46:18 +01:00
Jeff Young
d92c318b40
Clean out obsolete icons.
2019-08-14 12:36:47 +01:00
Jeff Young
fb0fd825ba
Don't try and be too smart about scaling and worksheets.
...
Fixes: lp:1815586
* https://bugs.launchpad.net/kicad/+bug/1815586
2019-08-14 11:37:10 +01:00
Jeff Young
3cdf88f2c6
CERN copyrights for work packages.
2019-08-14 09:35:15 +01:00
Ian McInerney
8493daf9ff
Unify menu item creation for closing a window
...
* Push a function into CONDITIONAL_MENU that adds the item
* Modify the tooltip for close and exit items to have the
program name
Fixes: lp:1835454
* https://bugs.launchpad.net/kicad/+bug/1835454
2019-08-14 09:35:15 +01:00
Ian McInerney
e47c9ccc0b
pcbnew: Clean up switch statement in launcher
2019-08-14 09:35:14 +01:00
Wayne Stambaugh
0328f3e33b
Eeschema: fix bug in sheet name comparisons on Windows.
...
The use of wxPATH_UNIX when calling GetFullPath() on windows drops the
volume identifier (c:\) from the file name which will cause comparison
failures.
2019-08-13 16:33:57 -04:00
Jeff Young
c2d77a7300
Add some defensive code to prevent re-entrant printing.
...
Fixes: lp:1765965
* https://bugs.launchpad.net/kicad/+bug/1765965
2019-08-13 18:00:09 +01:00
Jeff Young
a33d67f6b4
Push shift/cmd+<enter> processing down into dialog shim.
...
This will make them more uniform rather than only supported when
something else is using <enter>.
Fixes: lp:1838353
* https://bugs.launchpad.net/kicad/+bug/1838353
2019-08-13 16:53:40 +01:00
Jeff Young
045f5f6a61
Move some functions out of SELECTION_TOOL that don't really belong there.
2019-08-13 13:29:18 +01:00
Jeff Young
dd938b02df
New move tool doesn't require GetAndPlace to jump through hoops.
...
And at least one of those hoops leaves the cursor forced.
Fixes: lp:1839877
* https://bugs.launchpad.net/kicad/+bug/1839877
2019-08-13 10:01:47 +01:00
jean-pierre charras
1c295d46a9
Pcbnew plot: fix missing footprint texts on solder mask layers.
...
Fixes: lp:1839892
https://bugs.launchpad.net/kicad/+bug/1839892
2019-08-13 09:43:36 +02:00
Seth Hillbrand
037e6bc006
Correcting missing detail in Chinese translator
2019-08-12 17:08:17 -07:00
Seth Hillbrand
619c78622e
pcbnew: Initialize drag and clear links
...
Drag is used for multiple modes so should be initialized when starting.
The line that we generate however needs to be pristine in drag, so we
clear the links in the duplicate.
Fixes: lp:1839612
* https://bugs.launchpad.net/kicad/+bug/1839612
2019-08-12 15:32:16 -07:00
Jeff Young
ccf18ceb0e
Fix accidental change in default radio button of Update PCB from Schematic.
2019-08-12 22:21:09 +01:00
Jeff Young
f3f0a6899f
Invoke move by ACTION; the EDIT_TOOL does lots of other stuff too.
...
Fixes: lp:1839877
* https://bugs.launchpad.net/kicad/+bug/1839877
2019-08-12 22:21:09 +01:00
Jeff Young
3bf24fae7a
Set selection reference point to top-left item.
...
Fixes: lp:1771016
* https://bugs.launchpad.net/kicad/+bug/1771016
2019-08-12 22:21:09 +01:00
Jeff Young
e855b244ae
Highlight whole net for simulation voltage probe.
2019-08-12 22:21:09 +01:00
Jeff Young
cc0bd9a171
Even out PCB_EDITOR_CONTROL and PCB_INSPECTION_TOOL.
2019-08-12 22:21:09 +01:00
Ian McInerney
d170243d61
Fix some memory leaks
...
Some elements of modules and boards were not deleted, so memory
was being leaked on some library loads and single-instance
pcbnew usage.
2019-08-12 15:03:25 -04:00
Ian McInerney
7bb046c0a5
cvpcb: Auto move to next NA after association
...
Also perform some cleanup of objects when windows close
2019-08-12 14:19:01 -04:00
Ian McInerney
36b430562d
cvpcb: Refactor events and cleanup formatting
2019-08-12 14:19:01 -04:00
Ian McInerney
c0204e90b1
cvpcb: Add library location to status information
...
Fixes: lp:1782805
* https://bugs.launchpad.net/kicad/+bug/1782805
2019-08-12 14:19:01 -04:00
Ian McInerney
c3b2885f88
cvpcb: Split control tool in two and add cut/copy/paste
2019-08-12 14:19:01 -04:00
Ian McInerney
95430e131e
cvpcb: cleanup include statements
2019-08-12 14:19:01 -04:00
Ian McInerney
e022a2e4d1
cvpcb: Clean up compile dependencies
2019-08-12 14:19:01 -04:00
Ian McInerney
9fda86e261
cvpcb: Move file extension to common and deprecate a header
2019-08-12 14:19:01 -04:00
Ian McInerney
796d888f8f
cvpcb: Add individual association deleting
2019-08-12 14:19:01 -04:00
Ian McInerney
2d27c10c63
cvpcb: Add processing of hotkeys to the main window
...
* Add a tool loop to handle ESC to close the window and
focus changing keys
* Make changing focus a tool
2019-08-12 14:19:01 -04:00
Ian McInerney
d428d5fecf
cvpcb: Move some more tasks to a tool
2019-08-12 14:19:01 -04:00
Ian McInerney
06abda254a
cvpcb: Add undo/redo functionality to the associations
2019-08-12 14:19:01 -04:00
Ian McInerney
402031244d
cvpcb: Replumb the footprint association system
...
This is in preparation for implementing more association actions
and an undo/redo system.
2019-08-12 14:19:01 -04:00
Ian McInerney
72120e0a96
Actionize cvpcb
2019-08-12 14:19:01 -04:00
Ian McInerney
c0b80c67b9
Rename cvpcb footprint viewer tools
...
This is in preparation for the actionization of the main cvpcb window.
2019-08-12 14:19:01 -04:00
Michael Kavanagh
4c2ea8879f
Bit more ACTIONs cleanup
2019-08-12 13:49:55 -04:00
Michael Kavanagh
b414cbfada
Cleanup doDelete ACTIONs
2019-08-12 13:49:55 -04:00
Michael Kavanagh
79b2ff7551
Refactor deleteTool ACTION removing duplicates
2019-08-12 13:49:55 -04:00
Michael Kavanagh
db59c7011b
Unify menubar delete action
2019-08-12 13:49:55 -04:00
Wayne Stambaugh
9020a3a26c
Eeschema: remove dead code from LIB_PART object.
2019-08-12 12:13:21 -04:00
Wayne Stambaugh
e3e546f7d2
PCB calculator: fix regulator dialog layout.
...
Set default dialog size to -1,-1 to allow the dialog to size itself
properly to prevent the buttons in the standard dialog button sizer
from being truncated.
Fixes lp:1839695
https://bugs.launchpad.net/kicad/+bug/1839695
2019-08-12 09:30:46 -04:00