Commit Graph

121 Commits

Author SHA1 Message Date
Jeff Young 3c4286c98b Force re-word-wrapping of PCM package descriptions on Mac.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13328

(cherry picked from commit c7730eae3f)
2023-06-10 10:57:14 +01:00
qu1ck 90eb5e9c31 PCM: auto reload global libs after dialog is run
This adds Reset() method to KIFACE to reload global libs stored in
global static vars.
Also refactors some lib reload code in various frames to have
common MAIL_RELOAD_LIB handler.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/12500

(cherry picked from commit 2975f53647)
2023-02-28 16:48:28 -05:00
Marek Roszko 85544d109c Don't destroy the DIALOG_PCM_PROGRESS until after the threads actually terminated
(cherry picked from commit 47cf26f047)
2023-02-26 22:47:14 +00:00
Alex 59b68154e1 Reduce some flickering in PCM.
(cherry picked from commit b592017495)
2023-02-26 08:34:49 +00:00
Marek Roszko 14381ac68a Catch parsing exceptions of the local repository.json
Fixes KICAD-B9


(cherry picked from commit 6029fae30b)
2023-02-21 12:15:09 +00:00
Jon Evans d25b96d72d Squash warnings 2023-01-25 18:01:16 -05:00
qu1ck 7ec2989d30 PCM: progress dialog stay should on top, disable other windows 2023-01-25 22:44:35 +00:00
Jon Evans bd977fffa8 PCM: Make the progress dialog non-modal on other platforms 2023-01-25 13:59:32 -05:00
Jon Evans 9954c18244 PCM: Make the progress dialog modal
I don't know if this was intended to operate modeless, but it doesn't work

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13474
2023-01-25 12:32:13 -05:00
qu1ck d9e1763484 PCM: keep pinned state on update 2023-01-24 00:01:51 +00:00
Seth Hillbrand a9ed47f06c Update KICAD6->KICAD7 2023-01-23 22:21:12 +00:00
Marek Roszko ac94995f70 Some more wxS 2023-01-16 19:07:50 -05:00
Jeff Young 30c9deb9d5 Flat(er) look for paged dialogs. 2023-01-11 01:11:25 +00:00
qu1ck 50582232ea PCM: fix url detection in pkg description 2023-01-04 21:17:38 +00:00
Seth Hillbrand 98d55ce82f Avoid rebuilding with each commit
We shouldn't include the kicad_build_info.h outside of the wrapper
build_info.h.  Also adds an error directive to prevent re-introduction
of define dependencies
2023-01-04 11:32:15 -08:00
Jeff Young 5984a6dddd Fixup a few more collapsing textEditCtrls on Mac. 2022-12-14 15:13:29 +00:00
Jeff Young c0872364d4 Get rid of bloated bitmap buttons on wxWidgets 3.2. 2022-12-13 20:48:02 +00:00
Jon Evans 527da0d18c Reload color settings when changed by PCM 2022-11-24 16:20:52 -05:00
Alex 93133ecd78 pcm: Fix an unnecessary horizontal scrollbar in package info on MSW. 2022-10-23 22:07:22 +03:00
Jeff Young 3fbc6ac29a Minor dialog layout fixes. 2022-10-23 17:56:44 +01:00
Jeff Young 5777254cfa Formatting and "auto" reduction. 2022-10-23 17:56:44 +01:00
qu1ck d52d1cb489 Better message on PCM repository error
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9587
2022-10-17 16:44:01 +00:00
Ian McInerney 40ff7cb9bd Fix some UI element spacing in settings panels 2022-09-25 15:41:39 +01:00
Ian McInerney a7242f423c pcm: Copy schema to build directory in out-of-tree builds
When running from the build directory, the schema must be present in the
build directory. This wasn't working on out-of-tree builds though, since
it was never copied there.
2022-09-25 00:48:38 +01:00
Ian McInerney d8272b0830 pcm: Ensure missing package version properly handled at runtime
wxASSERT is removed in release mode (which most users run), so this will
not prevent future code from possibly using an invalid iterator if the
package version can't actually be found.
2022-09-25 00:48:38 +01:00
qu1ck 6ebb3baa3b PCM: autoload libs from installed packages to global lib tables
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/9713
2022-09-23 16:16:13 +00:00
Jeff Young f179754118 Implement add-new-on-return for some of our grids.
Fixes https://gitlab.com/kicad/code/kicad/issues/12335
2022-09-09 13:41:13 +01:00
Jeff Young c30a557810 ADDED netclass assignment from PCB canvas.
Fixes https://gitlab.com/kicad/code/kicad/issues/5975
2022-09-03 19:29:59 +01:00
jean-pierre charras c72091d7e0 fix a compil warning. 2022-09-03 19:55:54 +02:00
qu1ck 977b6cd8f3 PCM: add ability to pin packages
Pinned packages don't affect available update notification and will not
be updated with "Update All" button. Manual update is still possible but
will trigger a confirmation dialog.
2022-09-03 17:07:55 +00:00
Seth Hillbrand b736460e71 Move optional access from value() to *operator
`value()` throws.  Where we check for existence, we don't need to use
the throwing version and should just use the unprotected variant
2022-08-30 13:59:39 -07:00
Seth Hillbrand f1261e71d4 Replace boost::optional with std::optional 2022-08-25 15:50:47 -07:00
Seth Hillbrand 8757b3f98a Catch errors thrown from `at()`
at() can throw when it doesn't find the proper reference.  This catches
the errors and attempts to properly handle them assuming the user
initiated the removal.  Warns the developer (wxLogDebug) when this is
not the case

