Jon Evans
7b0bb59b37
Remove hard-coded versioned env vars in most places
2 years ago
Jon Evans
febe759e49
Do not mess with KIPRJMOD when loading aux projects
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16810
2 years ago
Jon Evans
9d57637a1a
Fix clobbering of common settings
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16905
2 years ago
Jon Evans
169114fd07
Fix path from ba25f881c6
2 years ago
Jon Evans
ba25f881c6
Save common settings if we just created them
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16775
2 years ago
Marek Roszko
9a890cdba9
Kick the wildcards and file exts into a static class, export it from kicommon
2 years ago
Wayne Stambaugh
922aee1532
Coding policy fixes.
2 years ago
Jon Evans
c6c808a7fa
Support system-installed color themes
Install to ${KICAD_DATA}/colors/
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15920
2 years ago
Marek Roszko
c006482feb
Add SETTINGS_MANAGER::GetUserSettingsPath back because swig
2 years ago
Marek Roszko
121ea99824
Move the settings path to PATHS to allow shifting other classes into kicommon
2 years ago
Seth Hillbrand
c7758999af
Handle LOCKFILE logistics for ro
We need to check if a lockfile is valid to determine if we should
override the lock. Valid() is true if the lockfile couldn't be created
b/c of permissions or if the lockfile could be created and acquired.
3 years ago
Seth Hillbrand
122be418bb
Upgrade file locking
wxSingleInstanceChecker is meant for running programs, not file locking.
This implements an RAII class for file locking that stores the lock
files next to the file being locked, allowing it to be easily found and
removed. Also includes the ability to override the lock, with
information about the original owner
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14734
3 years ago
Jon Evans
2ab47ee1e9
Allow for settings to be added during load
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14691
3 years ago
Alex
b89545e484
GTK: Fix settings import paths showing up twice.
3 years ago
Salvador E. Tropea
13de3c0656
Use constants for the names of the built-in colors
- Avoid repetition and errors from typos
- Allow simple changes
- Simpler data type handling, the constants are wxString
(Cherry-picked from f135881bd6 in 7.0)
3 years ago
Salvador E. Tropea
915446a472
Create the built-in colors in the constructor
This is needed so Python scripts can get built-in colors using the
SETTINGS_MANAGER.GetColorSettings() member.
Otherwise calling it with a built-in name crashes.
(cherry picked from commit aee6d9d01c )
3 years ago
Marek Roszko
719be61627
Silence some kicad-cli loading errors on clean installs
3 years ago
Marek Roszko
088cadfefc
Attempt to select PCM themes for cli by their display name
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13648
3 years ago
Seth Hillbrand
a9ed47f06c
Update KICAD6->KICAD7
3 years ago
Marek Roszko
0ff32d20cd
wxS more things
3 years ago
Marek Roszko
1edf84d756
More wxS ugh
3 years ago
Alex
53dedb2c99
Prefer later versions in import of previous settings
3 years ago
Jeff Young
f5770fe7e0
Actually free the projects before the settings.
Fixes https://gitlab.com/kicad/code/kicad/issues/10973
3 years ago
Jeff Young
a0b6247a06
Try a different order of destruction.
Fixes https://gitlab.com/kicad/code/kicad/issues/10973
3 years ago
Marek Roszko
3fe004fd1b
New kicad-cli will now be the cli interface
3 years ago
Seth Hillbrand
f1261e71d4
Replace boost::optional with std::optional
3 years ago
Jeff Young
6f49b57f9b
Cleanup & performance enhancements.
3 years ago
jean-pierre charras
993c446fdf
Fix some warnings detected by PVS-STUDIO (most are not used vars)
3 years ago
Marek Roszko
7473528cf4
Ensure user paths are created early
Fix #11962
4 years ago
Jon Evans
507d7916ee
Use actual project path when saving project
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10540
(cherry picked from commit 9c386026a8 )
4 years ago
Jon Evans
cb6d6d7ef4
Settings: allow multiple project access from Python standalone
We can't handle this in the UI, but we can externally, so allow
it for Python scripting and eventually we'll use this in the UI
also...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10540
(cherry picked from commit 1394509734 )
4 years ago
Seth Hillbrand
168ad58eef
Convert strings to wide when using wxString routines
WxString does not allocate space for wide strings needed during
conversion unless the string is explicitly wide. This can cause buffer
over/underflow
Fixes https://gitlab.com/kicad/code/kicad/issues/10605
(cherry picked from commit 7601a3385f )
4 years ago
Jon Evans
59be6a8d19
Load local settings even when not setting project active
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10179
(cherry picked from commit 0065036899 )
4 years ago
Ian McInerney
cec258f7dd
Normalize the settings migration path to have no trailing slash
If we use the raw user input, it may or may not have a trailing slash on
the directory name, and then if the user provides a trailing slash
migrating the folders inside the old settings directory will fail.
4 years ago
qu1ck
18b4ebcc17
Skip migrating installed_packages.json
4 years ago
Jon Evans
22b9856a6a
Fix shadowing
4 years ago
Roberto Fernandez Bautista
bfad40bdcc
Also erase KICAD6_TEMPLATE_DIR when library tables are not migrated
That path contains the default library table and should be set to the
latest one in from the installation.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9660
4 years ago
Jon Evans
f6263e0129
Erase library env vars if tables are not migrated
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9660
4 years ago
Jon Evans
42eb063697
PCM: Treat color themes as read-only; don't copy to settings dir
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9548
4 years ago
Seth Hillbrand
6e5a918377
Writeable -> Writable
4 years ago
Jeff Young
c05e4376f9
Update backups folder name when doing project save as.
Fixes https://gitlab.com/kicad/code/kicad/issues/9254
4 years ago
qu1ck
a1521d338e
Add colortheme package type
5 years ago
Jon Evans
0814219513
Clean up some handling of project files in standalone
Add control of project creation to Eeschema; change defaults
to enable project creation in both programs. Properly set
project on newly-created schematics so "Save As" doesn't
get triggered repeatedly.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9000
4 years ago
Jon Evans
781fb0ad0d
Fix loading of auxiliary projects
Projects list wasn't being used properly to track active Prj
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8998
4 years ago
jean-pierre charras
a0da252a6a
SETTINGS_MANAGER::Prj(): add a wxASSERT to allow python script debug before a crash
Due to a bug, SETTINGS_MANAGER::Prj() returns a null PROJECT when running a
python script from the python console. this wxASSERT helps debugging.
4 years ago
Jeff Young
d6443d5a2c
Reduce type-casting a bit.
4 years ago
Jeff Young
ae99e627bd
Quiet Coverity.
4 years ago
Jeff Young
4876e1b327
Make sure user.json file gets created if it didn't already exist.
Fixes https://gitlab.com/kicad/code/kicad/issues/8856
4 years ago
Jeff Young
6f1837b300
Formatting.
4 years ago
Jeff Young
0d2ea6223b
Don't throw in a release build if the "keep" namespace is missing.
Fixes https://gitlab.com/kicad/code/kicad/issues/8618
5 years ago