mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-14 18:52:51 +02:00
LazUtils: Masks: make TWindowsMask.Quirks read/write.
This commit is contained in:
parent
dd4c515dc6
commit
1543c68c73
@ -257,6 +257,7 @@ type
|
||||
TWindowsMaskUTF8=class(TMask)
|
||||
private
|
||||
procedure SetWindowsMask(AValue: String);
|
||||
procedure SetWindowsQuirkAllowed(AValue: TWindowsQuirks);
|
||||
protected
|
||||
fWindowsQuirkAllowed: TWindowsQuirks;
|
||||
fWindowsQuirkInUse: TWindowsQuirks;
|
||||
@ -271,7 +272,7 @@ type
|
||||
function Matches(const aFileName: String): Boolean; override;
|
||||
public
|
||||
property Mask: String read fWindowsMask write SetWindowsMask;
|
||||
property Quirks: TWindowsQuirks read fWindowsQuirkAllowed;// write fWindowsQuirkAllowed;
|
||||
property Quirks: TWindowsQuirks read fWindowsQuirkAllowed write SetWindowsQuirkAllowed;
|
||||
end;
|
||||
|
||||
TWindowsMask = class(TWindowsMaskUTF8);
|
||||
@ -1154,6 +1155,13 @@ begin
|
||||
fMaskIsCompiled := False;
|
||||
end;
|
||||
|
||||
procedure TWindowsMaskUTF8.SetWindowsQuirkAllowed(AValue: TWindowsQuirks);
|
||||
begin
|
||||
if fWindowsQuirkAllowed = AValue then Exit;
|
||||
fWindowsQuirkAllowed := AValue;
|
||||
fMaskIsCompiled := False;
|
||||
end;
|
||||
|
||||
class procedure TWindowsMaskUTF8.SplitFileNameExtension(
|
||||
const aSourceFileName: String; out aFileName: String;
|
||||
out aExtension: String; aIsMask: Boolean);
|
||||
|
Loading…
Reference in New Issue
Block a user