175 Commits

Author SHA1 Message Date
Seth Hillbrand
de26550b5a Add stubs for compiling 2025-09-10 21:23:37 -07:00
Jeff Young
2f1a91279f Make sure DRC inspection dialogs come up in front
of DRC dialog.
2025-09-10 17:52:09 +01:00
Ian McInerney
c87211e1df Move Poppler library inclusion to the kiplatform library where it is used 2025-08-18 15:35:59 +01:00
Seth Hillbrand
a93803cfd7 Properly gate printing.cpp 2025-08-18 05:14:08 -07:00
Seth Hillbrand
bce3e7340f Revert "Rework Apple printing to better handle rotation"
This reverts commit 35ac6bdeb450fe1acc3c12d4f09ec9badd7af7f2.
2025-08-17 07:47:16 -07:00
Seth Hillbrand
35ac6bdeb4 Rework Apple printing to better handle rotation
Apparently, mixed orientation isn't a thing in normal Apple print but
can be handled by the PDFKit printing
2025-08-17 07:07:29 -07:00
Seth Hillbrand
98a8f8678a Add logging to Windows print functions 2025-08-17 07:07:13 -07:00
Seth Hillbrand
23c1a68da8 Make printing consistent with plotting.
How you ask?  Plot first -> then read the PDF and print directly to the
platform-specific printers.  Roundabout?  Yes.  Better than wx printing?
Darnbetcha.

Also allows multi-size page printing and proper margins and print
preview

Fixes https://gitlab.com/kicad/code/kicad/-/issues/1831
2025-08-16 20:07:45 -07:00
Seth Hillbrand
1306cb337d Fix fat-fingering mistake 2025-08-06 13:26:20 -07:00
Seth Hillbrand
7dc83fbffd Ensure dialogs are visible on all Spaces
We never want to hide dialogs if their parent is on a different Space
(MacOS-specific terminology), so set the window property to show
everywhere when showing a dialog

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13906
2025-08-06 11:48:07 -07:00
jean-pierre charras
76c2a9fb8e Fix mingw build 2025-07-10 08:02:00 +02:00
Mark Roszko
743988bd57 Add support for SHAddToRecentDocs on windows with app model id 2025-07-09 20:12:30 -04:00
jean-pierre charras
d0288dbcbf Windows, msys2 build: fix cast not accepted by GCC 2025-07-09 12:45:45 +02:00
Mark Roszko
572d394be7 Fix shift+middle click on windows no longer working
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21267
2025-07-08 23:17:46 -04:00
Mark Roszko
1696d75471 Provide custom coloring for Control Light / wxSYS_COLOUR_3DLIGHT 2025-06-14 15:57:23 -04:00
Mark Roszko
b83f433506 Enable dark mode on windows when built with wx 3.3 2025-06-14 13:55:02 -04:00
Michal Suchanek
ca54db2db4 windows: Fix build on case sensitive filesystem 2025-05-11 15:50:10 +00:00
Kreijstal
c2685ef76f Fix compilation on mingw 2025-03-03 01:56:30 +00:00
jean-pierre charras
2a143a63e5 Build on MSYS2: use shobjidl.h, instead of shobjidl_core.h
shobjidl_core.h is not available on mingw
2025-01-16 09:59:12 +01:00
Marek Roszko
337ec6d862 Add a version_header depend, not ideal 2025-01-15 21:27:08 -05:00
Marek Roszko
a0b50622dd Implement AppUserModelID for windows 2025-01-15 20:36:15 -05:00
Seth Hillbrand
8ab5d95d1b Handle GTK themes that don't use the revealer 2025-01-11 19:56:42 -08:00
Marek Roszko
06a61e773f Fix bg/fg fed to GetInfoBarColours 2025-01-11 16:26:02 -05:00
Jon Evans
4279672876 Fix incorrect signature 2025-01-10 21:59:51 -05:00
Seth Hillbrand
e8167f33d7 Grab GTK default colors for infobar
This implements the wxWidgets fix for KiCad.  We can't wait for distros
to update their wx libs so until then, we'll roll our own.

