248 lines
11 KiB
ObjectPascal
248 lines
11 KiB
ObjectPascal
(* ***** BEGIN LICENSE BLOCK *****
|
||
* Version: MPL 1.1
|
||
*
|
||
* The contents of this file are subject to the Mozilla Public License Version
|
||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||
* the License. You may obtain a copy of the License at
|
||
* http://www.mozilla.org/MPL/
|
||
*
|
||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||
* for the specific language governing rights and limitations under the
|
||
* License.
|
||
*
|
||
* The Original Code is TurboPower Abbrevia
|
||
*
|
||
* The Initial Developer of the Original Code is
|
||
* TurboPower Software
|
||
*
|
||
* Portions created by the Initial Developer are Copyright (C) 1997-2002
|
||
* the Initial Developer. All Rights Reserved.
|
||
*
|
||
* Contributor(s):
|
||
*
|
||
* ***** END LICENSE BLOCK ***** *)
|
||
|
||
{*********************************************************}
|
||
{* ABBREVIA: AbRegVcl.pas *}
|
||
{*********************************************************}
|
||
{* ABBREVIA: Registrations (VCL) *}
|
||
{*********************************************************}
|
||
|
||
unit AbRegVcl;
|
||
|
||
{$I AbDefine.inc}
|
||
{$UNDEF UsingClx }
|
||
|
||
{$R AbReg.res}
|
||
|
||
interface
|
||
|
||
uses
|
||
Classes,
|
||
AbCBrows, AbCabExt, AbCabMak, AbCabKit, AbCView,
|
||
AbCompnd, AbHexVw, AbZBrows, AbUnzper, AbZipper, AbZipKit, AbZipOut,
|
||
AbView, AbComCtrls, AbZView, AbMeter, AbSelfEx, AbZipExt;
|
||
|
||
procedure Register;
|
||
|
||
implementation
|
||
|
||
uses
|
||
AbConst,
|
||
AbUtils,
|
||
AbPeDir,
|
||
AbPeFn,
|
||
AbPePass,
|
||
AbPeVer,
|
||
AbPeCol,
|
||
DesignIntf,
|
||
DesignEditors,
|
||
Graphics,
|
||
ToolsAPI,
|
||
SysUtils,
|
||
Windows;
|
||
|
||
procedure Register;
|
||
begin
|
||
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipBrowser, 'FileName',
|
||
TAbFileNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipper, 'FileName',
|
||
TAbFileNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbUnZipper, 'FileName',
|
||
TAbFileNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipKit, 'FileName',
|
||
TAbFileNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipOutline, 'FileName',
|
||
TAbFileNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipBrowser, 'LogFile',
|
||
TAbLogNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipper, 'LogFile',
|
||
TAbLogNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbUnZipper, 'LogFile',
|
||
TAbLogNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipKit, 'LogFile',
|
||
TAbLogNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipOutline, 'LogFile',
|
||
TAbLogNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbMakeSelfExe, 'SelfExe',
|
||
TAbExeNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbMakeSelfExe, 'StubExe',
|
||
TAbExeNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbMakeSelfExe, 'ZipFile',
|
||
TAbFileNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipBrowser, 'BaseDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipper, 'BaseDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbUnZipper, 'BaseDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipKit, 'BaseDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipOutline, 'BaseDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipBrowser, 'TempDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipper, 'TempDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbUnZipper, 'TempDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipKit, 'TempDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipOutline, 'TempDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipBrowser, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipper, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbUnZipper, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipKit, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipOutline, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbListView, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbTreeView, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipView, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbMeter, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbProgressBar, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbMakeSelfExe, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipBrowser, 'Password',
|
||
TAbPasswordProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipper, 'Password',
|
||
TAbPasswordProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbUnZipper, 'Password',
|
||
TAbPasswordProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipKit, 'Password',
|
||
TAbPasswordProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbZipOutline, 'Password',
|
||
TAbPasswordProperty );
|
||
RegisterPropertyEditor( TypeInfo( TAbColHeadings ), TAbZipView, 'Headings',
|
||
TAbColHeadingsProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabBrowser, 'FileName',
|
||
TAbCabNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbMakeCab, 'FileName',
|
||
TAbCabNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabExtractor, 'FileName',
|
||
TAbCabNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabKit, 'FileName',
|
||
TAbCabNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabBrowser, 'BaseDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbMakeCab, 'BaseDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabExtractor, 'BaseDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabKit, 'BaseDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabBrowser, 'LogFile',
|
||
TAbLogNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbMakeCab, 'LogFile',
|
||
TAbLogNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabExtractor, 'LogFile',
|
||
TAbLogNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabKit, 'LogFile',
|
||
TAbLogNameProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabBrowser, 'TempDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbMakeCab, 'TempDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabExtractor, 'TempDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabKit, 'TempDirectory',
|
||
TAbDirectoryProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabBrowser, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbMakeCab, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabExtractor, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabKit, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( string ), TAbCabView, 'Version',
|
||
TAbVersionProperty );
|
||
RegisterPropertyEditor( TypeInfo( TAbColHeadings ), TAbCabView, 'Headings',
|
||
TAbColHeadingsProperty );
|
||
|
||
RegisterComponents( 'Abbrevia',
|
||
[ TAbZipBrowser,
|
||
TAbUnzipper,
|
||
TAbZipper,
|
||
TAbZipKit,
|
||
TAbZipView,
|
||
TAbZipOutline,
|
||
TAbTreeView,
|
||
TAbListView,
|
||
TAbCabBrowser,
|
||
TAbCabExtractor,
|
||
TAbMakeCab,
|
||
TAbCabKit,
|
||
TAbCabView,
|
||
TAbProgressBar,
|
||
TAbMeter,
|
||
TAbMakeSelfExe ]);
|
||
end;
|
||
|
||
{$IF DECLARED(IOTAAboutBoxServices)}
|
||
var
|
||
AboutBoxIndex: Integer = -1;
|
||
|
||
procedure RegisterAboutBox;
|
||
begin
|
||
SplashScreenServices.AddPluginBitmap(
|
||
'Abbrevia: Advanced data compression toolkit, v' + AbVersionS,
|
||
LoadBitmap(HInstance, 'SPLASH'));
|
||
AboutBoxIndex := (BorlandIDEServices as IOTAAboutBoxServices).AddPluginInfo(
|
||
'Abbrevia ' + AbVersionS,
|
||
'Abbrevia: Advanced data compression toolkit, v' + AbVersionS + sLineBreak +
|
||
'http://tpabbrevia.sourceforge.net/' + sLineBreak +
|
||
sLineBreak +
|
||
'Copyright (c) 1997-2011 Abbrevia development team' + sLineBreak +
|
||
'Covered under the Mozilla Public License (MPL) v1.1' + sLineBreak +
|
||
'Abbrevia includes source code from bzip2, the LZMA SDK,' + sLineBreak +
|
||
'Dag <20>gren''s version of PPMd, and the WavPack SDK.',
|
||
LoadBitmap(HInstance, 'SPLASH'));
|
||
end;
|
||
|
||
procedure UnregisterAboutBox;
|
||
begin
|
||
if AboutBoxIndex <> -1 then
|
||
(BorlandIDEServices as IOTAAboutBoxServices).RemovePluginInfo(AboutBoxIndex);
|
||
end;
|
||
|
||
initialization
|
||
RegisterAboutBox;
|
||
|
||
finalization
|
||
UnRegisterAboutBox;
|
||
{$IFEND}
|
||
|
||
end.
|