diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-09-23 16:43:52 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-09-23 16:43:52 +0200 |
commit | 7c1b509760c2920a1d80d855bb68094001918624 (patch) | |
tree | 443217dcb0c744c122efd41a82ed25ce38460469 /src/corelib | |
parent | 303e68d5a351335a03807a8488af33371bd88458 (diff) | |
download | fpGUI-7c1b509760c2920a1d80d855bb68094001918624.tar.xz |
GDI: make code compilable again after X11 DND implementation.
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/gdi/fpg_gdi.pas | 33 | ||||
-rw-r--r-- | src/corelib/gdi/fpg_interface.pas | 2 |
2 files changed, 35 insertions, 0 deletions
diff --git a/src/corelib/gdi/fpg_gdi.pas b/src/corelib/gdi/fpg_gdi.pas index 9851ebb7..f877c3b5 100644 --- a/src/corelib/gdi/fpg_gdi.pas +++ b/src/corelib/gdi/fpg_gdi.pas @@ -168,6 +168,7 @@ type //procedure MoveToScreenCenter; override; procedure DoSetWindowTitle(const ATitle: string); override; procedure DoSetMouseCursor; override; + procedure DoEnableDrops(const AValue: boolean); override; property WinHandle: TfpgWinHandle read FWinHandle; public constructor Create(AOwner: TComponent); override; @@ -238,6 +239,19 @@ type end; + TfpgGDIMimeDataBase = class(TfpgMimeDataBase) + end; + + + TfpgGDIDrag = class(TfpgDragBase) + protected + FSource: TfpgGDIWindow; + function GetSource: TfpgGDIWindow; virtual; + public + function Execute(const ADropActions: TfpgDropActions; const ADefaultAction: TfpgDropAction=daCopy): TfpgDropAction; override; + end; + + implementation uses @@ -1611,6 +1625,11 @@ begin SetCursor(hc); end; +procedure TfpgGDIWindow.DoEnableDrops(const AValue: boolean); +begin + // TODO: still needs to be implemented +end; + constructor TfpgGDIWindow.Create(AOwner: TComponent); begin inherited Create(AOwner); @@ -2451,6 +2470,20 @@ begin inherited PopulateSpecialDirs(aDirectory); end; +{ TfpgGDIDrag } + +function TfpgGDIDrag.GetSource: TfpgGDIWindow; +begin + Result := FSource; +end; + +function TfpgGDIDrag.Execute(const ADropActions: TfpgDropActions; + const ADefaultAction: TfpgDropAction): TfpgDropAction; +begin + { TODO: this still needs to be implemented } + Result := daCopy; +end; + initialization wapplication := nil; MouseFocusedWH := 0; diff --git a/src/corelib/gdi/fpg_interface.pas b/src/corelib/gdi/fpg_interface.pas index c75aaa28..ef58e46d 100644 --- a/src/corelib/gdi/fpg_interface.pas +++ b/src/corelib/gdi/fpg_interface.pas @@ -33,6 +33,8 @@ type TfpgApplicationImpl = TfpgGDIApplication; TfpgClipboardImpl = TfpgGDIClipboard; TfpgFileListImpl = TfpgGDIFileList; + TfpgMimeDataImpl = TfpgGDIMimeDataBase; + TfpgDragImpl = TfpgGDIDrag; implementation |