home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- File: MainMn.h
- Description: Zip Manager sample application using The Xceed Zip Compression
- Library 4
- Copyright (c) 1995-1999 Xceed Software Inc.
- *******************************************************************************/
-
- #ifndef MainMnH
- #define MainMnH
-
- #include <vcl\Classes.hpp>
- #include <vcl\Controls.hpp>
- #include <vcl\StdCtrls.hpp>
- #include <vcl\Forms.hpp>
- #include <vcl\Menus.hpp>
- #include <vcl\ComCtrls.hpp>
- #include <vcl\ExtCtrls.hpp>
- #include <vcl\Buttons.hpp>
- #include <vcl\Dialogs.hpp>
- #include "XceedZipLib_TLB.h"
- #include <OleCtrls.hpp>
-
- //
- // TMainFormFm: Main form of the application
- //
- class TMainFormFm : public TForm
- {
- __published: // IDE-managed Components
- TMainMenu *MainMn;
- TMenuItem *FileMn;
- TMenuItem *FileNewMn;
- TMenuItem *FileOpenMn;
- TMenuItem *FileCloseMn;
- TMenuItem *N3;
- TMenuItem *FileTestMn;
- TMenuItem *FileFixMn;
- TMenuItem *FileDeleteMn;
- TMenuItem *N1;
- TMenuItem *FileExitMn;
- TMenuItem *EditMn;
- TMenuItem *EditAddMn;
- TMenuItem *EditDeleteMn;
- TMenuItem *EditExtractMn;
- TMenuItem *EditUpdateMn;
- TMenuItem *N4;
- TMenuItem *EditSelectAllMn;
- TMenuItem *OptionsMn;
- TMenuItem *Bestcompression;
- TMenuItem *Normalcompression;
- TMenuItem *Fastestcompression;
- TMenuItem *NoCompression;
- TMenuItem *N6;
- TMenuItem *MultidiskmodeMn;
- TMenuItem *N5;
- TMenuItem *OptionsUseTempFileMn;
- TMenuItem *HelpMn;
- TMenuItem *HelpAboutMn;
- THeaderControl *FilesHd;
- TListBox *FilesLb;
- TPanel *StatusPn;
- TBevel *Bevel1;
- TPanel *Panel1;
- TProgressBar *ProgressBar1;
- TPanel *Panel2;
- TSpeedButton *AbortSb;
- TLabel *StatusLb;
- TXceedZipProxy *MainXz;
- TSaveDialog *NewZipDg;
- TOpenDialog *OpenZipDg;
- TOpenDialog *AddFilesDg;
- TLabel *HintLb;
- TPanel *SpacePn;
-
- TMenuItem *N7;
- void __fastcall AbortSbClick(TObject *Sender);
- void __fastcall BestcompressionClick(TObject *Sender);
- void __fastcall EditAddMnClick(TObject *Sender);
- void __fastcall EditDeleteMnClick(TObject *Sender);
- void __fastcall EditExtractMnClick(TObject *Sender);
- void __fastcall EditMnClick(TObject *Sender);
- void __fastcall EditSelectAllMnClick(TObject *Sender);
- void __fastcall EditUpdateMnClick(TObject *Sender);
-
- void __fastcall FastestcompressionClick(TObject *Sender);
- void __fastcall FileMnClick(TObject *Sender);
- void __fastcall FileNewMnClick(TObject *Sender);
- void __fastcall FileCloseMnClick(TObject *Sender);
- void __fastcall FileDeleteMnClick(TObject *Sender);
- void __fastcall FileExitMnClick(TObject *Sender);
- void __fastcall FilesHdSectionResize(THeaderControl *HeaderControl, THeaderSection *Section);
- void __fastcall FilesLbDrawItem(TWinControl *Control, int Index, TRect &Rect, TOwnerDrawState State);
- void __fastcall FilesLbMeasureItem(TWinControl *Control, int Index, int &Height);
- void __fastcall FileOpenMnClick(TObject *Sender);
- void __fastcall FileTestMnClick(TObject *Sender);
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall HelpAboutMnClick(TObject *Sender);
- void __fastcall MultidiskmodeMnClick(TObject *Sender);
- void __fastcall NoCompressionClick(TObject *Sender);
- void __fastcall NormalcompressionClick(TObject *Sender);
- void __fastcall OptionsMnClick(TObject *Sender);
- void __fastcall OptionsUseTempFileMnClick(TObject *Sender);
-
-
-
-
-
- void __fastcall MainXzFileStatus(TObject *Sender, BSTR sFilename,
- long lSize, long lCompressedSize, long lBytesProcessed,
- short nBytesPercent, short nCompressionRatio,
- VARIANT_BOOL bFileCompleted);
-
- void __fastcall MainXzRemovingFile(TObject *Sender, BSTR sFilename,
- BSTR sComment, long lSize, long lCompressedSize,
- xcdFileAttributes xAttributes, long lCRC, DATE dtLastModified,
- DATE dtLastAccessed, DATE dtCreated,
- xcdCompressionMethod xMethod, VARIANT_BOOL bEncrypted);
-
- void __fastcall MainXzListingFile(TObject *Sender, BSTR sFilename,
- BSTR sComment, long lSize, long lCompressedSize,
- short nCompressionRatio, xcdFileAttributes xAttributes,
- long lCRC, DATE dtLastModified, DATE dtLastAccessed,
- DATE dtCreated, xcdCompressionMethod xMethod,
- VARIANT_BOOL bEncrypted, long lDiskNumber,
- VARIANT_BOOL bExcluded, xcdSkippingReason xReason);
- void __fastcall MainXzInsertDisk(TObject *Sender, long lDiskNumber,
- VARIANT_BOOL *bDiskInserted);
- void __fastcall MainXzReplacingFile(TObject *Sender, BSTR sFilename,
- BSTR sComment, long lSize, xcdFileAttributes xAttributes,
- DATE dtLastModified, DATE dtLastAccessed, DATE dtCreated,
- BSTR sOrigFilename, long lOrigSize,
- xcdFileAttributes xOrigAttributes, DATE dtOrigLastModified,
- DATE dtOrigLastAccessed, DATE dtOrigCreated,
- VARIANT_BOOL *bReplaceFile);
-
- void __fastcall MainXzSkippingFile(TObject *Sender, BSTR sFilename,
- BSTR sComment, BSTR sFilenameOnDisk, long lSize,
- long lCompressedSize, xcdFileAttributes xAttributes, long lCRC,
- DATE dtLastModified, DATE dtLastAccessed, DATE dtCreated,
- xcdCompressionMethod xMethod, VARIANT_BOOL bEncrypted,
- xcdSkippingReason xReason);
- void __fastcall MainXzGlobalStatus(TObject *Sender, long lFilesTotal,
- long lFilesProcessed, long lFilesSkipped, short nFilesPercent,
- long lBytesTotal, long lBytesProcessed, long lBytesSkipped,
- short nBytesPercent, long lBytesOutput, short nCompressionRatio);
- void __fastcall FileFixMnClick(TObject *Sender);
-
-
- private: // User declarations
- void EnableInterface(bool Enable);
- void LoadFileList();
- void FileFix(bool Agressive);
- void __fastcall StatusBarShowHint(TObject *Sender);
- void __fastcall SetSfxConfiguration ();
-
- public: // User declarations
- __fastcall TMainFormFm(TComponent* Owner);
- };
-
- //
- // External references
- //
- extern TMainFormFm *MainFormFm;
-
- #endif
-
-