summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-09-21 13:41:37 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-09-23 16:24:42 +0200
commita550dc02270e7c83710b7eefb7f282907d3ff48b (patch)
treef49a7757fe7e6c3204f23739d24138b15c97136b /src/corelib
parent2de0a19405347f240eb9b6294ea6d631a38da2c6 (diff)
downloadfpGUI-a550dc02270e7c83710b7eefb7f282907d3ff48b.tar.xz
Oops, forgot to commit the TfpgDragBase class from earlier.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/fpg_base.pas28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/corelib/fpg_base.pas b/src/corelib/fpg_base.pas
index 1e69a47e..ce9e3727 100644
--- a/src/corelib/fpg_base.pas
+++ b/src/corelib/fpg_base.pas
@@ -661,6 +661,19 @@ type
property HTML: TfpgString read GetHTML write SetHTML;
property FormatCount: integer read GetFormatCout;
end;
+
+ TfpgDragBase = class(TObject)
+ protected
+ FDragging: Boolean;
+ FMimeData: TfpgMimeDataBase;
+ public
+ constructor Create;
+ destructor Destroy; override;
+ function Execute(const ADropActions: TfpgDropActions; const ADefaultAction: TfpgDropAction = daCopy): TfpgDropAction; virtual; abstract;
+ end;
+
+
+
{ ******** Helper functions ******** }
{ Keyboard }
function KeycodeToText(AKey: Word; AShiftState: TShiftState): string;
@@ -2891,5 +2904,20 @@ begin
end;
+{ TfpgDragBase }
+
+constructor TfpgDragBase.Create;
+begin
+ inherited Create;
+ FDragging := False;
+end;
+
+destructor TfpgDragBase.Destroy;
+begin
+ FMimeData.Free;
+ inherited Destroy;
+end;
+
+
end.