spiegel-keyman/common/windows/delphi
Marc Durdin 39b7c882a3 feat(developer): Multi-process model for projects 🦕
This is a bit of an omnibus commit, apologies for that. This commit
moves Keyman Developer to a proper multi-process model, where editing
files from multiple projects is handled much more cleanly, with each
project loaded in a separate process.

Files that are edited outside of a project structure are loaded into a
'temporary project' in a single process, which provides a pathway for
existing users who may have legacy files outside the normal Keyman
Developer project model.

There are several components to this:

1. Inter-process communication (Multiprocess, CopyDataHelper units and
   multiprocess test project). These modules establish a method of
   enumerating running Keyman Developer instances (with EnumWindow),
   recording relevant metadata for each instance (by thread id) in the
   registry (registry used because it manages contention without
   additional effort from us), and communicating between processes with
   WM_COPYDATA.
2. Command-line parsing (TikeCommandLine). Determines project ownership
   (ProjectOwningFile) for each filename passed on the command-line, and
   passes these over to existing instances of Keyman Developer that have
   that project loaded, or starts new instances as needed.
3. Temporary project management. Mostly in ProjectUI.

Also, moved GlobalProjectStateWnd management out of ProjectFile.pas and
into Project.pas, alongside other global project variables.

A follow-up will add functionality to determine if a file opened within
the Keyman Developer UI should open in the same instance or in a
separate instance (see TfrmKeymanDeveloper.OpenFileInProject). This will
use the same methodology as TikeCommandLine does now, so may involve
further refactoring.

This commit establishes the idea of 'keyman.kpj' as a future default
filename for Keyman Developer projects, but does not enable it, in
ProjectOwningFile. It is planned to introduce this fixed filename in
version 18.0 (see #10113).
2023-12-01 11:48:09 +07:00
..
charmap fix(developer): invalid charmap cell selection when updating to empty search result 2022-12-10 06:04:17 +07:00
chromium fix(windows): open pdf in an external browser 2023-07-19 10:51:50 +10:00
components chore(developer): fixup tests and build process 2023-03-17 04:31:03 +07:00
ext fix(windows): re-enable signature check 2023-10-06 09:14:35 +07:00
general feat(developer): Multi-process model for projects 🦕 2023-12-01 11:48:09 +07:00
keyboards feat(developer): support store(&version) '17.0' 2023-10-02 15:30:07 +07:00
packages feat(developer): introduce WelcomeFile property to packages 2023-10-08 07:22:57 +07:00
setup fix(developer): show more useful error if out of space during Setup 2022-09-12 12:02:09 +10:00
standards chore(windows): move global/delphi/standards to common 2022-06-13 06:15:47 +10:00
tlb chore(windows): move global/delphi/tlb to common 2022-06-13 06:29:23 +10:00
tools fix(developer): skip resource check for node addons 2023-10-07 05:49:25 +07:00
ui fix(developer): generate a default icon for basic keyboard projects 2022-11-01 15:14:13 +11:00
vcl chore(windows): move Keyman.System.RegExGroupHelperRSP19902 unit to common 2022-06-22 14:02:03 +10:00
visualkeyboard chore(windows): move ExtShiftState to common 2022-06-21 09:38:52 +10:00
web fix(developer): EncodeURL was not handling spaces 2022-11-26 07:09:53 +07:00
Defines.mak chore(windows): GO_FAST for 7z calls on debug builds 2023-07-14 11:53:17 +07:00
Header.mak chore(windows): move dcpcrypt to common/windows 2022-06-02 10:38:29 +10:00
Makefile Revert "fix(windows): Fix Delphi makefile" 2023-07-10 11:31:51 +02:00
Target.mak chore(windows): move dcpcrypt to common/windows 2022-06-02 10:38:29 +10:00