2
0

factions.inc 732 B

123456789101112131415161718192021222324252627282930313233
  1. Procedure DoProperties(widget : pGtkWidget ; Window : PMainWindow); cdecl;
  2. Var i : longint;
  3. S : string;
  4. Dlg : PFilePropertiesDialog;
  5. begin
  6. With Window^ do
  7. S:=AddTrailingSeparator(FDir)+GetFileFirstSelection(FileList);
  8. Dlg:=NewFilePropertiesDialog(S);
  9. ShowFilePropertiesDialog(Dlg);
  10. end;
  11. Procedure DeleteFile(Widget : PGtkWidget; Window : PMainWindow); cdecl;
  12. Var i : longint;
  13. S : TStringList;
  14. begin
  15. S:=TStringList.Create;
  16. Try
  17. GetFileSelection(Window^.FileList,S);
  18. For I:=0 to S.Count-1 do
  19. begin
  20. For I:=0 to S.Count-1 do
  21. SysUtils.DeleteFile(Window^.FDir+S[i]);
  22. end;
  23. Finally
  24. If S.Count>0 then
  25. RefreshFileView(Window);
  26. S.Free;
  27. end;
  28. end;