mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-10 09:49:27 +02:00
* Moved TEventType from eventlog.pp tot sysutils
* Added empty TCustomApplication.Log method git-svn-id: trunk@14960 -
This commit is contained in:
parent
f8e6a86e32
commit
151fab0548
@ -63,6 +63,7 @@ Type
|
||||
Function CheckOptions(Const ShortOptions : String; Const LongOpts : String) : String;
|
||||
Procedure GetEnvironmentList(List : TStrings;NamesOnly : Boolean);
|
||||
Procedure GetEnvironmentList(List : TStrings);
|
||||
Procedure Log(EventType : TEventType; Msg : String); virtual;
|
||||
// Delphi properties
|
||||
property ExeName: string read GetExeName;
|
||||
property HelpFile: string read FHelpFile write FHelpFile;
|
||||
@ -222,6 +223,12 @@ begin
|
||||
// Do nothing. Override in descendent classes.
|
||||
end;
|
||||
|
||||
Procedure TCustomApplication.Log(EventType : TEventType; Msg : String);
|
||||
|
||||
begin
|
||||
// Do nothing. Override in descendent classes.
|
||||
end;
|
||||
|
||||
constructor TCustomApplication.Create(AOwner: TComponent);
|
||||
begin
|
||||
inherited Create(AOwner);
|
||||
|
@ -23,7 +23,6 @@ uses SysUtils,Classes;
|
||||
|
||||
Type
|
||||
TEventLog = Class;
|
||||
TEventType = (etCustom,etInfo,etWarning,etError,etDebug);
|
||||
TLogType = (ltSystem,ltFile);
|
||||
TLogCodeEvent = Procedure (Sender : TObject; Var Code : DWord) of Object;
|
||||
TLogCategoryEvent = Procedure (Sender : TObject; Var Code : Word) of Object;
|
||||
|
@ -52,6 +52,9 @@ Type
|
||||
TGetTempDirEvent = Function (Global : Boolean) : String;
|
||||
TGetTempFileEvent = Function (Const Dir,Prefix : String) : String;
|
||||
|
||||
Type
|
||||
TEventType = (etCustom,etInfo,etWarning,etError,etDebug);
|
||||
|
||||
Var
|
||||
OnGetVendorName : TGetVendorNameEvent;
|
||||
OnGetApplicationName : TGetAppNameEvent;
|
||||
|
Loading…
Reference in New Issue
Block a user