Maciej Suminski
cbf74d6939
Fix off-grid block paste
...
Center point of a block may not always be located on a grid point,
therefore it needs to be rounded to the grid size to prevent off grid
component placement.
2018-10-09 11:08:56 +01:00
Jeff Young
6e2b7521d0
Coding style and lint fixes.
2018-10-09 11:08:56 +01:00
Jeff Young
06e63c3073
Add control over worksheet colour in eeschema.
2018-10-09 11:08:56 +01:00
Jeff Young
637029c292
Remove polygon fix as it causes more issues than it solves.
2018-10-09 11:08:56 +01:00
Jeff Young
5a910e9ee3
Make sure filled polygons are closed when rendering.
2018-10-09 11:08:56 +01:00
John Beard
4a65df8281
Add default case in edit_label.cpp (-Wswitch)
...
This should never ben hit as it's defended against above,
but lack of a default causes lots of -Wswitch warnings, so
add an assert and a return.
2018-10-09 11:08:56 +01:00
Jeff Young
9dfcc839a4
Fix color issues with cursor and sheet pins.
2018-10-09 11:08:56 +01:00
jean-pierre charras
4a92a5e628
Fix a Eeschema crash when using a SYMBOL_PREVIEW_WIDGET. Fix also a few draw artifacts.
2018-10-09 11:08:56 +01:00
jean-pierre charras
a6d014d959
Fix some artifacts when drawing items, both on Cairo and Opengl.
...
Fix also incorrect selection of De Morgan style selection in SYMBOL_PREVIEW_WIDGET.
2018-10-09 11:08:56 +01:00
Jeff Young
2d5baac77d
Fix up zoom and pan issues entering/leaving sheets.
2018-10-09 11:08:56 +01:00
Jeff Young
929786ce50
Fixes to grid color and some more CLangTidy fixes.
2018-10-09 11:08:56 +01:00
Jeff Young
0af31e1bf0
Fix CLangTidy warnings and improve SNR.
2018-10-09 11:08:56 +01:00
jean-pierre charras
0058ef5825
Eeschema: fix a crash at startup in OpenGL engine, when Eeschema is started from Kicad.
...
Can be platform dependent. The crash was due to a wxPaintEvent fired before the GAL engine is fully initialized.
2018-10-09 11:08:56 +01:00
jean-pierre charras
88cdce8d62
Make SYMBOL_PREVIEW_WIDGET working, and using the canvas type of the caller. Fix an issue with F3 zoom key in libedit.
2018-10-09 11:08:56 +01:00
Jeff Young
6f89b41f18
Cleanup.
2018-10-09 11:08:56 +01:00
Jeff Young
3b59c6cf0a
Don't add item to view twice.
2018-10-09 11:08:56 +01:00
jean-pierre charras
33386ec980
Fix zoom issues in Eeschema (F1 to F4 and popup zoom commands) Fix also not saving the Gal Canvas type on eeschema exit.
2018-10-09 11:08:56 +01:00
jean-pierre charras
f283667fb0
add option to switch between opengl and cairo in eeschema (step 1)
2018-10-09 11:08:56 +01:00
Jeff Young
f9faa6ea16
Reduce "Clarify Selection" menus.
2018-10-09 11:08:56 +01:00
Jeff Young
97c83766db
Refresh issues around sheet pins.
2018-10-09 11:08:56 +01:00
Jeff Young
96724af2c4
Ensure junctions and no-connects are visible even on fat wires.
...
Also adds a preference for junction size.
Fixes: lp:1545422
* https://bugs.launchpad.net/kicad/+bug/1545422
2018-10-09 11:08:56 +01:00
Jeff Young
ca3751fbbb
Add GAL refresh for some more commands and remove unused DC params.
2018-10-09 11:08:56 +01:00
Jeff Young
8e09aa554a
Improve dangling pin drawing logic.
2018-10-09 11:08:56 +01:00
Jeff Young
268565ee41
Refresh component when children change.
2018-10-09 11:08:56 +01:00
Jeff Young
37cfa3fed9
Cleanup unused and redundant stuff.
2018-10-09 11:08:56 +01:00
Jeff Young
e2ea9b772a
Fix offset issue when moving text.
2018-10-09 11:08:56 +01:00
Jeff Young
d9d2822fe0
Fix cross-probing.
2018-10-09 11:08:56 +01:00
Jeff Young
9f9251c11d
Minor code cleanup.
2018-10-09 11:08:56 +01:00
Jeff Young
2b6e3de90e
Get rid of asserts when adding line segments.
2018-10-09 11:08:56 +01:00
jean-pierre charras
1a0f3b79cc
Fix SCH_BITMAP handling in gal.
2018-10-09 11:08:56 +01:00
jean-pierre charras
e55763947e
Set the reight grid visibility at start. Display axis in libedit and viewlib.
2018-10-09 11:08:56 +01:00
Jeff Young
98296334fd
Hook up panning options to GAL canvas.
2018-10-09 11:08:56 +01:00
Jeff Young
5b602d02ab
Set block start position when grabbing single items.
2018-10-09 11:08:56 +01:00
Jeff Young
6f0c6f946c
Fixup some more cursor issues.
2018-10-09 11:08:56 +01:00
Jeff Young
b09a4b341c
Update moved items so they get reinserted into the RTree.
2018-10-09 11:08:56 +01:00
Jeff Young
fee52e127f
Add line style drawing.
2018-10-09 11:08:56 +01:00
Jeff Young
808beed191
Warp pointer after context-menu duplicate.
2018-10-09 11:08:56 +01:00
Jeff Young
1e3a5c1b21
Fixup of last commit.
2018-10-09 11:08:55 +01:00
Jeff Young
0063f2c12d
Stroke rectangles after filling so fill doesn't cover 1/2 of stroke.
2018-10-09 11:08:55 +01:00
Jeff Young
48688b5074
Hook up "always show cursor" preference.
2018-10-09 11:08:55 +01:00
jean-pierre charras
f1346030d7
sch_painter.cpp: fix a few incorrect color selections Fix also dangling symbol thickness of bus entries
2018-10-09 11:08:55 +01:00
Jeff Young
4fe58922aa
Draw lines in wire, bus, or graphic color.
2018-10-09 11:08:55 +01:00
Jeff Young
fa0124bee7
Enforce a minimum line thickness for labels.
2018-10-09 11:08:55 +01:00
Jeff Young
4161bb6756
Overhaul block logic to support rotate/mirror on the fly.
...
The old code delayed duplicating till the end which means the
rotate/mirror would affect the original, and then be duplicated
leaving the original incorrectly rotated/mirrored.
2018-10-09 11:08:55 +01:00
jean-pierre charras
906c52deff
minor compil warnings and drawings fix
2018-10-09 11:08:55 +01:00
Jeff Young
3c82ad3220
Finish up the block rotate/mirror fixes.
...
Block rotate and mirror now work like they do in Pcbnew (that is
they're treated as part of the block move/duplicate/whatever
rather than finishing it).
Fixes: lp:1780794
* https://bugs.launchpad.net/kicad/+bug/1780794
2018-10-09 11:08:55 +01:00
Jeff Young
924e56e076
WIP for block rotate and mirror.
...
Block rotate now doesn't drop the block, but it does introduce one
extra undo step per rotate.
Fixes: lp:1780794
* https://bugs.launchpad.net/kicad/+bug/1780794
2018-10-09 11:08:55 +01:00
Jeff Young
7216eda202
Fix bugs in block operations.
...
1) when duplicating don’t keep original hidden until end of drag
2) reset selectionArea when showing it so it doesn’t flash in its previous location
3) center a pasted block on the cursor
4) don’t draw the source selectionArea when pasting a block
5) implement selection-style highlighting for contents of blocks
6) add pasted items to view so they don’t disappear when the block is placed
Fixes: lp:1747197
* https://bugs.launchpad.net/kicad/+bug/1747197
2018-10-09 11:08:55 +01:00
Jeff Young
27df8937b8
Apply a bit of transparency for body backgrounds while dragging.
2018-10-09 11:08:55 +01:00
Jeff Young
7d5e4de815
Implement MoveCursorToCrossHair.
2018-10-09 11:08:55 +01:00