mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-06 07:12:36 +02:00
33 lines
732 B
PHP
33 lines
732 B
PHP
Procedure DoProperties(widget : pGtkWidget ; Window : PMainWindow); cdecl;
|
|
|
|
Var i : longint;
|
|
S : string;
|
|
Dlg : PFilePropertiesDialog;
|
|
|
|
begin
|
|
With Window^ do
|
|
S:=AddTrailingSeparator(FDir)+GetFileFirstSelection(FileList);
|
|
Dlg:=NewFilePropertiesDialog(S);
|
|
ShowFilePropertiesDialog(Dlg);
|
|
end;
|
|
|
|
Procedure DeleteFile(Widget : PGtkWidget; Window : PMainWindow); cdecl;
|
|
|
|
Var i : longint;
|
|
S : TStringList;
|
|
|
|
begin
|
|
S:=TStringList.Create;
|
|
Try
|
|
GetFileSelection(Window^.FileList,S);
|
|
For I:=0 to S.Count-1 do
|
|
begin
|
|
For I:=0 to S.Count-1 do
|
|
SysUtils.DeleteFile(Window^.FDir+S[i]);
|
|
end;
|
|
Finally
|
|
If S.Count>0 then
|
|
RefreshFileView(Window);
|
|
S.Free;
|
|
end;
|
|
end; |