unit fr_TilesCopy; interface uses SysUtils, Classes, Controls, Forms, StdCtrls, CheckLst, ExtCtrls, Types, Messages, Windows, i_MapTypes, i_ActiveMapsConfig, i_MapTypeGUIConfigList, u_CommonFormAndFrameParents; type TfrTilesCopy = class(TFrame) pnlCenter: TPanel; pnlRight: TPanel; lblZooms: TLabel; chkAllZooms: TCheckBox; chklstZooms: TCheckListBox; pnlMain: TPanel; lblNamesType: TLabel; cbbNamesType: TComboBox; pnlTop: TPanel; lblTargetPath: TLabel; edtTargetPath: TEdit; btnSelectTargetPath: TButton; chkDeleteSource: TCheckBox; chkReplaseTarget: TCheckBox; chkAllMaps: TCheckBox; chklstMaps: TCheckListBox; Panel1: TPanel; procedure btnSelectTargetPathClick(Sender: TObject); procedure chkAllZoomsClick(Sender: TObject); procedure chkAllMapsClick(Sender: TObject); procedure chklstZoomsDblClick(Sender: TObject); private FMainMapsConfig: IMainMapsConfig; FFullMapsSet: IMapTypeSet; FGUIConfigList: IMapTypeGUIConfigList; public constructor Create( AOwner : TComponent; AMainMapsConfig: IMainMapsConfig; AFullMapsSet: IMapTypeSet; AGUIConfigList: IMapTypeGUIConfigList ); reintroduce; procedure Init; procedure RefreshTranslation; override; protected FOldListBoxProc: TWndMethod; procedure AdvListBoxProc(var Message: TMessage); end; implementation uses {$WARN UNIT_PLATFORM OFF} FileCtrl, {$WARN UNIT_PLATFORM ON} i_GUIDListStatic, u_MapType; {$R *.dfm} procedure TfrTilesCopy.btnSelectTargetPathClick(Sender: TObject); var TempPath: string; begin if SelectDirectory('', '', TempPath) then begin edtTargetPath.Text := IncludeTrailingPathDelimiter(TempPath); end; end; procedure TfrTilesCopy.chkAllMapsClick(Sender: TObject); var i: byte; begin for i:=0 to chklstMaps.Count-1 do begin chklstMaps.Checked[i] := TCheckBox(sender).Checked; end; end; procedure TfrTilesCopy.chkAllZoomsClick(Sender: TObject); var i: byte; begin if chkAllZooms.state<>cbGrayed then for i:=0 to chklstZooms.Count-1 do begin chklstZooms.Checked[i] := TCheckBox(sender).Checked; end; end; procedure TfrTilesCopy.chklstZoomsDblClick(Sender: TObject); var i: Integer; begin for I := 0 to chklstZooms.ItemIndex do chklstZooms.Checked[i]:=true; if chklstZooms.ItemIndex= (VIntegralHeight + VRect.Top)) then VProc := False; end; end; if VProc then FOldListBoxProc(Message); end; end.