Jeff Young
b8819b4636
Another reduction in asserts.
1 year ago
Jeff Young
02bc093b55
Use consistent sorting for footprint libs.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17731
1 year ago
Alex Shvartzkop
16e3692e71
Build time optimizations.
1 year ago
Jeff Young
bf2b3b0b0f
Deconflict some LIB_TREE_ITEM APIs so they can remain non-const.
(The non-const is required by FOOTPRINT_INFO, which must load
footrpints to get some of the data.)
2 years ago
Marek Roszko
ce672f926c
Unbind some cvpcb frame events in destructor
2 years ago
Marek Roszko
6b12a12b3e
On second thought rename PROJECT_PCBNEW to PROJECT_PCB
2 years ago
Marek Roszko
7e8b18035f
Eliminate the conditional pcbnew/cvpcb definition of PROJECT
2 years ago
Alex Shvartzkop
ff49d5ada9
Fix ambiguous overloads on wx 3.3
2 years ago
Marek Roszko
11de95778b
Unwrap the FROM_UTF8 macro in favor of direct function
The extern just gets annoying to try to export the func later. We also yeet TO_UTF8 to string_utils.h for parity.
2 years ago
Ian McInerney
2fb6f19a84
Separate immediate and delayed action dispatch
Using a boolean argument just leads to a lot of trailing booleans in the
function calls and is not user friendly. Instead, introduce PostAction()
to send an action that runs after the coroutine (equivalent to passing
false or the default argument), and leave RunAction as the immediate
execution function.
2 years ago
Jeff Young
cf4f0723f8
Select first unassigned symbol when running CvPCB.
Also cleans up some dead code, and makes more use of sharing.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9938
2 years ago
Marek Roszko
d2c0f5fc2a
More wxSing
3 years ago
Wayne Stambaugh
f28ea5e784
Remove standard dialog button static line separators.
For the sake of consistency across all dialogs and window that behave
like dialogs, remove the static line that separates the main part of
the dialog from the standard buttons. This only applies to windows
that have the standard button on the bottom of the frame.
This covers the 3D viewer, CvPcb, common, GerbView and KiCad dialogs.
3 years ago
Brian Fiete
f88064ba55
Cursor backtrack fix for cvpcb filter string
On Windows the insertion point (cursor) can change between onTextFilterChangedTimer entry and exit, which caused the insertion point to be restored to a stale value
3 years ago
Scott Hanson
ed42f95794
CVPCB: Add warning if footprint is missing
3 years ago
Scott Hanson
5b9fcc0ba0
Cvpcb: Reload footprint libraries in CVPCB
CHANGED: Reload footprint libraries in CVPCB when footprint library table(fp-lib-table) is updated
3 years ago
Jeff Young
1fcd7d6285
Move cvpcb filter to a timer.
Fixes https://gitlab.com/kicad/code/kicad/issues/12445
3 years ago
Jeff Young
64a6fc0fd4
Push UNITS_PROVIDER down into a low-level mixin.
This allows us to also construct cheap UNIT_PROVIDERs for specific
tasks when necessary.
3 years ago
Jeff Young
1e1aedbe30
Fix uninitialized variable.
3 years ago
Jeff Young
d2712bac37
Try and reduce opportunity for lost keystrokes.
Fixes https://gitlab.com/kicad/code/kicad/issues/12445
3 years ago
Jeff Young
1be8adebf5
Restore fix for #10029 .
Fixes https://gitlab.com/kicad/code/kicad/issues/12445
3 years ago
jean-pierre charras
66febafb9c
Fix cross-probing from Cvpcb to Eeschema, broken by commit 3a76d426
Fixes #12293
https://gitlab.com/kicad/code/kicad/issues/12293
3 years ago
Alex
3a76d42630
Cross-probing/selection for multiple items (PCB -> SCH)
Fixes https://gitlab.com/kicad/code/kicad/issues/10469
3 years ago
Jeff Young
66d6a5a9dd
Performance improvements for CvPCB.
Fixes https://gitlab.com/kicad/code/kicad/issues/12063
3 years ago
Jeff Young
e9478191e0
Cleanup.
3 years ago
Jeff Young
e10158ff10
ADDED show pin names on footprint pads when assigning to symbol.
Fixes https://gitlab.com/kicad/code/kicad/issues/4576
3 years ago
Jeff Young
fa679d3601
Pinned libs can also be found in program settings.
3 years ago
Jeff Young
a9e18c68a7
Add pinned library support to CvPCB.
3 years ago
jean-pierre charras
ecc464e846
Cvpcb: fix crash on opening Cvpcb, due to a null pointer use.
m_tcFilterString was used before it is created.
3 years ago
Jeff Young
8d1523b22c
Save cvpcb filter text.
3 years ago
jean-pierre charras
be35b0783a
Cvpcb: fix SaveAssociations. Save association to disk only from the Apply button. Previously, the association was saved to disk also on OK button click.
4 years ago
Seth Hillbrand
3ff87858de
Prevent cvpcb from losing text focus on filter
Refresh event changes focus (on GTK). We fix this by storing the
existing insertion point in the text box, refocusing and restoring the
text position
Fixes https://gitlab.com/kicad/code/kicad/issues/10029
(cherry picked from commit 05d3dc533b
)
4 years ago
Jeff Young
1b2a278de9
Don't put "exclude from board" symbols in CvPCB netlist.
Fixes https://gitlab.com/kicad/code/kicad/issues/9939
4 years ago
Jeff Young
7a879c6a2d
Naming conventions.
4 years ago
Jeff Young
956ec5b17c
Work around the train-wreck that is wxString::Format.
Fixes https://gitlab.com/kicad/code/kicad/issues/9247
4 years ago
Jeff Young
b84d1456d5
KIFACE_I -> KIFACE_BASE.
4 years ago
Jeff Young
9c78e4cf54
Mac needs different font size handling than MSW & GTK.
Mac already uses diverse font sizes (for instance, smaller fonts for
radio button groups), and the anti-aliasing is a lot better. The
other platforms need a more limited range of sizes.
Fixes https://gitlab.com/kicad/code/kicad/issues/8608
4 years ago
Jeff Young
fbee62fc15
Tie font size scaling to when automatic icon scaling fails.
It appears that SetSymbolicSize() and ConvertDialogToPixes() fail
under the same circumstances.
4 years ago
Jeff Young
7a822b55aa
Another round of changes to attempt to fix the GTK font size issue.
Fixes https://gitlab.com/kicad/code/kicad/issues/8608
4 years ago
Jeff Young
41619ebbe2
Decouple PROGRESS_REPORTER interface from implementations.
4 years ago
jean-pierre charras
b1c67d9ad4
Cvpcb: fix possible crash when pressing the ESC key during some calculations, round 2.
It happened when firing a Close Event during calculations modifying widgets
inside the main frame.
The close event is now vetoed during these critical calculations.
4 years ago
Wayne Stambaugh
cb72da294a
More NULL expunging.
4 years ago
Jeff Young
0c2ac9a711
Move GUI font code to common.
This also allows the Mac fixes for font facenames to be more
compartmentalized.
Fixes https://gitlab.com/kicad/code/kicad/issues/8657
4 years ago
Jeff Young
1db33c7b3a
More safety (and better impl) for not sharing FP table/info stuff.
Fixes https://gitlab.com/kicad/code/kicad/issues/8657
4 years ago
Jeff Young
4aa8318dc2
More error message regularization.
4 years ago
Jeff Young
15a094c647
Give CVPCB its own footprint info list.
There's a smoking gun on Mac Big Sur that suggests that sharing the
table between binaries may be corrupting the heap.
Fixes https://gitlab.com/kicad/code/kicad/issues/8657
4 years ago
Marek Roszko
7faee5eda5
Stop salt the eart with wxhtml.h
4 years ago
jean-pierre charras
f6f2284851
Fix missing includes on Linux after commit 0427bda7
5 years ago
jean-pierre charras
0427bda768
Remove useless wx/wx.h include, that create sometimes compil warnings on msys.
wx/wx.h includes all wxWidgets .h files, and sometimes creates collision
names in #define between kicad and windows headers
Moreover, blindly including a lot of useless files is compil time consuming
5 years ago
Jeff Young
94470bfa15
Minor cleanup.
5 years ago