瀏覽代碼

IDE.CompileForm -> IDE.MainForm.

Martijn Laan 1 年之前
父節點
當前提交
6f51801a14

+ 2 - 2
Projects/Compil32.dpr

@@ -15,7 +15,7 @@ uses
   SysUtils,
   SysUtils,
   Forms,
   Forms,
   PathFunc in '..\Components\PathFunc.pas',
   PathFunc in '..\Components\PathFunc.pas',
-  IDE.CompileForm in 'Src\IDE.CompileForm.pas' {CompileForm},
+  IDE.MainForm in 'Src\IDE.MainForm.pas' {MainForm},
   Shared.CommonFunc.Vcl in 'Src\Shared.CommonFunc.Vcl.pas',
   Shared.CommonFunc.Vcl in 'Src\Shared.CommonFunc.Vcl.pas',
   Shared.CommonFunc in 'Src\Shared.CommonFunc.pas',
   Shared.CommonFunc in 'Src\Shared.CommonFunc.pas',
   IDE.HelperFunc in 'Src\IDE.HelperFunc.pas',
   IDE.HelperFunc in 'Src\IDE.HelperFunc.pas',
@@ -217,6 +217,6 @@ begin
       Title := SCompilerFormCaption;
       Title := SCompilerFormCaption;
   end;
   end;
 
 
-  Application.CreateForm(TCompileForm, CompileForm);
+  Application.CreateForm(TMainForm, MainForm);
   Application.Run;
   Application.Run;
 end.
 end.

+ 2 - 2
Projects/Compil32.dproj

@@ -77,8 +77,8 @@
         </DelphiCompile>
         </DelphiCompile>
         <DCCReference Include="..\Components\SafeDLLPath.pas"/>
         <DCCReference Include="..\Components\SafeDLLPath.pas"/>
         <DCCReference Include="..\Components\PathFunc.pas"/>
         <DCCReference Include="..\Components\PathFunc.pas"/>
-        <DCCReference Include="Src\IDE.CompileForm.pas">
-            <Form>CompileForm</Form>
+        <DCCReference Include="Src\IDE.MainForm.pas">
+            <Form>MainForm</Form>
         </DCCReference>
         </DCCReference>
         <DCCReference Include="Src\Shared.CommonFunc.Vcl.pas"/>
         <DCCReference Include="Src\Shared.CommonFunc.Vcl.pas"/>
         <DCCReference Include="Src\Shared.CommonFunc.pas"/>
         <DCCReference Include="Src\Shared.CommonFunc.pas"/>

+ 1 - 1
Projects/Src/Compiler.Compile.pas

