mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
ADD: GetCustomIcon() in FileSource (overload, by path, return TBitmap)
This commit is contained in:
parent
2aa0cc9212
commit
e464e57171
1 changed files with 13 additions and 2 deletions
|
|
@ -181,7 +181,10 @@ type
|
|||
function GetRootDir(sPath : String): String; overload;
|
||||
function GetRootDir: String; overload;
|
||||
function GetPathType(sPath : String): TPathType;
|
||||
function GetCustomIcon(aFile: TFile; AIconSize: Integer; out AIcon: TBitmap): IntPtr;
|
||||
|
||||
function GetCustomIcon(aFile: TFile; AIconSize: Integer; out AIcon: TBitmap): IntPtr; overload;
|
||||
function GetCustomIcon(const path: String; const iconSize: Integer): TBitmap; overload;
|
||||
|
||||
function GetFreeSpace(Path: String; out FreeSize, TotalSize : Int64) : Boolean;
|
||||
function GetRealPath(const path: String): String;
|
||||
function GetLocalName(var aFile: TFile): Boolean;
|
||||
|
|
@ -383,7 +386,10 @@ type
|
|||
|
||||
function CreateDirectory(const Path: String): Boolean; virtual;
|
||||
function FileSystemEntryExists(const Path: String): Boolean; virtual;
|
||||
function GetCustomIcon(aFile: TFile; AIconSize: Integer; out AIcon: TBitmap): PtrInt; virtual;
|
||||
|
||||
function GetCustomIcon(aFile: TFile; AIconSize: Integer; out AIcon: TBitmap): PtrInt; virtual; overload;
|
||||
function GetCustomIcon(const path: String; const iconSize: Integer): TBitmap; virtual; overload;
|
||||
|
||||
function GetFreeSpace(Path: String; out FreeSize, TotalSize : Int64) : Boolean; virtual;
|
||||
function QueryContextMenu(AFiles: TFiles; var AMenu: TPopupMenu): Boolean; virtual;
|
||||
function GetDefaultView(out DefaultView: TFileSourceFields): Boolean; virtual;
|
||||
|
|
@ -712,6 +718,11 @@ begin
|
|||
Result:= -1;
|
||||
end;
|
||||
|
||||
function TFileSource.GetCustomIcon(const path: String; const iconSize: Integer): TBitmap;
|
||||
begin
|
||||
Result:= nil;
|
||||
end;
|
||||
|
||||
function TFileSource.GetFreeSpace(Path: String; out FreeSize, TotalSize : Int64) : Boolean;
|
||||
begin
|
||||
Result := False; // not supported by default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue