Jeff Young
d257dc5b4e
Cleanup unused variables.
2 years ago
Jon Evans
fc3c701fa1
Fix crash launching editors with additional command line arguments
(cherry picked from commit c5cdff6213 )
2 years ago
Seth Hillbrand
d99641be40
ADDED: Git integration support
Adds support for project-based git integration, branch support, commit,
revert and updates
Fixes https://gitlab.com/kicad/code/kicad/issues/10441
2 years ago
Jeff Young
0f94b467ba
Fix arg parsing in ExecuteFile.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15326
2 years ago
qu1ck
0c049eccc7
Fix a bunch of compiler warnings
3 years ago
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
4 years ago
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.
4 years ago
Mikolaj Wielgus
921105330a
Remove printing files from Project Manager
4 years ago
Mikolaj Wielgus
6d9456ea4d
Fix opening files with spaces on Linux
`wxLaunchDefaultApplication()` fails on files with spaces on Unix
systems due to a programmer error. This is fixed in newer wxWidgets
versions, so let's backport it as a workaround.
4 years ago
Jeff Young
1f19c41c29
Support printing of kicad_dru files.
4 years ago
Jeff Young
8a8775bed8
Remove another use of non-argv wxExecute
(Fixes supplied by mwielgus.)
4 years ago
Jeff Young
1b6c4638ca
Escape quotes to prevent break-out.
Fixes https://gitlab.com/kicad/code/kicad/issues/9236
4 years ago
Jeff Young
10dd70881c
New paramaterized interface doesn't like quoted parameters.
(At least on MSW, anyway.)
4 years ago
jean-pierre charras
e96108d3c8
Fix int ExecuteFile(...) incorrect behavior with quoted filename.
It uses a wxExecute() version that add quotes to filename, so the final
filename was incorrect.
Fixes #9292
https://gitlab.com/kicad/code/kicad/issues/9292
4 years ago
Jeff Young
3413358992
Make sure there is a filename before creating a parameter for it.
Fixes https://gitlab.com/kicad/code/kicad/issues/9263
4 years ago
Jeff Young
5dc82037fb
Fix typo.
4 years ago
Jeff Young
1723106b4d
Compile fixes for wx3.0.
4 years ago
Jeff Young
88ad249f76
Cleanup.
4 years ago
Jeff Young
67fb8cbe9e
Compile fix.
4 years ago
Jeff Young
fa032400ee
Fix compile error.
4 years ago
Jeff Young
bbea8afdc5
Trim some (probably) excess includes.
4 years ago
Jeff Young
5bf042fcc1
Use individual parameter version of wxExecute.
Fixes https://gitlab.com/kicad/code/kicad/issues/9236
4 years ago
Jeff Young
c6bcb85562
Excise system() calls.
Fixes https://gitlab.com/kicad/code/kicad/issues/9236
4 years ago
Jeff Young
157c21d325
Only run Unix file handling stuff on Unix.
Fixes https://gitlab.com/kicad/code/kicad/issues/9217
4 years ago
jean-pierre charras
bdb1231169
Fix compil issues on GTK and MSW.
4 years ago
Jeff Young
6e7ce09572
Use more descriptive terminology for preferred text editor.
Also improves execution to allow the preferred editor to include
parameters, such as "/usr/bin/open -e".
Fixes https://gitlab.com/kicad/code/kicad/issues/9131
4 years ago
Wayne Stambaugh
f233f4a0a9
Expunge EDA_FILE_SELECTOR.
EDA_FILE_SELECTOR was just an obfuscation of wxFileSelector().
4 years ago
Wayne Stambaugh
bcd6bddfd4
Start expunging NULL.
Given that KiCad is a C++ project, we should really be using nullptr
instead of NULL.
4 years ago
Jeff Young
062c4fda62
More error message regularization (and translatability improvements).
5 years ago
jean-pierre charras
964cbb95d3
gestfich.cpp: fix an issue on wxGTK when calling wxLaunchDefaultApplication()
- On wxGTK version < 3.1, the filename must be quoted if containing spaces,
and can be always quoted.
- On wxGTK version >= 3.1, the filename must *never* be quoted because
a quoted filename breaks wxLaunchDefaultApplication().
Fixes #8670
https://gitlab.com/kicad/code/kicad/issues/8670
5 years ago
Jeff Young
1722bc03b0
Consistent terminology and punctuation.
5 years ago
Marek Roszko
bdc41f7365
Don't search hardcoded (and never valid on non-english) Windows paths
5 years ago
Wayne Stambaugh
04a3619428
Fix opening symbol documentation field paths with spaces on GTK.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6422
5 years ago
Marek Roszko
16e3e59495
Split out arrayDim and MIRROR templates from macros.h
These were not macros
5 years ago
Marek Roszko
64484f5fc4
Split KIID out of common.h
5 years ago
Marek Roszko
a1c75748a0
Remove GetChars(), a wxWidgets 2.9 compatibility hack
5 years ago
jean-pierre charras
b38cef409b
Rename CopyFile() to KiCopyFile() to avoid name colliding with a windows header.
Using CopyFile() that can collide with a windows header create hard to
understand errors, including link errors.
Renaming this function avoids these strange errors.
5 years ago
jean-pierre charras
36bc44e6d7
more cleanup about removing useless include
5 years ago
Ian McInerney
a0d84e94fd
Use move to trash to the project manager instead of immediate delete
CHANGED: Delete in the project manager now moves files to the trash can
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2499
6 years ago
Wayne Stambaugh
ede39780e2
Remove all debugging output that cannot be disabled.
The use of printf, wxLogDebug, and std::err/std::out causes excessive
debugging output which makes finding specific debugging messages more
difficult than it needs to be.
There is still some debugging output in test code that really needs to
be moved into a unit test.
Add debugging output section to the coding policy regarding debugging
output.
5 years ago
Ian McInerney
20e7fc8a0e
Properly escape spaces when opening PDFs on windows
Fixes https://gitlab.com/kicad/code/kicad/issues/2625
6 years ago
jean-pierre charras
52db6acb86
Fix a compil issue on Windows.
A wxString was defined as const, but on Windows it is modified.
6 years ago
Seth Hillbrand
6983c56cf8
Use const references where possible
This avoids copy cost on local vars where we only read.
6 years ago
jean-pierre charras
767d7f2009
Fix bug (typo?) in gestfich.cpp.
Minor enhancement in treeproject_item.cpp
6 years ago
Ian McInerney
88e55bbf2d
Recursively delete directories in the project tree
Ensure we iterate over all the sub directories and files inside of them
when deleting a directory from the project tree.
Fixes: lp:1852357
* https://bugs.launchpad.net/kicad/+bug/1852357
6 years ago
jean-pierre charras
4de6ed6206
Fix issues created by Adds Save As... to the Kicad manger.
Mainly replacing std::string by wxString to manage filenames.
On Windows, a sdt::string cannot manage a filename, unless using
in many places TO_UTF8 and FROM_UTF8.
So the best way is to use a wxString for filenames and error messages.
6 years ago
Jeff Young
b5904b0401
Installment one of project Save As... feature.
ADD: Adds Save As... to the File menu for the project window.
Fixes: lp:594051
* https://bugs.launchpad.net/kicad/+bug/594051
6 years ago
Jeff Young
a612fb690b
Cherry pick of line-ending-safety fix from 5.1.
Fixes: lp:1842943
* https://bugs.launchpad.net/kicad/+bug/1842943
6 years ago
Jeff Young
d55f4d05b4
Workaround wxWidgets inability to find the default PDF viewer.
Fixes: lp:1843061
* https://bugs.launchpad.net/kicad/+bug/1843061
6 years ago
Jeff Young
2274895acf
Add print preflight so the menu item is only shown when we can print.
Fixes: lp:1836473
* https://bugs.launchpad.net/kicad/+bug/1836473
6 years ago