Alex Shvartzkop
8f8a68229c
Handle touchscreen gesture events for zoom/pan.
2024-06-08 16:00:34 +03:00
Alex Shvartzkop
8e90063258
Support hidpi in Cairo GAL canvas; performance improvements.
...
We now draw onto wxBitmap directly, reducing the amount of copying.
Also moves the bitmap blit into paint event handler.
Modifies ClearScreen to work universally between Cairo/OpenGL backends.
2024-06-08 12:51:27 +03:00
jean-pierre charras
dc6b211227
better tool tips
2024-06-07 11:19:56 +02:00
jean-pierre charras
8b1e971f29
bitmap_info.cpp: fix a crash when opening the simulator frame.
...
It was due to missing bitmaps, used in simulator frame horizontal toolbar.
They were removed probably by mistake in commit 0e66adbc
2024-06-07 11:13:58 +02:00
Jon Evans
10922a194c
Remove extraneous cache fill per row
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18159
(cherry picked from commit 64da49f22e
)
Co-authored-by: Jon Evans <jon@craftyjon.com>
2024-06-05 16:08:45 +00:00
dsa-t
34f0fb8f21
Revert "Don't reset the view controls state just because we are setting the already active tool state again"
...
This reverts commit e914c0c1a0
(cherry picked from commit 6b7b6fa3e3
)
Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2024-06-04 18:03:41 +00:00
dsa-t
ca18112041
Fix ellipse angles when importing DXF.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18121
(cherry picked from commit 044a2305e3
)
Co-authored-by: Alex Shvartzkop <dudesuchamazing@gmail.com>
2024-06-04 04:19:51 +00:00
Seth Hillbrand
9f2c9636f0
Update conn minor check to use Advanced Config
2024-06-03 11:56:37 -07:00
xx
4dffa6f9e8
Fix equal comparison in BOM_PRESET
...
Fixes #18097 .
2024-06-03 16:33:34 +00:00
Jeff Young
ec0fdfffff
ADDED: markers for excluded-from-sim items.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15382
2024-06-03 17:12:15 +01:00
Jeff Young
4a01f322ff
Special-case hit-testing of filled schematic rule areas.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17879
2024-06-01 22:48:02 +01:00
Alex Shvartzkop
cf7ad330e9
Fix some platform ifdef checks.
2024-06-01 06:49:11 +03:00
Alex Shvartzkop
bc07efc076
Fix a build issue on MSVC with wx 3.3.
2024-06-01 06:48:47 +03:00
Seth Hillbrand
e8c96a8a20
Fixups for a9ae86ee
...
Correcting a couple mistakes and clarifying rounding
2024-05-31 17:31:50 -07:00
Seth Hillbrand
a9ae86eefd
Cleanup geometry functions
...
Added Distance(VECTOR2) function that returns a double. Removed
superfluous EuclideanNorm, GetLineLength, integer constructor for
EDA_ANGLE (this promotes to double in the CTOR), DistanceLinePoint and
HitTestPoints
Also extended the size for arc calculations that get distances to center
points to avoid overflow
2024-05-31 12:26:37 -07:00
Jeff Young
931de12072
Use wxWidgets to track DPI.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17981
2024-05-31 17:08:43 +01:00
Jeff Young
2681461992
Formatting.
2024-05-31 13:35:44 +01:00
Jeff Young
7151f9a131
Formatting.
2024-05-31 10:36:51 +01:00
Alex Shvartzkop
7a0d75a5c4
Improve GRID_CELL_ICON_TEXT_RENDERER rendering on hidpi monitors.
2024-05-30 03:56:30 +03:00
Jeff Young
c828deee35
Sorting is not implemented on LIB_TREE columns.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18101
2024-05-29 18:49:11 +01:00
Jeff Young
51004e42f4
Improve comments.
2024-05-28 15:37:11 +01:00
Alex Shvartzkop
e3e63fb1b8
Disable hidpi cursors on GTK and OSX.
...
wxCursor scale factors won't be supported before wx 3.3.
MSW doesn't scale cursors, so it works as expected there.
2024-05-28 16:25:01 +03:00
Jeff Young
b88d3b13ac
ADDED: sketch-pads-on-fab-layers to CLI PDF & SVG export.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18091
2024-05-27 20:59:11 +01:00
xx
5ff61ae561
Add rectangle height and width to properties
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17181
2024-05-27 17:28:32 +00:00
Jeff Young
513e68a04a
Trim punctuation from end of URLs.
2024-05-27 17:06:09 +01:00
Jeff Young
e9a1c3032d
Update commenting following a bit of research into commit history.
2024-05-27 12:23:56 +01:00
Jeff Young
233ebb3e09
Add commenting regarding double-output of text.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18090
2024-05-27 12:14:08 +01:00
Alex Shvartzkop
41b30e6ac6
Use logical size to center the bitmap in bitmap button.
2024-05-27 11:25:55 +03:00
Alex Shvartzkop
b6aa01a572
Accept bitmap bundles for menu items (but don't use it yet).
2024-05-27 01:02:12 +03:00
Alex Shvartzkop
c401e3d24b
Prefer wxFB sizes in bitmap buttons.
2024-05-27 00:12:55 +03:00
Alex Shvartzkop
5e64bd6256
Center bitmaps in bitmap buttons by default.
2024-05-27 00:12:55 +03:00
Alex Shvartzkop
2a5903cd9b
More universal way of scaling indicator icon bitmaps.
2024-05-26 22:14:52 +03:00
Seth Hillbrand
ab0426d620
Detect if HiDPI cursors are needed
...
HiDPI cursors are twice as large as regular cursors, allowing them to be
more easily seen on a HiDPI system
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16231
2024-05-26 07:51:15 -07:00
Jeff Young
30b5adde17
Fix spacing/scaling of indicators on MacOS.
...
Also pushes indicator scaling improvements to GerbView.
2024-05-26 14:37:05 +01:00
Alex Shvartzkop
b64a30f44b
Fix color swatches and color picker dialog on GTK with window scaling.
2024-05-26 13:02:37 +03:00
Alex Shvartzkop
296630d484
Allow using higher resolution bitmaps in bitmap buttons on GTK.
2024-05-26 09:23:43 +03:00
Alex Shvartzkop
1afbcb04db
Improve WX_GRID col label height to avoid clipping on hidpi.
2024-05-26 08:05:25 +03:00
Alex Shvartzkop
6eb8bf3d39
Add hidpi PCM icons for launcher panel.
2024-05-26 08:05:25 +03:00
Alex Shvartzkop
0e66adbca1
Generate hidpi variants for mid size (_24) application icons.
2024-05-26 08:05:25 +03:00
Alex Shvartzkop
067e9c308d
Improve sizing in color picker dialog.
2024-05-26 03:56:58 +03:00
Alex Shvartzkop
0b4ff7b859
Improve indicator icons in hidpi monitors.
2024-05-26 01:16:47 +03:00
dsa-t
9a1b3471fd
Revert "Improve toolbar bitmap redraw performance on Windows."
...
This reverts commit 6170151cbc
2024-05-25 20:32:48 +00:00
Alex Shvartzkop
b89d4a7f20
3D model export improvements:
...
- Option to export pads separately from tracks+vias
- Options export silkscreen and soldermask as flat faces
- Improve 3D model export dialog layout
- Use VisMaterialTool to specify metallic-roughness for glTF.
- Less OCCT boolean operations (faster, less bugs)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2072
2024-05-25 22:27:01 +03:00
Alex Shvartzkop
6170151cbc
Improve toolbar bitmap redraw performance on Windows.
...
Especially noticeable on high dpi.
2024-05-25 21:47:51 +03:00
Marek Roszko
7dee29f70a
Hackfix some cases the IME on windows locks up
...
Asking the IME to cancel when the canvas takes focus fixes the case where:
- Windows input lang set to Chinese
- Input mode set to english instead of chinese
- You spam the M key while launching a sch/pcb from the kicad.exe until the editor opens
- The windows would then normally be frozen
2024-05-25 13:25:10 -04:00
Marek Roszko
808517dd74
Remove no longer needed hack on msw with wx 3.2.5
...
wxButton::GetDefaultSize was fixed and returns the correct size now
2024-05-25 10:45:27 -04:00
Jeff Young
1c77e087a7
Add a sprinkling of GetPixelScaleFactor() for MacOs.
2024-05-25 14:26:43 +01:00
Jeff Young
17308e821f
Formatting.
2024-05-25 12:05:13 +01:00
Jeff Young
26fe4c05e1
CmpNoCase() returns 0 for a match (which evals to false as a bool).
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18087
2024-05-25 12:05:13 +01:00
Alex Shvartzkop
894bf45480
Make color picker dialog usable on hidpi monitors.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17860
2024-05-25 04:13:13 +03:00
Marek Roszko
e9fde0051f
Don't let CaptureCursor fight modal dialog
2024-05-24 18:57:24 -04:00
Jeff Young
ecb7cd6b84
Fix color-swatch sizing on MacOS.
...
Also fixes BITMAP_BUTTON sizing.
2024-05-24 18:27:15 +01:00
Jeff Young
397ae3bafd
Support wildcards and regEx's in Net Inspector.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18071
2024-05-24 12:24:05 +01:00
Marek Roszko
132ecee665
Don't reset the view controls state just because we are setting the already active tool state again
2024-05-23 22:23:34 -04:00
Alex Shvartzkop
884051fae1
Update status bar widths on DPI change.
2024-05-23 20:22:13 +03:00
Wayne Stambaugh
795a9eea60
Coding policy fixes.
...
This is primarily to change all instances of wxLogDebug with wxLogTrace
so developers do not have to sift through debugging output that is always
dumped. The only exception is for code blocks built in debug builds and
called on demand for dumping object states.
2024-05-23 07:59:45 -04:00
Jeff Young
edae328ca6
Push multi-sweep traces down into MathPlot.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17215
2024-05-23 12:24:56 +01:00
Alex Shvartzkop
e817f68f8e
Remove unused header.
2024-05-23 08:30:55 +03:00
Alex Shvartzkop
ef148d372d
Set current scale factor for generated bitmaps in color swatch.
...
Therefore, the bitmaps will be drawn as-is.
2024-05-23 08:30:55 +03:00
Alex Shvartzkop
85f5b8849e
Invalidate control sizes in ACTION_TOOLBAR.
2024-05-23 00:40:47 +03:00
Alex Shvartzkop
492ce600a4
Improve message panel alignment on hidpi monitors.
2024-05-23 00:40:47 +03:00
Alex Shvartzkop
77b285c8ce
Improve BITMAP_BUTTON behaviour when changing DPI.
2024-05-23 00:40:47 +03:00
Jeff Young
e332320108
Handle font when reading render cache.
...
(Also fixes a bug where the cache's triangulation wasn't
cached.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17666
2024-05-21 11:31:35 +01:00
Alex Shvartzkop
73e0498768
Improve hidpi color swatch sizes in layer selectors on MSW.
2024-05-21 03:46:09 +03:00
Alex Shvartzkop
4e306a7d76
Remove useless method (ResyncBitmapOnly)
2024-05-21 03:46:09 +03:00
John Beard
ce758adca3
Enable horizontal scroll panning
...
Allow a horizontal scroll event to fall through to the panning branch.
This still restricts zooming to use only the vertical axis, but it
(re-?)enables the horizontal pan function that currently doesn't work
even if the user has set "allow horizontal panning", as the horizontal
scroll doesn't have a modifier, which is the default for vertical scroll
zoom, and thus it skips over the whole panning branch.
If the user has not set horizontal panning, the earlier early return
means that there is no handling of any horizontal scroll event, so this
won't change anything for these users.
2024-05-20 19:23:23 +08:00
Jeff Young
f7bef5e09b
Generalize EnhanceAttr() function.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17735
2024-05-16 16:28:13 +01:00
Jeff Young
98f4e60b90
Contour cache must be sensitive to size.
...
(While we scale the contours afterwards, font hint
data is size-sensitive so the contours are already
size-specific.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18014
2024-05-15 23:36:57 +01:00
Jeff Young
e0e9321ea9
Consistency in command names.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17314
2024-05-15 13:50:42 +01:00
Jeff Young
9e1330184c
Patch another dynamic_cast-across-compile-unit-boundaries issue.
2024-05-15 10:55:51 +01:00
Jon Evans
c800fb790d
Start unifying padstack properties
2024-05-14 20:57:56 -04:00
Alex Shvartzkop
e71789bab0
Minor alignment fixes in Plot dialog and Common settings.
2024-05-14 17:44:16 +03:00
Jeff Young
20cde51b43
Fix numerous bugs in schematic item rotation.
...
(This will probably introduce some new ones too, but
it was so broken it's hard to know where to start.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17921
2024-05-12 20:43:08 +01:00
Jeff Young
d9ff3c4485
Maintain selection when sorting.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17983
2024-05-11 16:20:34 +01:00
jean-pierre charras
e51316a932
Fix a 100% CPU core usage is some editing cases.
...
In commit 7cb754dd
a call to wxMilliSleep(50) was removed (because it created
lag in editing) but this removal created a 100% CPU core usage.
Using a much small sleep time (1ms) fixes these issues.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17979
2024-05-11 12:53:04 +02:00
Seth Hillbrand
42ebf0eca5
Limit FSWatcher
...
Library watches only need a single directory or immediate children. The
project watcher should have a sensible limit to the total number of
files it tries to track.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15717
2024-05-09 15:42:25 -07:00
Jeff Young
a99377c1ec
The user can cancel the opening of many editors.
...
Don't play dice with the devil.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17989
2024-05-08 18:21:42 +01:00
Alex Shvartzkop
dc8822b421
Don't hide symbol/footprint preview widgets on scroll.
2024-05-08 19:40:01 +03:00
Seth Hillbrand
72eee002aa
Add effective display for fields
2024-05-07 17:59:13 -07:00
Marek Roszko
f87bd91d61
Move libeval to kicommon
2024-05-07 20:44:19 -04:00
JamesJCode
9e1a5eb1bd
Eeschema: Only assign nets with resolved netclasses to the label map
...
Also fixes a bug where the pattern assignment cache was not cleared
if all pattern assignments were deleted in the setup netclasses
panel.
2024-05-07 20:16:17 +01:00
Jon Evans
6c41354da5
DbLib: Prevent uncaught exception creating statement
...
Defer telling the statement about the connection until the
try block, because otherwise it can connect immediately and
potentially throw an exception if the connection fails.
(cherry picked from commit ddd7c35586
)
Co-authored-by: Jon Evans <jon@craftyjon.com>
2024-05-06 21:00:13 +00:00
Seth Hillbrand
c8375c151c
Launch default URI handler if exists
...
Otherwise, handle as a normal file
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17902
2024-05-06 12:22:40 -07:00
Seth Hillbrand
5156229da7
Fixup previous edit
2024-05-06 10:36:07 -07:00
Seth Hillbrand
8a306eecb6
Cleanup libgit init calls
2024-05-06 10:18:38 -07:00
Seth Hillbrand
ba5ad70b68
Add default rotation format
2024-05-06 10:00:19 -07:00
Alex Shvartzkop
5475359d00
More build time optimizations.
2024-05-06 04:39:28 +03:00
Seth Hillbrand
a835ba0715
Add "Mechanical" pad property
...
Prevents mechanical support pads from being used to check pad types.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16747
2024-05-05 21:57:10 +00:00
Jeff Young
1290228fbf
Don't modify radius when editing center.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17192
2024-05-05 19:58:01 +01:00
Alex Shvartzkop
5e14ae9698
Add OpenGL info to About.
2024-05-05 21:30:25 +03:00
JamesJCode
658eb1d338
Assert if NESTED_SETTINGS migration is missing for an intermediate version
...
- Fixes early load during NESTED_SETTINGS construction within
SCHEMATIC_SETTINGS, now failing due to missing migrations at that
object construction point
- Adds missing (NOOP) migration for NET_SETTINGS schema versions 1 -> 2
2024-05-05 19:12:01 +01:00
Seth Hillbrand
0476b6c72d
Ensure irreflexive property in LIB_TREE_NODE
2024-05-05 07:33:00 -07:00
JamesJCode
39d9aba576
Don't stop migrating JSON_SETTINGS if intermediate migrator missing
2024-05-05 14:22:53 +01:00
John Beard
fa7e842c8c
Rework item distribution
...
This splits the tool into two separate tools: by center and
by even gaps. Previously, this was automatically decided, based on
if the items could have any gaps between them. This was unintuitive
as it would appear to arrange by centre point sometimes but not others.
When items aren't all the same width, the results can then be very
different, based only on the starting positions.
The new behaviour is to have a dedicated tool for each, which echos
how graphical programs like Inkscape manage this.
The by-gaps method is then extended to work for overlapping items
(when items overlap, the overlaps are made equal). The logic is
centralised in kimath/geometry, and some QA is added. This should
make it easier to extend to eeschema, for example.
This also (attempts to) address some rounding issues which could
cause minor, but compounding, errors to build up along the list
of items.
Also, fix bugs in the collection filtering - previously items
like markers were filtered out only after the selection size
was used to compute the gaps between items.
2024-05-05 03:35:09 +08:00
Jon Evans
6b145b2830
Add optional reporting of non-KiCad design issues
...
Also add HTML reporter to PCB side to match schematic
(cherry picked from commit b8fa10ab2b
)
Co-authored-by: Jon Evans <jon@craftyjon.com>
2024-05-04 15:27:52 +00:00
Jeff Young
c998234dec
Restore accidentally deleted text size constraint algo.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17284
2024-05-03 22:12:34 +01:00
Jeff Young
65554943e0
lint reduction
2024-05-03 22:12:34 +01:00
Jon Evans
3351da9906
DbLib: Fill entire table if cache is empty when loading one part
...
The "already placed parts" feature causes a situation where many
single-part queries are placed before the cache is even filled.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17940
(cherry picked from commit 3c99a3797e
)
Co-authored-by: Jon Evans <jon@craftyjon.com>
2024-05-03 21:04:13 +00:00
Jon Evans
639f59839e
Make sure database library has updated pointer to library table
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17903
(cherry picked from commit 1a76fce255
)
Co-authored-by: Jon Evans <jon@craftyjon.com>
2024-05-03 15:39:33 +00:00
Alex Shvartzkop
2a889f03fc
EasyEDA Std/Pro: import (some) component metadata for symbols.
...
Also fixes Reference numbering.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17806
2024-05-03 00:37:59 +03:00