@@ -23,15 +23,11 @@ interface
2323type
2424 TC4DWizardUtils = class
2525 private
26- class function ShowMsgInternal (
27- const AMsg: string;
28- const ADetails: string;
29- const AIcon: TC4DWizardIcon;
30- const AButtons: TC4DButtons;
31- const ABtnFocu: TC4DBtnFocu;
32- const AWinControlFocu: TWinControl): Boolean;
26+ class function ShowMsgInternal (const AMsg, ADetails: string; const AIcon: TC4DWizardIcon;
27+ const AButtons: TC4DButtons; const ABtnFocu: TC4DBtnFocu; const AWinControlFocu: TWinControl): Boolean;
3328 class function GetPathFromProcessID (const AProcessID: cardinal): string;
3429 public
30+ class function FileNameIsC4DWizardDPROJ (const AFileName: string): Boolean;
3531 class procedure RemoveBlankSpaceInBegin (var AValue: string; const ACount: Integer);
3632 class function BlankSpaceInBegin (const AValue: string): Integer;
3733 class procedure WaitingScreenShow (const AMsg: string = ' ' );
@@ -140,6 +136,11 @@ function PathRelativePathTo(pszPath: PChar; pszFrom: PChar; dwAttrFrom: DWORD; p
140136function PathCanonicalize (lpszDst: PChar; lpszSrc: PChar): LongBool; stdcall; external ' shlwapi.dll' name ' PathCanonicalizeW' ;
141137{ $ENDREGION}
142138
139+ class function TC4DWizardUtils.FileNameIsC4DWizardDPROJ (const AFileName: string): Boolean;
140+ begin
141+ Result := ExtractFileName(AFileName) = TC4DConsts.C_C4D_WIZARD_DPROJ;
142+ end ;
143+
143144class procedure TC4DWizardUtils.RemoveBlankSpaceInBegin (var AValue: string; const ACount: Integer);
144145begin
145146 if (ACount <= 0 )then
@@ -892,12 +893,8 @@ class function TC4DWizardUtils.IsBpr(const AFilePath: string): Boolean;
892893
893894{ $REGION 'MessagesImplementation'}
894895
895- class function TC4DWizardUtils.ShowMsgInternal (const AMsg: string;
896- const ADetails: string;
897- const AIcon: TC4DWizardIcon;
898- const AButtons: TC4DButtons;
899- const ABtnFocu: TC4DBtnFocu;
900- const AWinControlFocu: TWinControl): Boolean;
896+ class function TC4DWizardUtils.ShowMsgInternal (const AMsg, ADetails: string; const AIcon: TC4DWizardIcon;
897+ const AButtons: TC4DButtons; const ABtnFocu: TC4DBtnFocu; const AWinControlFocu: TWinControl): Boolean;
901898begin
902899 Application.CreateForm(TC4DWizardViewDialog, C4DWizardViewDialog);
903900 try
0 commit comments