Commit Graph

968 Commits

Author SHA1 Message Date
Jeff Young c4b6801f3a Improve some strings and measurements.
Fixes https://gitlab.com/kicad/code/kicad/issues/10482
2022-03-03 22:40:18 +00:00
Jeff Young 8d28fe962f Don't rename archives when doing a project save-as.
Fixes https://gitlab.com/kicad/code/kicad/issues/10184
2022-02-27 23:15:07 +00:00
jean-pierre charras 898d0e42cc Kicad manager: fix a typo 2022-02-21 17:28:29 +01:00
jean-pierre charras 0cc47d98f5 Kicad manager: show *.zip files in project tree. 2022-02-21 12:54:43 +01:00
Marek Roszko d9c04da407 Sprinkle in some make_unique 2022-02-05 21:26:36 -05:00
Wayne Stambaugh 00ba580915 Don't create new project on save as when project file already exists.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10625

(cherry picked from commit c875af48e7)
2022-02-05 12:00:54 -05:00
jean-pierre charras 1440c0a2d2 minor fix 2022-02-01 18:07:14 +01:00
Seth Hillbrand 098e8f7d9b Revert "cmake: adding KICAD_MACOSX_APP_BUNDLE option"
This reverts commit ea9f960cc1.

Reverted for updates as this currently breaks kicad-mac-builder
2022-01-31 15:57:56 -08:00
Davide Gerhard ea9f960cc1 cmake: adding KICAD_MACOSX_APP_BUNDLE option
ADDED: with cmake KICAD_MACOSX_APP_BUNDLE option the user can disable
the macOS app bundle creation when compiling on macOS. This permit to
use/install KiCad like any other *nix platform (/usr/bin, /usr/share,
ecc.). By default, cmake build the app bundle.
2022-01-28 15:49:37 -08:00
Marek Roszko 8030bf1cc4 Implement use of the kicad nightly icon where needed 2022-01-23 09:21:07 -05:00
Seth Hillbrand fd9d923bb7 Do not call SafeYield on close
wxSafeYield() is not "safe".  Pending actions may include deletion of
the currently active class.  This will cause crashes when exiting.  If
needed for specific behaviors, we should use wxSafeYieldFor( flag ) with
the appropriate events specified rather than a general yield which can
cause more problems

(cherry picked from commit 9864337914)
2022-01-06 12:36:51 -08:00
qu1ck 211820a689 Remove KICAD_PCM cmake option 2022-01-03 04:16:42 +00:00
qu1ck 721403eb0e PCM: sort installed packages by date 2022-01-03 04:14:17 +00:00
Simon Richter d25fe17b28 Bump minimum required CMake version to 3.11
Signed-off-by: Marek Roszko <mark.roszko@gmail.com>
2022-01-01 21:35:08 -05:00
Marek Roszko 3f711b8958 Add win32 VERSION_INFO resource blocks for the DLLs 2021-12-28 23:54:27 -05:00
Wayne Stambaugh fcc497509a Don't treat project Save As path as a path and file name.
The single string ctor of wxFileName treats the string as a path and file
name.  If there is a dot in the last path name, it assumes that the last
path is actually a file name and extension.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/10116
2021-12-26 17:02:54 -05:00
Jeff Young c3552a940a Make sure standard OK/Cancel buttons respond to current language.
Fixes https://gitlab.com/kicad/code/kicad/issues/9635
2021-12-24 18:13:11 +00:00
Jeff Young 84a9732497 PCM strings. 2021-12-24 18:13:06 +00:00
Jeff Young d28714167c All the preferences, all the time.
Fixes https://gitlab.com/kicad/code/kicad/issues/7877

Fixes https://gitlab.com/kicad/code/kicad/issues/5153
2021-12-24 13:08:44 +00:00
jean-pierre charras 40752afafd DIALOG_TEMPLATE_SELECTOR: Force display refresh after selecting a path
For some reason the panel showing the templates did not show the new selection
Fixes #10106
https://gitlab.com/kicad/code/kicad/issues/10106
2021-12-24 11:40:20 +01:00
Seth Hillbrand a4db439cf8 Move quitting flag to manager quit
The flag is to protect against the frame going out of scope with the
references intact.  This shouldn't be in CloseProject because we close
the project without removing the frame.  Instead, placing it in OnExit
gets set correctly when closing the whole project manager

Fixes https://gitlab.com/kicad/code/kicad/issues/10018
2021-12-17 13:10:27 +00:00
jean-pierre charras 0f728e4d67 Fix some issues in PCM code.
Try to fix 9955, due to a problem with WX_PROGRESS_REPORTER (issue with its parent)
Fixes #9955
https://gitlab.com/kicad/code/kicad/issues/9955
2021-12-12 18:25:31 +01:00
jean-pierre charras 3a04a1ee64 Fix incorrect use of NULL (aka nullptr on wxWidgets) instead of 0 2021-12-12 09:09:50 +01:00
Jeff Young 329f00acdc Fix logic error in Save As recursion guard.
Fixes https://gitlab.com/kicad/code/kicad/issues/9916
2021-12-09 17:04:40 +00:00
jean-pierre charras 0ba11e9856 Kicad manager: minor cosmetic enhancement: show a busy cursor when launching an editor 2021-12-06 20:03:31 +01:00
Ian McInerney ab797d191f Disregard the project manager window size on migration
An old size for the window could cut off the PCM button if it were
migrated, so to ensure the button is visible, just always use a fresh
window size on migration.

