2007-12-07 15:33:00 +00:00
|
|
|
unit UnSwReg;
|
|
|
|
|
2010-02-16 12:39:29 +00:00
|
|
|
{$I BaseSwDefines.inc}
|
|
|
|
|
2007-12-07 15:33:00 +00:00
|
|
|
interface
|
|
|
|
implementation
|
|
|
|
uses
|
|
|
|
SysUtils,
|
|
|
|
|
|
|
|
CmpSwClient,
|
2010-02-16 12:39:29 +00:00
|
|
|
ProjSwClient,
|
2007-12-07 15:33:00 +00:00
|
|
|
UnSwClient;
|
|
|
|
|
|
|
|
var
|
|
|
|
GComponentSwitcher: TComponentSwitcherHook;
|
|
|
|
GUnitSwitcher: TUnitSwitcherHook;
|
2010-02-16 12:39:29 +00:00
|
|
|
GProjectSwitcher: TProjectSwitcherHook;
|
2007-12-07 15:33:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
initialization
|
2010-02-16 12:39:29 +00:00
|
|
|
GComponentSwitcher := TComponentSwitcherHook.Create;
|
|
|
|
GUnitSwitcher := TUnitSwitcherHook.Create;
|
|
|
|
|
|
|
|
{$IFNDEF DELPHI7ORLOWER}
|
|
|
|
GProjectSwitcher := TProjectSwitcherHook.Create;
|
|
|
|
{$ENDIF}
|
2007-12-07 15:33:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
finalization
|
2010-02-16 12:39:29 +00:00
|
|
|
FreeAndNil(GProjectSwitcher);
|
2007-12-07 15:33:00 +00:00
|
|
|
FreeAndNil(GUnitSwitcher);
|
|
|
|
FreeAndNil(GComponentSwitcher);
|
|
|
|
|
|
|
|
end.
|
|
|
|
|