2009-08-28 18:19:25 -04:00
|
|
|
unit Client;
|
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
2009-09-12 22:18:35 -04:00
|
|
|
Classes, SysUtils, MufasaTypes, Window, Input, Files, Finder,Bitmaps;
|
2009-08-28 18:19:25 -04:00
|
|
|
|
|
|
|
type
|
|
|
|
TClient = class(TObject)
|
|
|
|
constructor Create;
|
|
|
|
destructor Destroy; override;
|
|
|
|
|
|
|
|
public
|
|
|
|
MWindow: TMWindow;
|
|
|
|
MInput: TMInput;
|
2009-09-04 01:57:40 -04:00
|
|
|
MFiles: TMFiles;
|
2009-09-05 16:08:52 -04:00
|
|
|
MFinder: TMFinder;
|
2009-09-12 22:18:35 -04:00
|
|
|
MBitmaps : TMBitmaps;
|
2009-08-28 18:19:25 -04:00
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
// Possibly pass arguments to a default window.
|
|
|
|
constructor TClient.Create;
|
|
|
|
begin
|
|
|
|
inherited Create;
|
|
|
|
|
2009-09-04 14:20:45 -04:00
|
|
|
MWindow := TMWindow.Create(Self);
|
2009-08-28 18:19:25 -04:00
|
|
|
MInput := TMInput.Create(Self);
|
2009-09-04 01:57:40 -04:00
|
|
|
MFiles := TMFiles.Create;
|
2009-09-05 16:08:52 -04:00
|
|
|
MFinder := TMFinder.Create(Self);
|
2009-09-12 22:18:35 -04:00
|
|
|
MBitmaps := TMBitmaps.Create(self);
|
2009-08-28 18:19:25 -04:00
|
|
|
end;
|
|
|
|
|
|
|
|
destructor TClient.Destroy;
|
|
|
|
begin
|
2009-09-12 22:18:35 -04:00
|
|
|
MBitmaps.Free;
|
2009-09-12 14:50:10 -04:00
|
|
|
MFinder.Free;
|
|
|
|
MFiles.Free;
|
|
|
|
MInput.Free;
|
|
|
|
MWindow.Free;
|
2009-09-04 01:57:40 -04:00
|
|
|
|
2009-08-28 18:19:25 -04:00
|
|
|
|
|
|
|
inherited;
|
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|
|
|
|
|