Changeset 423 for trunk/Packages/Common
- Timestamp:
- Apr 25, 2022, 6:01:01 PM (3 years ago)
- Location:
- trunk/Packages/Common
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/StopWatch.pas
r396 r423 5 5 6 6 uses 7 {$IFDEF W indows}Windows,{$ENDIF}7 {$IFDEF WINDOWS}Windows,{$ENDIF} 8 8 SysUtils, DateUtils; 9 9 … … 32 32 end; 33 33 34 34 35 implementation 35 36 … … 40 41 fIsRunning := False; 41 42 42 {$IFDEF W indows}43 {$IFDEF WINDOWS} 43 44 fIsHighResolution := QueryPerformanceFrequency(fFrequency) ; 44 45 {$ELSE} -
trunk/Packages/Common/UAboutDialog.pas
r420 r423 1 1 unit UAboutDialog; 2 3 {$mode delphi}4 2 5 3 interface -
trunk/Packages/Common/UApplicationInfo.pas
r396 r423 1 1 unit UApplicationInfo; 2 3 {$mode delphi}4 2 5 3 interface … … 59 57 procedure Register; 60 58 59 61 60 implementation 62 61 -
trunk/Packages/Common/UCommon.pas
r420 r423 1 1 unit UCommon; 2 2 3 {$mode delphi}4 5 3 interface 6 4 7 5 uses 8 {$ ifdef Windows}Windows,{$endif}9 {$ ifdef Linux}baseunix,{$endif}6 {$IFDEF WINDOWS}Windows,{$ENDIF} 7 {$IFDEF UNIX}baseunix,{$ENDIF} 10 8 Classes, SysUtils, StrUtils, Dialogs, Process, LCLIntf, 11 9 FileUtil; //, ShFolder, ShellAPI; … … 35 33 DLLHandle1: HModule; 36 34 37 {$IFDEF W indows}35 {$IFDEF WINDOWS} 38 36 GetUserNameEx: procedure (NameFormat: DWORD; 39 37 lpNameBuffer: LPSTR; nSize: PULONG); stdcall; … … 302 300 end; 303 301 304 {$IFDEF W indows}302 {$IFDEF WINDOWS} 305 303 function GetUserName: string; 306 304 const … … 323 321 end; 324 322 end; 325 {$ endif}323 {$ENDIF} 326 324 327 325 function ComputerName: string; 328 {$ ifdef mswindows}326 {$IFDEF WINDOWS} 329 327 const 330 328 INFO_BUFFER_SIZE = 32767; … … 341 339 end; 342 340 end; 343 {$ endif}344 {$ ifdef unix}341 {$ENDIF} 342 {$IFDEF UNIX} 345 343 var 346 344 Name: UtsName; … … 349 347 Result := Name.Nodename; 350 348 end; 351 {$ endif}352 353 {$ ifdef windows}349 {$ENDIF} 350 351 {$IFDEF WINDOWS} 354 352 function LoggedOnUserNameEx(Format: TUserNameFormat): string; 355 353 const … … 429 427 procedure LoadLibraries; 430 428 begin 431 {$IFDEF W indows}429 {$IFDEF WINDOWS} 432 430 DLLHandle1 := LoadLibrary('secur32.dll'); 433 431 if DLLHandle1 <> 0 then … … 440 438 procedure FreeLibraries; 441 439 begin 442 {$IFDEF W indows}440 {$IFDEF WINDOWS} 443 441 if DLLHandle1 <> 0 then FreeLibrary(DLLHandle1); 444 442 {$ENDIF} -
trunk/Packages/Common/UDebugLog.pas
r396 r423 1 1 unit UDebugLog; 2 3 {$mode delphi}4 2 5 3 interface … … 44 42 45 43 procedure Register; 44 46 45 47 46 implementation -
trunk/Packages/Common/UDelay.pas
r396 r423 1 1 unit UDelay; 2 3 {$mode delphi}4 2 5 3 interface -
trunk/Packages/Common/UFindFile.pas
r396 r423 59 59 FilterAll = '*.*'; 60 60 {$ENDIF} 61 {$IFDEF LINUX}61 {$IFDEF UNIX} 62 62 FilterAll = '*'; 63 63 {$ENDIF} -
trunk/Packages/Common/UFormAbout.pas
r420 r423 1 1 unit UFormAbout; 2 3 {$mode delphi}4 2 5 3 interface -
trunk/Packages/Common/UGeometric.pas
r396 r423 1 1 unit UGeometric; 2 3 {$mode delphi}4 2 5 3 interface … … 26 24 function RectEnlarge(Rect: TRect; Value: Integer): TRect; 27 25 function ShiftRect(ARect: TRect; Delta: TPoint): TRect; 26 28 27 29 28 implementation -
trunk/Packages/Common/UJobProgressView.pas
r396 r423 1 1 unit UJobProgressView; 2 3 {$MODE Delphi}4 2 5 3 interface -
trunk/Packages/Common/ULanguages.pas
r416 r423 1 1 unit ULanguages; 2 3 {$mode delphi}{$H+}4 2 5 3 interface -
trunk/Packages/Common/ULastOpenedList.pas
r396 r423 1 1 unit ULastOpenedList; 2 3 {$mode delphi}4 2 5 3 interface -
trunk/Packages/Common/UListViewSort.pas
r420 r423 2 2 3 3 // Date: 2019-05-17 4 5 {$mode delphi}6 4 7 5 interface -
trunk/Packages/Common/UMemory.pas
r396 r423 1 1 unit UMemory; 2 3 {$mode Delphi}{$H+}4 2 5 3 interface … … 43 41 property Position: Integer read FPosition write FPosition; 44 42 end; 43 45 44 46 45 implementation -
trunk/Packages/Common/UMetaCanvas.pas
r420 r423 1 1 unit UMetaCanvas; 2 3 {$mode delphi}4 2 5 3 interface -
trunk/Packages/Common/UPersistentForm.pas
r396 r423 1 1 unit UPersistentForm; 2 3 {$mode delphi}4 2 5 3 // Date: 2020-11-26 -
trunk/Packages/Common/UPool.pas
r396 r423 1 1 unit UPool; 2 3 {$mode Delphi}{$H+}4 2 5 3 interface -
trunk/Packages/Common/UPrefixMultiplier.pas
r396 r423 2 2 3 3 // Date: 2010-06-01 4 5 {$mode delphi}6 4 7 5 interface -
trunk/Packages/Common/URegistry.pas
r396 r423 1 1 unit URegistry; 2 3 {$MODE delphi}4 2 5 3 interface … … 132 130 function TRegistryEx.OpenKey(const Key: string; CanCreate: Boolean): Boolean; 133 131 begin 134 {$IFDEF Linux}132 {$IFDEF UNIX} 135 133 //CloseKey; 136 134 {$ENDIF} -
trunk/Packages/Common/UResetableThread.pas
r396 r423 1 1 unit UResetableThread; 2 3 {$mode Delphi}{$H+}4 2 5 3 interface -
trunk/Packages/Common/UScaleDPI.pas
r420 r423 2 2 3 3 { See: http://wiki.lazarus.freepascal.org/High_DPI } 4 5 {$mode delphi}{$H+}6 4 7 5 interface … … 227 225 Temp[I] := TBitmap.Create; 228 226 Temp[I].SetSize(NewWidth, NewHeight); 229 {$IFDEF Linux}227 {$IFDEF UNIX} 230 228 Temp[I].PixelFormat := pf24bit; 231 229 {$ELSE} -
trunk/Packages/Common/USyncCounter.pas
r396 r423 1 1 unit USyncCounter; 2 3 {$mode delphi}4 2 5 3 interface … … 25 23 procedure Assign(Source: TSyncCounter); 26 24 end; 25 27 26 28 27 implementation -
trunk/Packages/Common/UThreading.pas
r420 r423 1 1 unit UThreading; 2 3 {$mode delphi}4 2 5 3 interface -
trunk/Packages/Common/UTranslator.pas
r418 r423 1 1 unit UTranslator; 2 3 {$mode delphi}{$H+}4 2 5 3 interface -
trunk/Packages/Common/UURI.pas
r396 r423 2 2 3 3 // Date: 2011-04-04 4 5 {$mode delphi}6 4 7 5 interface … … 84 82 property AsString: string read GetAsString write SetAsString; 85 83 end; 84 86 85 87 86 implementation -
trunk/Packages/Common/UXMLUtils.pas
r396 r423 1 1 unit UXMLUtils; 2 3 {$mode delphi}4 2 5 3 interface
Note:
See TracChangeset
for help on using the changeset viewer.