@@ -13,7 +13,7 @@ unit Compiler.Compile;
 { For debugging purposes, remove the 'x' to have it link the ISPP code into this
 { For debugging purposes, remove the 'x' to have it link the ISPP code into this
   program and not depend on ISPP.dll. You will also need to add the Src
   program and not depend on ISPP.dll. You will also need to add the Src
   folder to the Delphi Compiler Search path in the project options. Most useful
   folder to the Delphi Compiler Search path in the project options. Most useful
-  when combine with IDE.CompileForm's STATICCOMPILER. }
+  when combine with IDE.MainForm's STATICCOMPILER. }
 
 
 interface
 interface
 
 

+ 2 - 2
Projects/Src/IDE.HelperFunc.pas

@@ -87,7 +87,7 @@ uses
   ActiveX, ShlObj, ShellApi, CommDlg, SysUtils, IOUtils, StrUtils,
   ActiveX, ShlObj, ShellApi, CommDlg, SysUtils, IOUtils, StrUtils,
   Messages, DwmApi, Consts,
   Messages, DwmApi, Consts,
   Shared.CommonFunc, PathFunc, Shared.FileClass, NewUxTheme,
   Shared.CommonFunc, PathFunc, Shared.FileClass, NewUxTheme,
-  IDE.CompileForm, IDE.Messages, Shared.ConfigIniFile;
+  IDE.MainForm, IDE.Messages, Shared.ConfigIniFile;
 
 
 procedure InitFormFont(Form: TForm);
 procedure InitFormFont(Form: TForm);
 var
 var
@@ -148,7 +148,7 @@ procedure InitFormTheme(Form: TForm);
   end;
   end;
 
 
 begin
 begin
-  if (Form = CompileForm) or FormTheme.Dark then begin
+  if (Form = MainForm) or FormTheme.Dark then begin
     Form.Color := FormTheme.Colors[tcBack];
     Form.Color := FormTheme.Colors[tcBack];
   
   
     { Based on https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/apply-windows-themes
     { Based on https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/apply-windows-themes

+ 1 - 1
Projects/Src/IDE.CompileForm.dfm → Projects/Src/IDE.MainForm.dfm

@@ -1,4 +1,4 @@
-object CompileForm: TCompileForm
+object MainForm: TMainForm
   Left = 206
   Left = 206
   Top = 97
   Top = 97
   Caption = '*'
   Caption = '*'

File diff suppressed because it is too large
+ 127 - 127
Projects/Src/IDE.MainForm.pas


+ 4 - 4
Projects/Src/IDE.StartupForm.pas

@@ -59,7 +59,7 @@ type
 implementation
 implementation
 
 
 uses
 uses
-  IDE.Messages, Shared.CommonFunc.Vcl, Shared.CommonFunc, IDE.HelperFunc, IDE.CompileForm, ComCtrls;
+  IDE.Messages, Shared.CommonFunc.Vcl, Shared.CommonFunc, IDE.HelperFunc, IDE.MainForm, ComCtrls;
 
 
 {$R *.DFM}
 {$R *.DFM}
 
 
@@ -73,14 +73,14 @@ procedure TStartupForm.UpdateImages;
 
 
   function GetImage(const Button: TToolButton; const WH: Integer): TWICImage;
   function GetImage(const Button: TToolButton; const WH: Integer): TWICImage;
   begin
   begin
-    Result := CompileForm.LightToolBarImageCollection.GetSourceImage(Button.ImageIndex, WH, WH)
+    Result := MainForm.LightToolBarImageCollection.GetSourceImage(Button.ImageIndex, WH, WH)
   end;
   end;
 
 
 begin
 begin
  { After a DPI change the button's Width and Height isn't yet updated, so calculate it ourselves }
  { After a DPI change the button's Width and Height isn't yet updated, so calculate it ourselves }
   var WH := MulDiv(16, CurrentPPI, 96);
   var WH := MulDiv(16, CurrentPPI, 96);
-  NewImage.Picture.Graphic:= GetImage(CompileForm.NewMainFileButton, WH);
-  OpenImage.Picture.Graphic := GetImage(CompileForm.OpenMainFileButton, WH);
+  NewImage.Picture.Graphic:= GetImage(MainForm.NewMainFileButton, WH);
+  OpenImage.Picture.Graphic := GetImage(MainForm.OpenMainFileButton, WH);
 end;
 end;
 
 
 procedure TStartupForm.FormAfterMonitorDpiChanged(Sender: TObject; OldDPI,
 procedure TStartupForm.FormAfterMonitorDpiChanged(Sender: TObject; OldDPI,

+ 3 - 3
Projects/Src/IDE.Wizard.WizardFormRegistryHelper.pas

@@ -47,7 +47,7 @@ implementation
 uses
 uses
   Windows, Classes, SysUtils, StrUtils, TypInfo, Graphics, UITypes,
   Windows, Classes, SysUtils, StrUtils, TypInfo, Graphics, UITypes,
   ComCtrls,
   ComCtrls,
-  IDE.CompileForm, IDE.HelperFunc, IDE.Messages, BrowseFunc, Shared.CommonFunc, IDE.HtmlHelpFunc;
+  IDE.MainForm, IDE.HelperFunc, IDE.Messages, BrowseFunc, Shared.CommonFunc, IDE.HtmlHelpFunc;
 
 
 { TWizardFormRegistryHelper }
 { TWizardFormRegistryHelper }
 
 
@@ -61,13 +61,13 @@ procedure TWizardFormRegistryHelper.UpdateImages;
 
 
   function GetImage(const Button: TToolButton; const WH: Integer): TWICImage;
   function GetImage(const Button: TToolButton; const WH: Integer): TWICImage;
   begin
   begin
-    Result := CompileForm.LightToolBarImageCollection.GetSourceImage(Button.ImageIndex, WH, WH)
+    Result := MainForm.LightToolBarImageCollection.GetSourceImage(Button.ImageIndex, WH, WH)
   end;
   end;
 
 
 begin
 begin
  { After a DPI change the button's Width and Height isn't yet updated, so calculate it ourselves }
  { After a DPI change the button's Width and Height isn't yet updated, so calculate it ourselves }
   var WH := MulDiv(16, FForm.CurrentPPI, 96);
   var WH := MulDiv(16, FForm.CurrentPPI, 96);
-  FMinVerDocImage.Picture.Graphic:= GetImage(CompileForm.HelpButton, WH);
+  FMinVerDocImage.Picture.Graphic:= GetImage(MainForm.HelpButton, WH);
 end;
 end;
 
 
 constructor TWizardFormRegistryHelper.Create(const Form: TForm;
 constructor TWizardFormRegistryHelper.Create(const Form: TForm;

+ 1 - 1
Projects/Src/Setup.MainForm.pas

@@ -3024,7 +3024,7 @@ begin
     end else if CompareText(ParamName, '/DebugSpawnServer') = 0 then  { for debugging }
     end else if CompareText(ParamName, '/DebugSpawnServer') = 0 then  { for debugging }
       EnterSpawnServerDebugMode  { does not return }
       EnterSpawnServerDebugMode  { does not return }
     else if CompareText(ParamName, '/DEBUGWND=') = 0 then begin
     else if CompareText(ParamName, '/DEBUGWND=') = 0 then begin
-      ParamIsAutomaticInternal := True; { sent by TCompileForm.StartProcess }
+      ParamIsAutomaticInternal := True; { sent by IDE.MainForm's StartProcess }
       DebugServerWnd := StrToInt(ParamValue);
       DebugServerWnd := StrToInt(ParamValue);
     end else if CompareText(ParamName, '/ALLUSERS') = 0 then begin
     end else if CompareText(ParamName, '/ALLUSERS') = 0 then begin
       InitPrivilegesRequired := prAdmin;
       InitPrivilegesRequired := prAdmin;

Some files were not shown because too many files changed in this diff