Subversion Repositories autosfx

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 daniel-mar 1
unit ExtrUnit;
2
(************************************************************************
3
 Copyright (C) 2009, 2010  by Russell J. Peters, Roger Aelbrecht,
4
      Eric W. Engler and Chris Vleghert.
5
 
6
   This file is part of TZipMaster Version 1.9.
7
 
8
    TZipMaster is free software: you can redistribute it and/or modify
9
    it under the terms of the GNU Lesser General Public License as published by
10
    the Free Software Foundation, either version 3 of the License, or
11
    (at your option) any later version.
12
 
13
    TZipMaster is distributed in the hope that it will be useful,
14
    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
    GNU Lesser General Public License for more details.
17
 
18
    You should have received a copy of the GNU Lesser General Public License
19
    along with TZipMaster.  If not, see <http://www.gnu.org/licenses/>.
20
 
21
    contact: problems@delphizip.org (include ZipMaster in the subject).
22
    updates: http://www.delphizip.org
23
    DelphiZip maillist subscribe at http://www.freelists.org/list/delphizip
24
************************************************************************)
25
 
26
 
27
{$INCLUDE '..\..\ZipVers19.inc'}
28
{$IFDEF VERD6up}
29
{$WARN UNIT_PLATFORM OFF}
30
{$WARN SYMBOL_PLATFORM OFF}
31
{$ENDIF}
32
 
33
 
34
interface
35
 
36
uses
37
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
38
  StdCtrls, ExtCtrls, FileCtrl;
39
 
40
type
41
  TExtract = class( TForm )
42
    Panel1:            TPanel;
43
    Panel2:            TPanel;
44
    Panel3:            TPanel;
45
    DirectoryListBox1: TDirectoryListBox;
46
    DriveComboBox1:    TDriveComboBox;
47
    OKBut:             TButton;
48
    CancelBut:         TButton;
49
    RadioGroup1:       TRadioGroup;
50
    RadioGroup2:       TRadioGroup;
51
 
52
    procedure OKButClick( Sender: TObject );
53
    procedure FormActivate( Sender: TObject );
54
    procedure CancelButClick( Sender: TObject );
55
  end;
56
 
57
var
58
  Extract: TExtract;
59
 
60
implementation
61
 
62
uses Main;
63
 
64
{$R *.DFM}
65
 
66
procedure TExtract.OKButClick( Sender: TObject );
67
begin
68
   Main.Canceled   := False;
69
   Main.ExtractDir := DirectoryListBox1.Directory;
70
   if RadioGroup1.ItemIndex = 0 then
71
      Main.ExpandDirs := False
72
   else
73
      Main.ExpandDirs := True;
74
   if RadioGroup2.ItemIndex = 0 then
75
      Main.Overwr     := False
76
   else
77
      Main.Overwr     := True;
78
   Main.AllFiles   := True;
79
   Close;
80
end;
81
 
82
procedure TExtract.CancelButClick( Sender: TObject );
83
begin
84
   Main.ExtractDir := '';
85
   Close;
86
end;
87
 
88
procedure TExtract.FormActivate( Sender: TObject );
89
begin
90
   Main.Canceled := True; { default }
91
end;
92
 
93
end.