⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abzipout.inc

📁 Lazarus is a free and open source development tool for the FreePascal Compiler. The purpose of the p
💻 INC
📖 第 1 页 / 共 5 页
字号:
procedure TAbCustomZipOutline.DoClick(Sender : TObject);begin  if Assigned(FOnClick) then    FOnClick(Self);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoCollapse(Sender: TObject; Node: TTreeNode);begin  if Assigned(FOnCollapse) then    FOnCollapse(Self, Node);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoConfirmProcessItem(Sender : TObject;                                              Item : TAbArchiveItem;                                              ProcessType : TAbProcessType;                                              var Confirm : Boolean);begin  Confirm := True;  if Assigned(FItemProgressMeter) then    FItemProgressMeter.Reset;  if Assigned(FOnConfirmProcessItem) then    FOnConfirmProcessItem(Self, Item, ProcessType, Confirm);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoConfirmOverwrite(var Name : string;                                            var Confirm : Boolean);begin  Confirm := True;  if Assigned(FOnConfirmOverwrite) then    FOnConfirmOverwrite(Name, Confirm);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoConfirmSave(Sender : TObject;                                       var Confirm : Boolean);begin  Confirm := True;  if Assigned(FOnConfirmSave) then    FOnConfirmSave(Self, Confirm);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoDblClick(Sender : TObject);begin  if Assigned(FOnDblClick) then    FOnDblClick(Self);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoDragDrop(Sender, Source: TObject; X, Y: Integer);begin  if Assigned(FOnDragDrop) then    FOnDragDrop(Self, Source, X, Y);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoDragOver(Sender, Source: TObject; X, Y: Integer;                                    State: TDragState; var Accept: Boolean);begin  Accept := False;  if Assigned(FOnDragOver) then    FOnDragOver(Self, Source, X, Y, State, Accept);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoOnEndDrag(Sender, Target: TObject; X, Y: Integer);begin  if Assigned(FOnEndDrag) then    FOnEndDrag(Self, Target, X, Y);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoOnEnter(Sender : TObject);begin  if Assigned(FOnEnter) then    FOnEnter(Self);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoOnExit(Sender : TObject);begin  if Assigned(FOnExit) then    FOnExit(Self);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoExpand(Sender: TObject; Node : TTreeNode);begin  if Assigned(FOnExpand) then    FOnExpand(Self, Node);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoKeyDown(Sender : TObject; var Key: Word;                                   Shift: TShiftState);begin  if Assigned(FOnKeyDown) then    FOnKeyDown(Self, Key, Shift);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoKeyPress(Sender : TObject; var Key: Char);begin  if Assigned(FOnKeyPress) then    FOnKeyPress(Self, Key);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoKeyUp(Sender : TObject; var Key: Word;                                 Shift: TShiftState);begin  if Assigned(FOnKeyUp) then    FOnKeyUp(Self, Key, Shift);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoLoad(Sender : TObject);begin  if Assigned(FOnLoad) then    FOnLoad(Self);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoMouseDown(Sender : TObject; Button: TMouseButton;                                     Shift: TShiftState;                                     X, Y : Integer);begin  if Assigned(FOnMouseDown) then    FOnMouseDown(Self, Button, Shift, X, Y);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoMouseMove(Sender : TObject;                                     Shift: TShiftState; X, Y: Integer);begin  if Assigned(FOnMouseMove) then    FOnMouseMove(Self, Shift, X, Y);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoMouseUp(Sender : TObject;                                   Button: TMouseButton; Shift: TShiftState;                                   X, Y: Integer);begin  if Assigned(FOnMouseUp) then    FOnMouseUp(Self, Button, Shift, X, Y);end;{ -------------------------------------------------------------------------- }{$IFDEF NeedMouseWheel}                                                procedure TAbCustomZipOutline.DoMouseWheel(Sender : TObject; Shift : TShiftState;                        Delta, XPos, YPos : Word);begin  if Assigned(FOnMouseWheel) then    FOnMouseWheel(Self, Shift, Delta, XPos, YPos);end;{$ENDIF}{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoNeedPassword(Sender : TObject;                                        var NewPassword : string);begin  if Assigned(FOnNeedPassword) then begin    FOnNeedPassword(Sender, NewPassword);    Password := NewPassword;  end;end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoSave(Sender : TObject);begin  if Assigned(FOnSave) then    FOnSave(Self);end;{ -------------------------------------------------------------------------- }{$IFDEF WIN32}procedure TAbCustomZipOutline.DoOnStartDrag(Sender: TObject;                                       var DragObject: TDragObject);begin  if Assigned(FOnStartDrag) then    FOnStartDrag(Self, DragObject);end;{$ENDIF}{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.DoWindowsDrop(Sender : TObject;                                       FileName : string);begin  if csDesigning in ComponentState then    Exit;  if csLoading in ComponentState then    Exit;  if Assigned(FOnWindowsDrop) then    FOnWindowsDrop(Self, FileName);end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.ExtractAt(Index : Integer; const NewName : string);  {extract a file from the archive that match the index}begin  if Assigned(FArchive) then    FArchive.ExtractAt(Index, NewName)  else    raise EAbNoArchive.Create;end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.ExtractFiles(const FileMask : string);  {extract all files from the archive that match the mask}begin  if Assigned(FArchive) then    FArchive.ExtractFiles(FileMask)  else    raise EAbNoArchive.Create;end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.ExtractFilesEx(const FileMask, ExclusionMask : string);  {extract files that match FileMask except those matching ExclusionMask}begin  if Assigned(FArchive) then    FArchive.ExtractFilesEx(FileMask, ExclusionMask)  else    raise EAbNoArchive.Create;end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.ExtractTaggedItems;  {extract all tagged items from the archive}begin  if Assigned(FArchive) then    FArchive.ExtractTaggedItems  else    raise EAbNoArchive.Create;end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.ExtractToStream(const aFileName : string;                                              ToStream : TStream);begin  if Assigned(FArchive) then    FArchive.ExtractToStream(aFileName, ToStream)  else    raise EAbNoArchive.Create;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.FindFile(const aFileName : string) : Integer;begin  if Assigned(FArchive) then    Result := FArchive.FindFile(aFileName)  else    raise EAbNoArchive.Create;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.FindItem(aItem : TAbArchiveItem) : Integer;begin  if Assigned(FArchive) then    Result := FArchive.FindItem(aItem)  else    Result := -1;end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.FreshenFiles(const FileMask : string);  {freshen all items that match the file mask}begin  if Assigned(FArchive) then    FArchive.FreshenFiles(FileMask)  else    raise EAbNoArchive.Create;  DoChange;end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.FreshenFilesEx(const FileMask, ExclusionMask : string);  {freshen all items matching FileMask except those matching ExclusionMask}begin  if Assigned(FArchive) then    FArchive.FreshenFilesEx(FileMask, ExclusionMask)  else    raise EAbNoArchive.Create;  DoChange;end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.FreshenTaggedItems;  {freshen all tagged items}begin  if Assigned(FArchive) then    FArchive.FreshenTaggedItems  else    raise EAbNoArchive.Create;  DoChange;end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.FullCollapse;begin  FOutline.FullCollapse;end;{ -------------------------------------------------------------------------- }procedure TAbCustomZipOutline.FullExpand;begin  FOutline.FullExpand;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetBorderStyle : TBorderStyle;begin  Result := FOutline.BorderStyle;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetCount : Integer;begin  if Assigned(FArchive) then    Result := FArchive.Count  else    Result := 0;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetCursor : TCursor;begin  Result := FOutline.Cursor;end;{ -------------------------------------------------------------------------- }{$IFNDEF UsingCLX}function TAbCustomZipOutline.GetDragCursor : TCursor;begin  Result := FOutline.DragCursor;end;{$ENDIF}{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetDragMode : TDragMode;begin  Result := FOutline.DragMode;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetItem(Index : Integer) : TAbZipItem;begin  if Assigned(FArchive) then    Result := TAbZipItem(FArchive.ItemList[Index])  else    Result := nil;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetPictureDirectory : TBitmap;begin  Result := FOutline.zdPictureDirectory;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetPictureFile : TBitmap;begin  Result := FOutline.zdPictureFile;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetPictureZipAttribute: TBitmap;begin  Result := FOutline.zdPictureZipAttribute;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetPictureDirectorySelected : TBitmap;begin  Result := FOutline.zdPictureDirectorySelected;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetPictureFileSelected : TBitmap;begin  Result := FOutline.zdPictureFileSelected;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetPictureZipAttributeSelected: TBitmap;begin  Result := FOutline.zdPictureZipAttributeSelected;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetPictureHeight: Integer;begin  Result := FOutline.FBitMapHeight;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetPictureWidth: Integer;begin  Result := FOutline.FBitMapWidth;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetSelectedItem : LongInt;begin  Result := FOutline.Selected.AbsoluteIndex;end;{ -------------------------------------------------------------------------- }function TAbCustomZipOutline.GetSelectedZipItem : TAbZipItem;begin  {returns nil if the currently selected item of the outl

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -