Alex Shvartzkop
cec378b70d
HiDPI: use logical icon size when changing indicator state.
2024-06-30 00:18:48 +03:00
jean-pierre charras
8737c6eb3c
footprint selector in symbol properties: fix footprint selection issue.
...
When using the button to select a footprint using the footprint chooser
dialog, the new footprint was not always taken in account (perhaps MSW specific).
It was due to the code to update the footprint name was between Disable() and
Enable, thus creating a loss of some events in the complex grid edition stuff.
This is now replaced by a lock flag to protect this code to be executed when
it should not.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18270
2024-06-27 19:56:57 +02:00
Alex Shvartzkop
ece46223c9
Fix shadowed/conflicting enum values.
2024-06-21 16:16:29 +03:00
Seth Hillbrand
5c699e3c1e
Handle not found fonts reliably
...
Check if the font isn't found when selecting (we seem to always have a
selection even if we fail on GTK) and properly set the index of the
final <not found> font name
2024-06-16 17:20:58 -07:00
jean-pierre charras
16e708a0e7
Fix minor compil and Coverity warnings.
2024-06-15 11:20:21 +02:00
Seth Hillbrand
9f4dfe77cb
Freeze the adapter to avoid invalid deref
...
GTK tries to get the parent item of selected elements when unselecting.
If we don't freeze, we run the risk of crashing if a selected item is
removed before being unselected. This causes a wx warning but a) this
is suppressed in release and b) warning message is better than crash.
See next commit for fix to avoid common case of the error
2024-06-14 16:49:56 -07:00
Alex Shvartzkop
cf7ad330e9
Fix some platform ifdef checks.
2024-06-01 06:49:11 +03: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
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
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
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
6170151cbc
Improve toolbar bitmap redraw performance on Windows.
...
Especially noticeable on high dpi.
2024-05-25 21:47:51 +03: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
ecb7cd6b84
Fix color-swatch sizing on MacOS.
...
Also fixes BITMAP_BUTTON sizing.
2024-05-24 18:27:15 +01: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
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
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
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
d9ff3c4485
Maintain selection when sorting.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17983
2024-05-11 16:20:34 +01: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
ae610bbe85
ADDED: Reset option for Library tables
...
This re-shows the option to reset the global library table to its
default, empty or specified state
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2309
2024-05-02 21:31:59 +00:00
Alex Shvartzkop
6fdeca7c56
Fix build on Linux.
2024-04-28 02:06:12 +03:00
Alex Shvartzkop
16e3692e71
Build time optimizations.
2024-04-27 23:49:13 +03:00
Wayne Stambaugh
8a1347d2c8
Property grid navigation improvements.
...
* Do not handle tab key event when committing property changes so the
property grid tab navigation works correctly.
* Do not call commit property changes on tab key when no changes are
pending.
* Skip event handling in the base object value change and changing event
handlers in case they do not get overloaded in derived objects.
* Do not force focus to canvas on property change so arrow and tab key
grid navigation work properly. Forcing the user to click the property
grid control to edit a single property doesn't make sense.
* Pass properties panel show event up the event stack.
* Do not set focus to canvas in tool dispatcher if it already has the
focus.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16957
2024-04-24 07:25:19 -04:00
Seth Hillbrand
3435c6ebee
Prevent double-entry into footprint load
...
Avoids double-clicking on the footprint library symbol crashing due to
overwriting the global footprint table by multiple instances
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17040
2024-04-19 17:21:18 -07:00
aris-kimi
66bb49e2da
Silence some GCC warnings
2024-04-16 11:11:50 +00:00
Alex Shvartzkop
ab531a33d9
Tweak GRID_CELL_STC_EDITOR offset on GTK.
2024-04-14 01:19:55 +03:00
Alex Shvartzkop
76b7cdd128
Improve grid cell editors appearance.
2024-04-13 23:26:01 +03:00
Marek Roszko
d7685a40ee
More lambda updates to explicit capture
2024-04-13 15:09:34 -04:00
Alex Shvartzkop
1516aaf163
Improve custom grid cell editors' margins on MSW.
2024-04-13 03:54:04 +03:00
Alex Shvartzkop
aa51cc5167
Remove macOS size tweak in custom grid cell editors.
...
Since the text field now has the no-border flag, it shouldn't be needed.
2024-04-13 03:54:04 +03:00
Alex Shvartzkop
5d22c1adee
Make grid cell editors with extra button consistent with normal text cell editors.
2024-04-11 00:47:27 +03:00
Jeff Young
5abc7145da
Fold LIB_ITEM into SCH_ITEM.
2024-04-08 10:24:50 +01:00
Ian McInerney
9e597ea754
Add the option to use alternating row colors in tables/grids
...
ADDED: Option to use alternating row colors in tables/grids
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16739
2024-04-01 21:59:37 +01:00
Jeff Young
7218d501d4
Better locality-of-reference for footprint chooser filters.
2024-03-23 12:48:52 +00:00
Jon Evans
e7b6573717
wxWidgets 3.3 compatibility: properties API
2024-03-20 22:02:40 -04:00