Nicely, this also implements the MacOS setting that was an ifdef
previously

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19506
2025-01-10 17:32:51 -08: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
Ian McInerney
2ddcc7a7ad Add error handling to posix function call 2024-12-31 00:18:10 +00:00
Marek Roszko
0e1b47427c Add a windows specific hack to make backups work past max length
Since backups are most likely to encounter max path limitations compared to other things we do in kicad
2024-12-29 19:54:11 -05:00
Marek Roszko
41d7711f06 Add a function to create long paths on windows 2024-12-29 18:21:49 -05:00
Andrej Valek
20ee4effdc ReparentModal: fix case when parent is not available
In some situations then parent window couldn't be available. Eg, when
eeschema is executed as standalone on macOS and trying to show
the global design block table dialog before the main frame exists.
So replace the assert with return and check the windows pointers bellow.
2024-10-31 14:42:53 +01:00
Andrej Valek
3ad92bc8db ShowModal: override method in DIALOG_SHIM
All DIALOG_SHIM dialogues which should be modal, has a problem on OSX
that parent could be lost. So call ReparentModal to fix this before
calling the base ShowModal method. This should fix the problem when
modal window has been hidden when windows were switched.

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

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/17460
2024-10-27 16:37:47 +00:00
John Beard
c7fa61cd94 GTK: Enable IME cancellation on canvas focus
This means that it doesn't start consuming hotkeys for
IME composition in the main canvas on Linux.

Text boxes in dialogs and the property manager, for example,
still receive IME composition.

Relates-To: https://gitlab.com/kicad/code/kicad/-/issues/9882
2024-08-14 14:28:54 +01:00
Seth Hillbrand
d44bf89b98 Update wayland file location
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18141
2024-06-03 10:57:08 -07:00
Alex Shvartzkop
5742ba2ef1 Remove gdk header from unix environment.cpp. 2024-06-01 11:37:37 +03:00
Alex Shvartzkop
e1a8e53d07 Some CMake fixups for kiplatform. 2024-06-01 07:13:17 +03:00
Alex Shvartzkop
2bc6e5a856 kiplatform: Separate operating systems and wxWidgets ports. 2024-06-01 07:05:19 +03:00
Marek Roszko
7dee29f70a Hackfix some cases the IME on windows locks up
Asking the IME to cancel when the canvas takes focus fixes the case where:

- Windows input lang set to Chinese
- Input mode set to english instead of chinese
- You spam the M key while launching a sch/pcb from the kicad.exe until the editor opens
- The windows would then normally be frozen
2024-05-25 13:25:10 -04:00
Marek Roszko
03fa632526 Try and fix ifdef again 2024-05-05 18:51:51 -04:00
Marek Roszko
e0b0fb27b0 Fix compile errors 2024-05-05 17:44:44 -04:00
Marek Roszko
8e40482451 Fix ifdefs 2024-05-05 16:06:19 -04:00
Marek Roszko
a9e4b1c56a Throw "sysinfo" functions into kiplatform for windows. 2024-05-05 15:14:05 -04:00
Alex Shvartzkop
e26778c599 Require Wayland 1.20 libraries.
KiCad doesn't build with older versions due to missing definitions.
2024-04-27 16:48:49 +03:00
Marek Roszko
b22bc2737e Hackfix macOS to keep erc/drc on top
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14356
2024-04-26 00:49:22 -04:00
Marek Roszko
60d5780c1c Fix win32 proxy parsing when the old IE options for scheme based configuration was set
If you uncheck in the old IE options "Use the same proxy server for all protocols", then it returns an annoying string
like http=blah:1232;https=blah:1232;ftp=blah:2321 which we have to parse.
2024-04-25 21:24:58 -04:00
Alex Shvartzkop
463b609993 Disable infinite panning when using XWayland.
Cursor warping doesn't work properly in this scenario.

https://gitlab.com/kicad/code/kicad/-/issues/14109
2024-03-12 10:31:23 +03:00
Jan Wichmann
5cdf9fe8a0 Don't show hidden directories and files in the project tree browser
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16207
2024-03-03 16:43:43 +00:00
Johannes Maibaum
15e963bb32 Don't leak blank_cursor on warp (X11)
Also, for completeness, unref cur_cursor which we ref'd before hiding
it.
2024-02-29 18:55:28 +00:00
Ian McInerney
d44b04978a Allow enabling WXTRACE in release builds on all platforms
Setting the environment variable KICAD_ENABLE_WXTRACE now enables wx
trace logging on all platforms. MSW still requires its original
environment variables to be set to get the console displayed.
2024-02-02 14:21:33 +00:00
Marek Roszko
8f57a9bcf0 Fix spacemouse version check by pawning it off on wxWidgets
Version is a value not a key name. Also the registry returns things in wchars soooo lets just pawn off the encoding mess on wxWidgets

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16730
2024-01-24 19:04:50 -05:00
Jon Evans
dda14e68a2 Add macOS required libraries in kiplatform
Supersedes 36b0aa60
2023-10-20 11:26:22 -04:00