Marek Roszko
f6401b0903
Fix preferences dialog on hidpi using FromDIP
2024-01-16 15:33:32 -05:00
jean-pierre charras
6659cec5e0
LIB_TREE::onHoverTimer() fix crash in Footprint Chooser dialog, due to
...
a pointer that can be null, when called from Change Footprints dialog.
Fixes #16556
https://gitlab.com/kicad/code/kicad/-/issues/16556
2024-01-09 15:49:23 +01:00
jean-pierre charras
3f70387a17
KISTATUSBAR: code refinement and add comments
2024-01-07 09:47:40 +01:00
jean-pierre charras
1649b7dd56
Kicad manager: fix some issues about the wxStatusBar:
...
- fix broken code KICAD_MANAGER_FRAME::PrintPrjInfo()
- fix issues created by using KISTATUSBAR instead of wxStatusBar
(the user field count differs because there are 4 other fields added)
- do do use a fixed size in KISTATUSBAR for FIELD_OFFSET_BGJOB_TEXT field:
fixed field size does not work fine if the text to display is not known
Fixes #16535
https://gitlab.com/kicad/code/kicad/-/issues/16535
2024-01-06 20:23:37 +01:00
Jeff Young
169ece3b71
Try reusing the TOOL_DISPATCHER menu hack for libtree previews.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16493
2024-01-05 14:20:33 +00:00
Marek Roszko
9a890cdba9
Kick the wildcards and file exts into a static class, export it from kicommon
2023-12-27 21:10:01 -05:00
Jon Evans
7470ec80e4
Fix some issues with Font property
...
Prevent out-of-bounds access
Make sure list is initialized in symbol editor frame
Don't re-init the list more frequently than necessary
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16399
2023-12-22 18:34:48 -05:00
Wayne Stambaugh
a4b38fbb80
Coverity warning fixes.
2023-12-18 16:09:13 -05:00
Jeff Young
358a2b9875
Make sure mru search strings get updated on double-click.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16355
2023-12-14 12:03:41 +00:00
Wayne Stambaugh
8687d5092f
String and dialog layout fixes.
2023-12-13 11:49:34 -05:00
Jeff Young
d3ab677197
Pre-select current net in net selector.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16320
2023-12-12 13:57:12 +00:00
Ian McInerney
53fd1aaf5e
Don't try accessing library table rows that don't exist
...
When exiting the dialog without actually visiting the table, the grid
cursor could be missing, so it could return -1. Guard against that
condition.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16342
2023-12-11 23:36:51 +00:00
Ian McInerney
d8bb9b1e66
Don't update file browser filter if control doesn't exist
...
When the grid is being validated, SetValue is called, which then ends up
running the file filter update. However, if the cell was never selected,
the file browser button would never have been created.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16316
2023-12-08 22:09:55 +00:00
Wayne Stambaugh
b7dc7e90ac
Minor string fixes.
2023-12-08 13:09:16 -05:00
Ian McInerney
be9c3b08b5
Fix library table file filters
...
The schematic librayr table was missing the Kicad Sexpr filter, and also
the filter inside the grid editor was never updated when the library
plugin type was changed in the grid, so a library of the new type could
not be selected.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16278
2023-12-07 11:16:02 +00:00
jean-pierre charras
98091d0199
Fix issues in widget_hotkey_list.cpp, HK_PROMPT_DIALOG:
...
- fix not working char events on MSW
- fix incorrect handling of ESC key: it deleted the current hothey
- fix incorrect management of sizers in this dialog.
Fixes #16238
https://gitlab.com/kicad/code/kicad/-/issues/16238
2023-12-02 11:29:56 +01:00
Alex Shvartzkop
f94b3856af
Fix color swatch asserts on wxMac.
...
GetPixel doesn't work on wxMac.
2023-11-30 18:23:40 +03:00
Alex Shvartzkop
bbba7fd4d7
Alpha-blend color with the checkerboard in color swatches.
2023-11-29 03:34:11 +03:00
Alex Shvartzkop
42c9553262
Add a Wayland hack to hover previews.
2023-11-28 18:49:04 +03:00
Seth Hillbrand
75c6b0ab28
Added IPC2581 support
...
IPC2581 is a modern production file exchange system. It provides
single-file data output for an entire board including BOM and netlist
information.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/1954
2023-11-26 15:30:58 -08:00
Jon Evans
c3deafa597
Fix deprecation warnings in latest wxWidgets
2023-11-26 16:43:59 -05:00
Ian McInerney
1345735532
Add ability to clear hotkey in the set hotkey dialog
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15147
2023-11-26 00:03:09 +00:00
Jeff Young
6732f35a52
Fix bad positioning for padded bitmap badges.
...
Also fixes an off-by-one error (because generally speaking it's
better to avoid writing off the end of an array).
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15784
2023-11-20 18:14:54 +00:00
Jeff Young
341124d831
Array bounds checking for KICAD-19D.
2023-11-18 12:29:56 +00:00
Jeff Young
9bb6b11c1d
Separate fields from text items in FPEdit's Defaults panel.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15135
2023-11-15 10:56:14 +00:00
Jeff Young
229bcc7308
Cleanup.
2023-11-13 17:18:15 +00:00
Jeff Young
7e46e85c7d
Update copyrights.
2023-11-11 15:29:34 +00:00
Jeff Young
9ef05fb762
Don't store document values in global PROPERTY_MANAGER.
...
At best it leads to the wrong units being used if they're different
between (for instance) PCB Editor and Footprint Editor. (And this
will only get worse if we ever to to a single binary.)
At worst it causes crashes when accessing freed ORIGIN_TRANSFORMS.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16062
2023-11-10 18:37:29 +00:00
Alex Shvartzkop
7589de6120
Optimize footprint/symbol library hover previews.
2023-11-09 19:02:10 +03:00
Jeff Young
77e408a93d
De-bounce search pane selection events.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15605
2023-11-09 14:43:39 +00:00
Jeff Young
cc721c4907
Improve encapsulation of group internals.
...
(It's still leaking into BOARD_COMMIT and some other places, but at
least it no longer leaks into all the edit tools.)
Also fixes some bugs when moving/copying/pasting multiple selections
containing length-tuning patterns.
2023-11-09 14:05:35 +00:00
Jeff Young
78e00ade7a
Clearer naming.
2023-11-09 14:05:35 +00:00
Jeff Young
6d43ef5678
Don't specify sizes when we don't need to.
...
However, in some places we *do* have to because otherwise wxWidgets
will pick a minimum size for us (and it's rather large).
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16039
2023-11-07 14:53:41 +00:00
Jeff Young
50ff5e616f
Don't delete text when cancelling changes.
...
Also changes margins of compile button so it correctly lines up at
the top of the error window.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16002
2023-11-02 18:37:55 +00:00
jean-pierre charras
0f2beed54a
LIB_TREE: use GetAssociatedDocument() to display the doc from a wxHtmlLinkEvent
...
One cannot always use the string given in the wxHtmlLinkEvent without expanding
Env Vars.
Fixes #15984
https://gitlab.com/kicad/code/kicad/-/issues/15984
2023-10-30 11:27:08 +01:00
Jeff Young
6c6a7cf862
Provide a callback for supplying file filters just-in-time.
...
This allows us to make them dependent on the current plugin type in
the fp lib table.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13959
2023-10-28 11:18:17 +01:00
Ian McInerney
171458a27b
Introduce action friendly names
...
Friendly names can be used to display action information that is clearer
in non-hierarchical contexts (e.g. not in menus).
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8075
2023-10-27 23:58:29 +01:00
Jeff Young
3651cad7fd
Don't fire events when going back to original text in onSetFocus().
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15851
2023-10-27 14:58:30 +01:00
jean-pierre charras
06074d9192
Simulator, plot panel: Honor dragging in Y direction.
...
Fixes #15914
https://gitlab.com/kicad/code/kicad/-/issues/15914
2023-10-27 08:13:44 +02:00
Jeff Young
a3fc07b6a0
Fix build.
2023-10-25 18:41:45 +01:00
Jeff Young
881cf9dfcf
Minor improvements to clarity and conformity for Display Options.
2023-10-25 15:01:36 +01:00
Jon Evans
4c1da16d6f
Don't attempt to take the size of invalid bitmap
2023-10-23 13:02:38 -04:00
Jeff Young
435e3fab8d
Support text variables in STEP export filename.
...
Also fixes some other file browser titles to match Kicad's overall style.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15927
2023-10-23 18:01:47 +01:00
Jon Evans
96d203477e
Fix launcher buttons on macOS
2023-10-23 08:56:02 -04:00
Jeff Young
ab89038fa8
More protection for drawing dashed lines on MSW.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15888
2023-10-23 12:58:19 +01:00
Jon Evans
9d455ca399
Fix rendering of ACTION_TOOLBAR_PALETTE buttons at non-normal sizes
2023-10-22 15:40:17 -04:00
Jon Evans
47e25d617e
ADDED: Icon scaling for toolbars only
...
Unlike the old "icon scale" (that actually scaled all bitmaps)
this one actually changes the toolbar size while making use
of the new bitmap bundle functionality
Add more resolutions for all tool icon bitmaps
Wouldn't want Mark's eyes to bleed
2023-10-22 14:02:06 -04:00
Jon Evans
06a4bdbf4c
Upgrade BITMAP_TOGGLE and GRID_BITMAP_TOGGLE to wxBitmapBundle
2023-10-22 14:02:06 -04:00
Jon Evans
50fe585827
REMOVED: manual icon scale preference
...
This is now handled properly by wxWidgets on all platforms
See https://gitlab.com/kicad/code/kicad/-/issues/14119
2023-10-22 14:02:06 -04:00
Jon Evans
eb5b3db063
Add bitmap bundle support to BITMAP_SCALE
...
Change a bunch of buttons and toolbars to use it
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14119
2023-10-22 14:02:06 -04:00