|
@@ -97,6 +97,8 @@ type
|
|
function GetCurrentLayerKind: TLayerKind;
|
|
function GetCurrentLayerKind: TLayerKind;
|
|
function GetIsForeEditGradTexPoints: boolean; virtual;
|
|
function GetIsForeEditGradTexPoints: boolean; virtual;
|
|
function GetIsBackEditGradTexPoints: boolean; virtual;
|
|
function GetIsBackEditGradTexPoints: boolean; virtual;
|
|
|
|
+ function GetAllowedBackFillTypes: TVectorialFillTypes; virtual;
|
|
|
|
+ function GetAllowedForeFillTypes: TVectorialFillTypes; virtual;
|
|
public
|
|
public
|
|
ToolUpdateNeeded: boolean;
|
|
ToolUpdateNeeded: boolean;
|
|
Cursor: TCursor;
|
|
Cursor: TCursor;
|
|
@@ -135,6 +137,8 @@ type
|
|
property ForeUniversalBrush: TUniversalBrush read GetForeUniversalBrush;
|
|
property ForeUniversalBrush: TUniversalBrush read GetForeUniversalBrush;
|
|
property IsForeEditGradTexPoints: boolean read GetIsForeEditGradTexPoints;
|
|
property IsForeEditGradTexPoints: boolean read GetIsForeEditGradTexPoints;
|
|
property IsBackEditGradTexPoints: boolean read GetIsBackEditGradTexPoints;
|
|
property IsBackEditGradTexPoints: boolean read GetIsBackEditGradTexPoints;
|
|
|
|
+ property AllowedForeFillTypes: TVectorialFillTypes read GetAllowedForeFillTypes;
|
|
|
|
+ property AllowedBackFillTypes: TVectorialFillTypes read GetAllowedBackFillTypes;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TReadonlyTool }
|
|
{ TReadonlyTool }
|
|
@@ -245,6 +249,8 @@ type
|
|
|
|
|
|
procedure BackFillChange(ASender: TObject;
|
|
procedure BackFillChange(ASender: TObject;
|
|
var ADiff: TCustomVectorialFillDiff);
|
|
var ADiff: TCustomVectorialFillDiff);
|
|
|
|
+ function GetAllowedBackFillTypes: TVectorialFillTypes;
|
|
|
|
+ function GetAllowedForeFillTypes: TVectorialFillTypes;
|
|
function GetCursor: TCursor;
|
|
function GetCursor: TCursor;
|
|
function GetBackColor: TBGRAPixel;
|
|
function GetBackColor: TBGRAPixel;
|
|
function GetBrushAt(AIndex: integer): TLazPaintBrush;
|
|
function GetBrushAt(AIndex: integer): TLazPaintBrush;
|
|
@@ -461,7 +467,9 @@ type
|
|
property Cursor: TCursor read GetCursor;
|
|
property Cursor: TCursor read GetCursor;
|
|
|
|
|
|
property ForeFill: TVectorialFill read FForeFill;
|
|
property ForeFill: TVectorialFill read FForeFill;
|
|
|
|
+ property AllowedForeFillTypes: TVectorialFillTypes read GetAllowedForeFillTypes;
|
|
property BackFill: TVectorialFill read FBackFill;
|
|
property BackFill: TVectorialFill read FBackFill;
|
|
|
|
+ property AllowedBackFillTypes: TVectorialFillTypes read GetAllowedBackFillTypes;
|
|
property ForeColor: TBGRAPixel read GetForeColor write SetForeColor;
|
|
property ForeColor: TBGRAPixel read GetForeColor write SetForeColor;
|
|
property BackColor: TBGRAPixel read GetBackColor write SetBackColor;
|
|
property BackColor: TBGRAPixel read GetBackColor write SetBackColor;
|
|
property EraserMode: TEraserMode read FEraserMode write SetEraserMode;
|
|
property EraserMode: TEraserMode read FEraserMode write SetEraserMode;
|
|
@@ -680,6 +688,16 @@ begin
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+function TGenericTool.GetAllowedBackFillTypes: TVectorialFillTypes;
|
|
|
|
+begin
|
|
|
|
+ result := [vftSolid,vftGradient,vftTexture];
|
|
|
|
+end;
|
|
|
|
+
|
|
|
|
+function TGenericTool.GetAllowedForeFillTypes: TVectorialFillTypes;
|
|
|
|
+begin
|
|
|
|
+ result := [vftSolid,vftGradient,vftTexture];
|
|
|
|
+end;
|
|
|
|
+
|
|
function TGenericTool.GetIsBackEditGradTexPoints: boolean;
|
|
function TGenericTool.GetIsBackEditGradTexPoints: boolean;
|
|
begin
|
|
begin
|
|
result := false;
|
|
result := false;
|
|
@@ -1428,6 +1446,18 @@ begin
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+function TToolManager.GetAllowedBackFillTypes: TVectorialFillTypes;
|
|
|
|
+begin
|
|
|
|
+ if Assigned(CurrentTool) then result := currentTool.AllowedBackFillTypes
|
|
|
|
+ else result := [vftSolid,vftGradient,vftTexture];
|
|
|
|
+end;
|
|
|
|
+
|
|
|
|
+function TToolManager.GetAllowedForeFillTypes: TVectorialFillTypes;
|
|
|
|
+begin
|
|
|
|
+ if Assigned(CurrentTool) then result := currentTool.AllowedForeFillTypes
|
|
|
|
+ else result := [vftSolid,vftGradient,vftTexture];
|
|
|
|
+end;
|
|
|
|
+
|
|
function TToolManager.GetForeColor: TBGRAPixel;
|
|
function TToolManager.GetForeColor: TBGRAPixel;
|
|
begin
|
|
begin
|
|
if BlackAndWhite then
|
|
if BlackAndWhite then
|