Commit Graph

41 Commits

Author SHA1 Message Date
Jeff Young 4d37d50f57 Handle visibility flag where it is supported.
(This got lost when merging separate routines into
shared code.)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/23078
2026-02-16 17:34:40 +00:00
Jeff Young 5a50053293 Suppress notebook change events after OK. 2026-02-16 16:52:07 +00:00
Mark Roszko f95a58c5dd KIWAY_EXPRESS -> KIWAY_MAIL_EVENT 2026-02-02 20:33:08 -05:00
Seth Hillbrand 8eb3f3c618 Enable GVFS/network filesystem visibility in file dialogs
On GTK, wxFileDialog defaults to local_only mode which hides GVFS-mounted
filesystems like Google Drive, SMB shares, and external drives mounted
through GVFS. This adds a platform-specific function that disables
local_only mode to show these network/virtual filesystems.

Apply AllowNetworkFileSystems to all file dialogs across KiCad
to ensure directories on network filesystems are visible when
browsing for files.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14372
2026-01-29 12:43:20 -08:00
Jeff Young f4e025596b Passing a string to LIBRARY_TABLE's c'tor doesn't do what you think it does.
Also fixes nested tables being deleted out from under
the dialog.

Also fixes a bug where PANEL_DESIGN_BLOCK_LIB_TABLE
had fallen behind the the other two.
2026-01-20 13:18:46 +00:00
Jeff Young 1c7e95d8f0 Select new tab when opening table.
Also, don't open same table more than once.
2026-01-19 21:41:35 +00:00
Alex Shvartzkop df7306b7a7 Filters for library tables without extensions work on GTK too.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22786
2026-01-19 23:47:54 +03:00
Alex Shvartzkop d4528d2082 Filter library tables by filename in file dialogs on MSW.
Windows allows filtering by filename without extension in file dialogs, so do that.
2026-01-19 23:01:05 +03:00
Jeff Young 75d523e3e9 Include "Table" in list of symbol library formats.
Make sure "Table" rows get a file picker instead of a
directory picker (return *.* from getFileTypes()).

Don't assert when we can't find a plugin for a
nested table.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22731
2026-01-18 13:57:38 +00:00
jean-pierre charras f1f80711d0 Fix Coverity and Compil warnings (unused /shadowed / uninitialized vars)
No actual code change.
2026-01-02 17:15:56 +01:00
Jeff Young 29eebadbfd Reprocess library tables when they change. 2025-12-08 13:01:22 +00:00
Mark Roszko 447c5e0321 Handle no kicad library type specified
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/22380
2025-11-22 21:54:03 -05:00
Mark Roszko b7b4f8b6af Revert "Attempt to get WX_AUI_TAB_ART working on MSW."
This reverts commit cb4f7076f3
2025-11-09 00:26:33 +00:00
Jeff Young cb4f7076f3 Attempt to get WX_AUI_TAB_ART working on MSW. 2025-11-08 23:16:07 +00:00
Jeff Young 97b4d9f886 Don't show close boxes on system tabs.
While the end result was simple enough, it took
a 10 round brawl with wxWidgets to get there.
2025-11-08 19:37:11 +00:00
Jeff Young 4287321f9f Nested library table editing. 2025-11-08 17:10:26 +00:00
Jeff Young df8ecb877a Dynamic allocation of library table notebook pages and grids. 2025-11-07 20:33:03 +00:00
Jeff Young 1e3e21dc48 More code sharing for library tables. 2025-11-07 18:26:43 +00:00
Jeff Young bd831fc959 Auto-recognition of nested library tables. 2025-11-06 17:33:26 +00:00
Jeff Young 3a17d64555 Bug fixes for nested library tables. 2025-11-06 14:56:18 +00:00
Jeff Young c1610f2983 Push a bunch of symbol library editing code down into shared classes. 2025-11-06 14:10:45 +00:00
Jon Evans c7c23c2180 Remove legacy library table code 2025-11-04 06:54:53 -05:00
Jeff Young 58d80dfebb Library table grid height bump now done in WX_GRID. 2025-11-01 19:48:43 +00:00
Jon Evans c69cf6487e Push library table saving to LIBRARY_TABLE 2025-10-21 21:48:46 -04:00
jean-pierre charras 4f31381273 PANEL_DESIGN_BLOCK_LIB_TABL: fix typo, round 2.
the PANEL_DESIGN_BLOCK_LIB_TABL opened the local sym-lib-table instead of the
local design-block-lib-table
2025-10-20 16:57:23 +02:00
Jon Evans d85fb038ba Port design blocks to new library table system
Generalize library adapter code to be shared
2025-10-15 22:18:54 -04:00
Jon Evans 90397a3310 Port design block libraries dialog to new system 2025-10-15 22:18:54 -04:00
Jon Evans edad0c2af1 Move library table editing dialog to new system 2025-10-15 22:18:50 -04:00
Jon Evans 6baf5e798e Reduce use of pointers for properties maps 2025-10-15 22:18:50 -04:00
Jeff Young 32afe5285e Finish off WX_GRID code sharing exercise. 2025-07-28 19:37:52 +01:00
Jeff Young 275ff1cb4e Clear seleciton before removing rows. (KICAD-BER). 2025-07-05 12:02:36 -06:00
Jeff Young 1faa9800dc Row height consistency.
Rats.  Also got tangled up in another commit which
removes some dead code.
2025-06-19 14:29:37 +01:00
Jeff Young 18e107529a Don't force callers of GetAppSettings to implement exception processing. 2025-06-14 20:25:59 +01:00
Mike Williams e11cf94a3e design blocks: add PCB design blocks behind advanced config
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/2508
2025-03-20 15:13:52 -04:00
Wayne Stambaugh 5c8f4697ca Common folder housekeeping part 1. 2025-01-12 12:06:45 -05:00
Jeff Young beda29856d Hide DesignBlock Migrate Libraries button (for now).
There aren't (yet) any legacy libraries to migrate.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19360
2025-01-03 21:28:19 +00:00
Seth Hillbrand 0b2d4d4879 Revise Copyright statement to align with TLF
Recommendation is to avoid using the year nomenclature as this
information is already encoded in the git repo.  Avoids needing to
repeatly update.

Also updates AUTHORS.txt from current repo with contributor names
2025-01-01 14:12:04 -08:00
Jeff Young 753d385473 Reduce dependency on dynamic_cast.
Also switches to checking __clang__ instead of __WXMAC__.
2024-12-08 21:46:54 +00:00
Lucas Dumont bb9a329ee4 Avoid wxWidgets alert when removing bottom to top
Fix assert ./src/generic/grid.cpp(5216): assert "idx >= 0 && idx < m_numRows" failed in GetRowPos(): invalid row index happening when selecting >= 3 row starting from the bottom last row. Even if not all row are selected.

This happen because wxGrid::DeleteRows will try to update the selected row between each call.
2024-10-24 23:11:26 +00:00
Mike Williams 2eec2489ea design blocks: move globals behind accessor functions
Prepare for lazy loading
2024-09-10 15:50:03 -04:00
Mike Williams b2dda11fae design blocks: move table manager to common dialogs
Also add to schematic editor preferences.
2024-09-10 15:50:03 -04:00