lazarus/ide/showdeletingfilesdlg.pas
paul 9622c8cd82 ide: convert forms to use fpc resources
git-svn-id: trunk@23458 -
2010-01-15 02:06:37 +00:00

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.