Fixes https://gitlab.com/kicad/code/kicad/issues/9649
2021-12-03 01:43:53 +00:00
Seth Hillbrand 84cfa052a1 Unify KiCad Manager title bar versions 2021-11-29 16:19:37 -08:00
Jon Evans fca3367873 PCM: Disable actions while task manager is open
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9788
2021-11-27 08:46:19 -05:00
jean-pierre charras d03a13b8d8 Kicad and PCM: fix some (minor) issues:
- do not use KICAD_MANAGER_CONTROL::Execute() to run PCM: it is not an external app.
- add a workaround to avoid keeping incorrect focus on buttons in PANEL_KICAD_LAUNCHER.
Fixes #9780
https://gitlab.com/kicad/code/kicad/issues/9780
2021-11-26 10:52:52 +01:00
qu1ck 78aa76d0e6 PCM: reuse download prrogress dialog 2021-11-25 21:23:23 +00:00
Jon Evans 250de83bf2 Prevent divide-by-zero in DIALOG_PCM_PROGRESS 2021-11-25 16:23:16 -05:00
Jeff Young ba6ae4fa9b Kicad has many plugins. This one is for the pcb. 2021-11-25 12:56:46 +00:00
Wayne Stambaugh 802cfc1a7d Don't allow project files to be renamed or deleted in project tree pane.
This prevents any potential breakage of a project due to the file changes.
It is overly zealous because the project manager doesn't actually have any
knowledge of which files belong to the project.

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/9654
2021-11-19 11:39:24 -05:00
Jeff Young c01649fc6e Make it easier to open legacy files. 2021-11-19 13:36:14 +00:00
jean-pierre charras cc339e56a2 Kicad manager: fix a minor cosmetic issue when clicking on a launcher button.
- On GTK the next button was gaining the focus.
- On MSW the button disappears a bit of time.
Fixes #9676
https://gitlab.com/kicad/code/kicad/issues/9676
2021-11-18 13:44:23 +01:00
jean-pierre charras cf334b1ebb PCM: fix a minor cosmetic issue when resizing the dialog.
Fixes #9647
https://gitlab.com/kicad/code/kicad/issues/9647
2021-11-18 10:57:52 +01:00
Seth Hillbrand a699cccaaf Fix two string issues
Comp -> Compatible
Update string reference to changed string
2021-11-16 10:38:56 -08:00
Seth Hillbrand f950d96324 Prevent dereferencing frame on exit
Processing a menu event for quitting results in the frame being
destroyed.  This crashes the program when it tries to access the newly
freed frame to check for autosave data.  We bind the closing flag into
the base program which will be the last item freed on exit to ensure we
can correctly check for data loss

Fixes https://gitlab.com/kicad/code/kicad/issues/8638
2021-11-15 10:07:28 -08:00
qu1ck 6264dd40ea PCM: don't ignore schema validation errors 2021-11-15 13:46:05 +00:00
qu1ck 2340f82091 Fix empty space in pcm packages view 2021-11-15 10:44:17 +00:00
Jeff Young 47cb7f53fd Stope event propagation when closing project.
Fixes https://gitlab.com/kicad/code/kicad/issues/8638
2021-11-15 00:13:09 +00:00
qu1ck 338d13c1b5 PCM models -> 3dmodels 2021-11-14 15:08:28 -08:00
Jeff Young 5da876af26 Another attempt to fix the inactive scrollbar on GTK.
Fixes https://gitlab.com/kicad/code/kicad/issues/9559
2021-11-14 20:47:25 +00:00
Jeff Young 9bb5310fa5 Implement distructive-button-spacing as per Mac UI guidelines. 2021-11-14 20:33:32 +00:00
Jeff Young 66d9e7073f More discrete borders for Kicad mgr, PCM and appearances panels.
Fixes https://gitlab.com/kicad/code/kicad/issues/9616
2021-11-14 15:01:44 +00:00
Jeff Young 36fd62ccdc Another round of beautification changes for PCM.
Fixes https://gitlab.com/kicad/code/kicad/issues/9616
2021-11-14 13:11:19 +00:00
qu1ck bef43f975d Increase pcm package id allowed length to 100 2021-11-13 13:34:15 -08:00
Jeff Young e3ddc412d2 Better selection colour for PCM packages. 2021-11-13 19:45:10 +00:00
Mikolaj Wielgus 0b59246279 PCM: Select the preferred version first in version grid 2021-11-13 18:02:16 +00:00
Mikolaj Wielgus 0e4e9206ff PCM: Make version grid only selectable by rows, not individual cells
And select the first row from the top by default.
2021-11-13 18:02:16 +00:00