mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 12:29:27 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			51 lines
		
	
	
		
			980 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			980 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
unit ShowDeletingFilesDlg;
 | 
						|
 | 
						|
{$mode objfpc}{$H+}
 | 
						|
 | 
						|
interface
 | 
						|
 | 
						|
uses
 | 
						|
  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs,
 | 
						|
  StdCtrls, ButtonPanel, LazarusIDEStrConsts, CheckLst;
 | 
						|
 | 
						|
type
 | 
						|
 | 
						|
  { TShowDeletingFilesDialog }
 | 
						|
 | 
						|
  TShowDeletingFilesDialog = class(TForm)
 | 
						|
    ButtonPanel: TButtonPanel;
 | 
						|
    UnCheckAll: TCheckBox;
 | 
						|
    FileList: TCheckListBox;
 | 
						|
    procedure FormCreate(Sender: TObject);
 | 
						|
    procedure UnCheckAllChange(Sender: TObject);
 | 
						|
  private
 | 
						|
    { private declarations }
 | 
						|
  public
 | 
						|
    { public declarations }
 | 
						|
  end; 
 | 
						|
 | 
						|
implementation
 | 
						|
 | 
						|
{$R *.lfm}
 | 
						|
 | 
						|
{ TShowDeletingFilesDialog }
 | 
						|
 | 
						|
procedure TShowDeletingFilesDialog.FormCreate(Sender: TObject);
 | 
						|
begin
 | 
						|
  Caption:=lisDeleteAllTheseFiles;
 | 
						|
  FileList.Clear;
 | 
						|
  UnCheckAll.Caption := 'Check/uncheck all';
 | 
						|
end;
 | 
						|
 | 
						|
procedure TShowDeletingFilesDialog.UnCheckAllChange(Sender: TObject);
 | 
						|
var
 | 
						|
  i: integer;
 | 
						|
begin
 | 
						|
  //check / uncheck all
 | 
						|
  for i := 0 to FileList.Count - 1 do
 | 
						|
    FileList.Checked[i] := UnCheckAll.Checked;
 | 
						|
end;
 | 
						|
 | 
						|
end.
 | 
						|
 |