Jeff Young
36c5719535
Fix logic screw-up in earlier commit.
...
(cherry picked from commit f2c0f4c87f
)
2023-10-04 18:51:37 +01:00
Jeff Young
1f870bf76c
Handle justification when hit-testing fields.
...
This steals the algo used in SCH_PAINTER to get the right coords
for the text.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15722
(cherry picked from commit 6fbbf981f0
)
2023-10-04 18:51:33 +01:00
Jeff Young
c3446f9c2d
Handle flipped state when checkging item against viewport.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15768
(cherry picked from commit 3c1478367f
)
2023-10-04 18:48:42 +01:00
Marek Roszko
6096b5c4d8
Unbind event handlers in the DIALOG_SHIM destructor to prevent late event crashes
...
Fixes KICAD-1XF
(cherry picked from commit 3a567a3ae1
)
2023-10-01 21:55:36 +00:00
Jon Evans
3533e8b119
DbLib: support columns with numeric data
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15662
(cherry picked from commit 6f9af10912
)
2023-09-30 10:27:34 -04:00
Jeff Young
c895816cb0
Fix arg parsing in ExecuteFile.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15326
(cherry picked from commit 0f94b467ba
)
2023-09-30 13:34:26 +01:00
Jeff Young
9f814c0f6a
Repair standalone application 3D plugin path resolution.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15322
(cherry picked from commit 04214983cf
)
2023-09-30 13:34:09 +01:00
Jeff Young
e14aef9bd5
Correct path of pcb drawing sheet file on saveAs.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15551
(cherry picked from commit 722a90213c
)
2023-09-30 13:31:16 +01:00
Josue Huaroto
bf2e34f32e
Change variable substitution for paths in Windows.
...
(cherry picked from commit 74695b0995
)
2023-09-29 12:10:07 -07:00
Seth Hillbrand
5f16f4ab99
Focus back to the main window after dialog
...
Mouse actions would focus the window but we explicitly set it here to
allow keyboard shortcuts
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15603
(cherry picked from commit b2ef620ea6
)
2023-09-29 11:06:44 -07:00
Seth Hillbrand
686048dcce
Be smarter about releasing lockfiles
...
If KiCad crashes or exits without deleting the lockfile, don't show the
warning message unless we are not the one who locked it or there are
other KiCad instances running locally.
This should catch 99% of the cases where the message is shown
incorrectly. There may be some corner cases where the lock file is
created on a network drive using two different machines with the same
name and same user but these cases should be (famous last words)
sufficiently rare as to not be observed in practice
(cherry picked from commit 7fe83993cf
)
2023-09-29 11:02:42 -07:00
Marek Roszko
7f1b891679
Save 470KB by not re-initializing lineTypeNames over a thousand cpp files it leaks into
...
I saved a bunch of money on my car insurance by switching to Extern
(cherry picked from commit 9deff07ca6
)
2023-09-25 02:31:46 +00:00
Seth Hillbrand
d3a8cb84a6
Make LIB_TREE_NODE sort irreflexive
...
std::sort requires explicit ordering of all elements. It does not allow
for equality in its output
(cherry picked from commit 5c1b15f8e3
)
2023-09-20 13:48:43 -07:00
Alex Shvartzkop
c11ae8bd02
Fix a bug in RebuildBezierToSegmentsPointsList.
...
(cherry picked from commit 9f63820ed4
)
2023-09-11 10:05:59 +03:00
Josue Huaroto
8f259211e7
Change behavior of ZOOM_FIT_ALL and ZOOM_FIT_OBJECTS for PCB_EDITOR
...
(cherry picked from commit 91d8dabca3
)
2023-09-06 16:56:27 +01:00
Josue Huaroto
0d9d8c28f1
Flip Viewport when Flip board is enabled
...
(cherry picked from commit a8e18e2d8c
)
2023-09-06 16:56:01 +01:00
Jeff Young
4d46e0ceb7
Include underscore in word chars.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14779
(cherry picked from commit 0dddb27408
)
2023-09-06 16:33:02 +01:00
jean-pierre charras
955313e97d
GAL_OPTIONS_PANEL: replace 2 wxSpinCtrlDouble to try to fix a locale issue.
...
Sometimes the grid thickness setting does not work, depending on some locale setting.
Core developers are not able to reproduce this issue related to a double conversion.
So these wxSpinCtrlDouble are replaced by a wxSpinCtrl (using ints) and a wxChoice.
From master branch
2023-09-05 18:56:24 +02:00
Jeff Young
480a9ac77d
Implement undo/redo around Pad Edit Mode changes.
...
(cherry picked from commit 69a1b30b8a
)
2023-09-02 11:18:34 +01:00
jean-pierre charras
07e13c51d1
UNIT_BINDER: allows more room to show values (especially inches need room)
...
Fixes #15539
https://gitlab.com/kicad/code/kicad/-/issues/15539
2023-08-30 09:14:28 +02:00
jean-pierre charras
f9b59b4fdf
PANEL_SETUP_SEVERITIES: fix a missing init (m_severitiesPage) creating a crash.
...
PANEL_SETUP_SEVERITIES::ImportSettingsFrom(): ensure the option to set
actually exists before setting it.
2023-08-29 10:56:40 +02:00
Marek Roszko
7ca59e24c6
Force fontconfig to look at the correct path for fonts.conf on windows
...
(cherry picked from commit 208d146a03
)
2023-08-26 17:59:47 +00:00
Marek Roszko
e1a2d60672
Don't call FcInitLoadConfigAndFonts after FcInit() already happened
...
We are only the default global FcConfig created by calling FcInitLoadConfigAndFonts inside FcInit().
Calling FcInitLoadConfigAndFonts does nothing but creating another FcConfig option that never gets disposed or used because we use the FcConfig functions with null
(cherry picked from commit 53bf7b71c6
)
2023-08-26 17:59:28 +00:00
Jeff Young
f3dd5b73f8
TestDanglingEnds needs to test sheet pins as well.
...
Also fixes a bug where zooming doesn't get a redraw until mouse moves.
Also fixes a couple of bugs where dangling markers on SCH_SHEET_PINs
and SCH_HIERLABELs weren't getting drawn.
Also simplifies drawing algorithm by removing aesthetic offset (which
wasn't implemented when pin is drawn as part of selection VIEW_GROUP).
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15129
(cherry picked from commit c8e8b71198
)
2023-08-20 18:44:40 +01:00
Jeff Young
af1561b848
Don't double-offset effective text shapes.
...
Also fixes several bugs with intersheet ref fields. (It's possible for
other fields to have an ID of 0.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15165
(cherry picked from commit eedf319ba4
)
2023-08-19 20:09:47 +01:00
jean-pierre charras
691931f74d
kicad-cli, export plot PDF and SVG: add missing option --drill-shape-opt.
...
It allows pad/via holes to ber plotted at actual size, small size, or not.
This option exists in GUI, but was missing in kicad-cli.
(cherry picked from commit f18feb2a46
)
2023-08-19 10:56:32 -04:00
Jeff Young
043892bdc6
Disable "Override individual item colors" on read-only themes.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15426
(cherry picked from commit 88db775d32
)
2023-08-17 11:49:58 +01:00
Marek Roszko
27a0bd2535
Backport changes to merge distance for step export
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14910
2023-08-16 22:12:55 -04:00
Jon Evans
8f57fd82a0
DbLib: Provide more useful feedback when table is misconfigured
2023-08-15 16:45:10 -04:00
Jeff Young
83624acfd2
Allow GetLayer() to be used with single-layer zones.
...
Also fixes a bug in GetFirstLayer() where we were checking
m_layerSet.size() (which is always 60) rather than
m_layerSet.count() (which is the number of set layers).
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15233
(cherry picked from commit 8bb895373a
)
2023-08-15 17:51:52 +01:00
Jon Evans
88dfe6eb9c
Stricter API for LIB_TABLE
...
Prevent nickname map or row parent getting out of sync
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15315
(cherry picked from commit 4c4bbdc8f3
)
2023-08-15 01:39:09 +00:00
jean-pierre charras
c4914a64bb
PCB_GRID_HELPER::BestSnapAnchor() fix overflow due to use of int.
...
GRID_HELPER::GetVisibleGrid() needs double, does not work with int (overflow).
Fixes #15389
https://gitlab.com/kicad/code/kicad/-/issues/15389
2023-08-11 18:04:27 +02:00
Seth Hillbrand
9de58a29e3
Avoid bulking drawing sheet polygons
...
On the drawing sheet, the polygons are always filled and shouldn't have
additional stroking
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15242
(cherry picked from commit e71422d2cf
)
2023-08-04 13:51:38 -07:00
Jon Evans
56aff41b7e
Database libraries performance improvements
...
Rework caching system and optimize queries
(cherry picked from commit 39a5929f33
)
2023-08-04 17:57:46 +00:00
Alex Shvartzkop
4918ac6307
Improvements to Altium PCB/footprint importer:
...
- Support unicode footprint names
- Set default footprint text size and thickness to match KLC
- Position Reference at the top, Value at the bottom of fp bounding box
(cherry picked from commit 24452f41ad
)
2023-08-04 16:50:09 +03:00
Jon Evans
033ab9ac71
DbLib: Remove slashes from table display names
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15074
(cherry picked from commit 0e617774dd
)
2023-08-03 13:07:25 +00:00
Ian McInerney
b4b49a4296
Don't skip loading the wxWidgets message catalogs
...
The wxWidgets message catalog contains translations for strings that are
in the wx-provided dialogs, and these strings aren't contained in our
message catalog.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15035
(Cherry-picked from 5e740c354e
)
2023-08-02 23:20:21 +01:00
Mark Roszko
e016fa913f
Backport change to block IME on the canvas itself
2023-07-17 02:07:07 +00:00
Mark Roszko
b2f72020bd
Add policy to alter curl revoke settings on windows
2023-07-14 00:06:42 +00:00
Marek Roszko
d73f96e3d8
Add support for enum based policies
...
(cherry picked from commit b0fa2561b6
)
2023-07-14 00:04:31 +00:00
Marek Roszko
171c44507a
Add env variable to turn on curl verbose
2023-07-10 21:40:50 -04:00
Alex Shvartzkop
59c06bcaf1
OpenGL GAL: fix reserved vertices calculation in drawSegmentChain.
...
(cherry picked from commit 6a123e2381
)
2023-07-10 20:18:47 +05:00
Jeff Young
4a3ae82748
Don't process SCINTILLA_TRICKS onCharHook when autocomplete is active.
...
(ESC being the exception that proves the rule.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15001
(cherry picked from commit c2f2247ae3
)
2023-07-09 21:54:00 +01:00
Jeff Young
63f33a42e3
Don't trip over null strings.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14989
(cherry picked from commit ecb2fcd559
)
2023-07-09 21:08:51 +01:00
Jeff Young
19e128041b
Handle some Mac-standard keyboard shortcuts in Scintilla.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14973
(cherry picked from commit b3235ce667
)
2023-07-09 21:08:51 +01:00
Jeff Young
76f8b3df22
Treat undo as backspace and/or escape when drawing. Ignore redo.
...
Undo == backspace when drawing a polygon or chained lines. Otherwise
it's an escape.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14961
(cherry picked from commit ef6866757e
)
2023-07-09 21:08:51 +01:00
jean-pierre charras
e1e791fc75
*.wks files: always save text font when it is not the default font.
...
From Master branch
Fixes #15154
https://gitlab.com/kicad/code/kicad/-/issues/15154
2023-07-09 11:51:58 +02:00
Alex Shvartzkop
d6eb66c738
PDF plotting: Fix "Show Page" in Foxit PDF Reader.
...
pageNum is an Integer. Acrobat seems to convert automatically.
(cherry picked from commit 698fffb128
)
2023-07-09 05:46:11 +05:00
Alex Shvartzkop
0ffef66cb6
Fix bitmap transparency in Cairo GAL.
...
Cairo ARGB32 format needs alpha pre-multiplied with color.
(cherry picked from commit f286015bc7
)
2023-07-09 05:46:11 +05:00
jean-pierre charras
713cb032b5
Fix some (minor) issues when drawing shadow texts of RULER_ITEM and pin names.
...
From master branch (commits 355575e4
, 1698fb66
and 965aaa21
)
Fixes #15019
https://gitlab.com/kicad/code/kicad/-/issues/15019
2023-07-06 19:57:49 +02:00