Fixes https://gitlab.com/kicad/code/kicad/issues/12241
2022-08-22 11:57:13 -07:00
qu1ck e19e039a47 PCM: fix crash in background update on project switch
Fixes #12244
2022-08-19 15:18:19 -07:00
Jeff Young 508df402f6 Cleanup. 2022-08-19 18:54:19 +01:00
jean-pierre charras e0fbe2542f Fix a few compil and Coverity warnings. 2022-08-19 10:53:29 +02:00
qu1ck f4fa3b02c5 PCM: automatic check for repository updates 2022-08-18 20:41:43 +00:00
Wayne Stambaugh 898ec0d094 Fix wxWidgets 3.1 and later deprecated build warnings.
wxWidgets 3.1 has deprecated wxPATH_NORM_ALL when normalizing file
paths when calling wxFileName::Normalize().  This change keeps the
existing behavior except in places where our own internal
ExpandEnvVarSubstitutions() to expand environment variables.
2022-08-15 08:00:40 -04:00
Mark Roszko 097f30a272 Move the PCM download cache to PATHS::GetUserCachePath
Second commit for https://gitlab.com/kicad/code/kicad/-/issues/10165
2022-07-22 14:40:55 +00:00
Marek Roszko a855be28fa Move the PCM cache to PATHS::GetUserCachePath
It still remains that on Windows, Documents can be bounded to network or cloud storage.
AppData\Local is intended for local PC caching.

Fix https://gitlab.com/kicad/code/kicad/-/issues/10165
2022-07-21 23:19:14 -04:00
jean-pierre charras 4db72f2d55 Fix minor compil and Coverity warnings. 2022-07-07 12:38:34 +02:00
Seth Hillbrand 2f7de851f4 Remove variable shadows 2022-07-06 16:05:20 -07:00
qu1ck 955c5d039e PCM: package update functionality
Adds package update available state, package update operation and all
the corresponding logic around it to make updating package to another
version easy.
2022-07-06 22:37:21 +00:00
Seth Hillbrand a852286eb5 Cleanup compile warnings 2022-06-21 17:04:56 -07:00
qu1ck 06028d5015 PCM: fix kicad version restriction logic
The json schema for packages implies that kicad min/max version
restriction takes major.minor.patch string but actual logic
only checks major and minor.

This fixes the logic to work with full major.minor.patch tuple.
Additionally the version max logic will substitute missing portions
with 999 for a reasonable default so that say 7.1 is still considered
as >= 7.1.5 when checking for max version.

Reported here
https://forum.kicad.info/t/updating-already-installed-plugins-using-content-manager/35532/5?u=qu1ck
2022-06-14 17:18:25 +00:00
jean-pierre charras 2701642b1b minor fixes and French translation update 2022-05-30 11:23:20 +02:00
canwail c44b15e9f5 PCM: remove redundant calculations on resize 2022-05-25 00:08:50 +00:00
qu1ck 3dd5600f95 Remove forward_declare in dialog_manage_repositories_base 2022-05-23 14:06:36 -07:00
qu1ck 0b7c79ea44 PCM: add "Add default" to manage repositories dialog
Allows to restore default repo url if it was removed.

Fixes #9588
2022-05-23 20:40:12 +00:00
qu1ck d252ce9026 PCM: Add "Open Package Directory" to main dialog
Fixes #10411
2022-05-13 05:15:46 -07:00