mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-29 22:12:44 +02:00
Make interfaces.pp consistent across the widget sets. CAW
git-svn-id: trunk@195 -
This commit is contained in:
parent
2adcf2a40f
commit
e290c25646
@ -24,55 +24,21 @@ unit interfaces;
|
||||
{$mode objfpc}
|
||||
|
||||
interface
|
||||
{$DEFINE WIN}
|
||||
{ $DEFINE QT}
|
||||
|
||||
{ $DEFINE GTK}
|
||||
|
||||
{$ifdef WIN}
|
||||
|
||||
uses InterfaceBase, Win32Int;
|
||||
|
||||
type
|
||||
|
||||
TInterfaceObject = class(TWin32Object);
|
||||
|
||||
{$endif}
|
||||
|
||||
{$ifdef GTK}
|
||||
|
||||
uses InterfaceBase, gtkint;
|
||||
|
||||
type
|
||||
|
||||
TInterfaceObject = class(TgtkObject);
|
||||
|
||||
{$endif}
|
||||
|
||||
{$ifdef QT}
|
||||
|
||||
uses InterfaceBase, messages,qtint;
|
||||
|
||||
type
|
||||
TInterfaceObject = class(TQTObject);
|
||||
|
||||
{$endif}
|
||||
uses
|
||||
InterfaceBase;
|
||||
|
||||
var
|
||||
InterfaceObject : TInterfaceBase;
|
||||
|
||||
|
||||
implementation
|
||||
|
||||
|
||||
procedure Interface_Init;
|
||||
begin
|
||||
InterfaceObject.Init;
|
||||
end;
|
||||
uses
|
||||
Win32Int;
|
||||
|
||||
initialization
|
||||
|
||||
InterfaceObject := TInterfaceObject.Create;
|
||||
InterfaceObject := TWin32Object.Create;
|
||||
|
||||
finalization
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user