Jeff Young
8e2ef339b6
Handle modern-toolset panning.
Fixes: lp:1748850
* https://bugs.launchpad.net/kicad/+bug/1748850
7 years ago
Jeff Young
c88fd514a0
Implement drawing tools in modern toolset.
Fixes: lp:1825192
* https://bugs.launchpad.net/kicad/+bug/1825192
7 years ago
Jeff Young
2aad4a5e57
Remove dead code from removal of eeschema legacy canvas.
7 years ago
jean-pierre charras
9e5bc5d2d3
Eeschema: fix incorrect handling of Escape key.
Key events do not have to be skipped after they are handled.
7 years ago
Seth Hillbrand
078320e2fb
Unify and correct Autosave functions
Autosave was not working correctly, partly due to different
implementations in eeschema and pcbnew and partly due to a mistaken
refactor at some point during v5 development. This unifies the expected
autosave prefix to _autosave- for both pcbnew and eeschema. It also
unifies the expected suffix for the backup files to -bak.
Fixes: lp:1820433
* https://bugs.launchpad.net/kicad/+bug/1820433
7 years ago
jean-pierre charras
869bdc2b3c
Eeschema: regression fix: re-enable hold down control+shift to disable grid snapping when moving the mouse.
Fixes: lp:1815487
https://bugs.launchpad.net/kicad/+bug/1815487
7 years ago
jean-pierre charras
4cd41e3941
Eeschema: avoid using a incorrect background color the first time a SCH_DRAW_PANEL is displayed
When starting Eeschema, or a frame/dialog using a SCH_DRAW_PANEL, the bg color was initialized too late,
thus creating a flicker or an annoying draw artifact (in SYMBOL_PREVIEW_WIDGET for instance) if a Paint event
is fired before the right bg color is initialized.
Initializing the bg color earlier fix this issue.
Fixes: lp:1797203
https://bugs.launchpad.net/kicad/+bug/1797203
7 years ago
Maciej Suminski
63d4afb3ee
Support autopanning in GALified eeschema
Fixes: lp:1807234
* https://bugs.launchpad.net/kicad/+bug/1807234
7 years ago
Seth Hillbrand
ed506dd05e
eeschema: Prevent excess link updates
Refreshing the symbols for each paint is excessive to catch the change
from library loads. Instead we catch them on the KIWAY MAIL update
7 years ago
jean-pierre charras
ab3ff61faa
Eeschema: adjust the working/drawing area size on the page size.
This makes using Scrollbars more easy to use, especially for "small" page sizes like A or B.
Note also the working/drawing area size is bigger than the page size (3 times)
7 years ago
jean-pierre charras
240051fb26
Worksheet display in GAL mode: fix missing filename and (in Eeschema) sheet full name.
7 years ago
Maciej Suminski
d6bc402f14
Fix instantly disappearing pop-up menu in eeschema
Fixes: lp:1798453
* https://bugs.launchpad.net/kicad/+bug/1798453
7 years ago
jean-pierre charras
be0935b339
Eeschema: Update zoom/scale limits, due to recent change in GAL.
Fixes: lp:1797995
https://bugs.launchpad.net/kicad/+bug/1797995
7 years ago
John Beard
bf42247971
Eeschema: fix potential crash when closing Kicad app.
The crash happens when a wxPaint event is fired after deleting the schematic frame.
It happened only on one Linux install.
Fixes: lp:1800874
* https://bugs.launchpad.net/kicad/+bug/1800874
7 years ago
Maciej Suminski
a18be5d37c
Adjust GAL world unit for eeschema
7 years ago
Jeff Young
f17c18bcce
Remove AdvanceDepth() hacks in favour of proper layers.
Also removes the bounding-box cache since the last big merge
should have sorted out the Update(GEOMETRY) calls.
Fixes: lp:1797271
* https://bugs.launchpad.net/kicad/+bug/1797271
Fixes: lp:1797268
* https://bugs.launchpad.net/kicad/+bug/1797268
Fixes: lp:1797075
* https://bugs.launchpad.net/kicad/+bug/1797075
7 years ago
Jeff Young
c06e533689
Add hack to Resolve all symbols when painting.
Seems rather expensive, but this is what the Legacy canvas did.
In fairness, it does check the last-mod-date of the libraries
and skips it if they haven't changed.
Fixes: lp:1798446
* https://bugs.launchpad.net/kicad/+bug/1798446
7 years ago
Tomasz Włostowski
12567c7500
eeschema-gal: don't warp cursor back to mouse when using hotkey to emulate a mouse click
Fixes: lp:1797273
* https://bugs.launchpad.net/kicad/+bug/1797273
7 years ago
jean-pierre charras
61f2dd21b1
Eeschema gal: fix some redraw issues for bitmap images and worksheet.
After edition, the worksheet was not updated on screen.
Bitmap images were not shown in opengl mode due to the fact all gal layers were cached.
7 years ago
jean-pierre charras
7c960aa5fe
Eeschema: better limit for zoom out level
Fixes: lp:1797995
https://bugs.launchpad.net/kicad/+bug/1797995
7 years ago
Jeff Young
29e0e6921b
Turn on OpenGL caching. Time to smoke out the bugs.
7 years ago
Seth Hillbrand
bfa7f16b44
Wrap printfs in DBG defines
This places the remaining printf statements behind DBG() macros to
suppress their output on release builds. We should remove these prior
to 5.1
7 years ago
jean-pierre charras
4904ece0b5
eeschema gal: keep grid visibility setting when switching between back-ends
7 years ago
Jeff Young
9dfcc839a4
Fix color issues with cursor and sheet pins.
7 years ago
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.
7 years ago
Jeff Young
6f89b41f18
Cleanup.
7 years ago
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.
7 years ago
jean-pierre charras
f283667fb0
add option to switch between opengl and cairo in eeschema (step 1)
7 years ago
Jeff Young
e2ea9b772a
Fix offset issue when moving text.
7 years ago
Jeff Young
d9d2822fe0
Fix cross-probing.
7 years ago
Jeff Young
98296334fd
Hook up panning options to GAL canvas.
7 years ago
Jeff Young
7d5e4de815
Implement MoveCursorToCrossHair.
7 years ago
Jeff Young
5fd20ee786
Implementation of ERC markers.
7 years ago
Jeff Young
8b4f01b6b7
Add common property initialisation to sch_draw_panel.
7 years ago
Tomasz Wlostowski
48d36f854e
eeschema-gal: fix cursor shape switching
7 years ago
Tomasz Wlostowski
90c7c60471
eeschema-gal: initial GALified version. Lots of stuff still to do!
7 years ago