|
| 1 | +{******************************************************************************} |
| 2 | +{* *} |
| 3 | +{* DDevExtensions *} |
| 4 | +{* *} |
| 5 | +{* (C) 2006-2011 Andreas Hausladen *} |
| 6 | +{* *} |
| 7 | +{******************************************************************************} |
| 8 | + |
| 9 | +library DDevExtensions; |
| 10 | + |
| 11 | +{$WEAKLINKRTTI ON} |
| 12 | +{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])} |
| 13 | + |
| 14 | +{$LIBSUFFIX 'D110'} |
| 15 | + |
| 16 | +{$I ..\Source\DelphiExtension.inc} |
| 17 | + |
| 18 | +uses |
| 19 | + Windows, |
| 20 | + SysUtils, |
| 21 | + Classes, |
| 22 | + Forms, |
| 23 | + Graphics, |
| 24 | + StdCtrls, |
| 25 | + ExtCtrls, |
| 26 | + ToolsAPI, |
| 27 | + Dialogs, |
| 28 | + Main in '..\Source\Main.pas', |
| 29 | + AppConsts in '..\Source\AppConsts.pas', |
| 30 | + Splash in '..\Source\Splash.pas', |
| 31 | + ComponentManager in '..\Source\ComponentManager.pas', |
| 32 | + NativeProgressForm in '..\Source\CompileProgress\NativeProgressForm.pas', |
| 33 | + CompileProgress in '..\Source\CompileProgress\CompileProgress.pas', |
| 34 | + FrmProjectSettingsSetVersioninfo in '..\Source\ProjectSettings\FrmProjectSettingsSetVersioninfo.pas' {FormProjectSettingsSetVersioninfo}, |
| 35 | + IDEMenuHandler in '..\Source\IDEMenuHandler\IDEMenuHandler.pas', |
| 36 | + DtmImages in '..\Source\DtmImages.pas' {DataModuleImages: TDataModule}, |
| 37 | + FrmeOptionPageCompilerProgress in '..\Source\CompileProgress\FrmeOptionPageCompilerProgress.pas' {FrameOptionPageCompilerProgress: TFrame}, |
| 38 | + CtrlUtils in '..\Source\CtrlUtils.pas', |
| 39 | + FrmExcelExport in '..\Source\ExcelExport\FrmExcelExport.pas' {FormExcelExport}, |
| 40 | + FrmeOptionPageUnitSelector in '..\Source\UnitSelector\FrmeOptionPageUnitSelector.pas' {FrameOptionPageUnitSelector: TFrame}, |
| 41 | + FrmeOptionPageKeybindings in '..\Source\Keybindings\FrmeOptionPageKeybindings.pas' {FrameOptionPageKeybindings: TFrame}, |
| 42 | + PluginConfig in '..\Source\PluginConfig.pas', |
| 43 | + FrmeOptionPageFileCleaner in '..\Source\FileCleaner\FrmeOptionPageFileCleaner.pas' {FrameOptionPageFileCleaner: TFrame}, |
| 44 | + FrmeOptionPageCompileBackup in '..\Source\CompileBackup\FrmeOptionPageCompileBackup.pas' {FrameOptionPageCompileBackup: TFrame}, |
| 45 | + RegisterPlugins in '..\Source\RegisterPlugins.pas', |
| 46 | + LabelMarginHelper in '..\Source\FormDesignerHelpers\LabelMarginHelper.pas', |
| 47 | + FrmeOptionPageFormDesigner in '..\Source\FormDesignerHelpers\FrmeOptionPageFormDesigner.pas' {FrameOptionPageFormDesigner: TFrame}, |
| 48 | + FrmeBase in '..\Source\FrmeBase.pas' {FrameBase: TFrame}, |
| 49 | + FrmFileSelector in '..\Source\FileSelector\FrmFileSelector.pas' {FormFileSelector}, |
| 50 | + RemoveExplicitProperty in '..\Source\FormDesignerHelpers\RemoveExplicitProperty.pas', |
| 51 | + DSUFeatures in '..\Source\DSUFeatures\DSUFeatures.pas', |
| 52 | + FrmeOptionPageDSUFeatures in '..\Source\DSUFeatures\FrmeOptionPageDSUFeatures.pas' {FrameOptionPageDSUFeatures: TFrame}, |
| 53 | + ComponentSelector in '..\Source\ComponentSelector\ComponentSelector.pas', |
| 54 | + FrmeOptionPageComponentSelector in '..\Source\ComponentSelector\FrmeOptionPageComponentSelector.pas' {FrameOptionPageComponentSelector: TFrame}, |
| 55 | + InterceptIntf in '..\..\..\CompileInterceptor\Source\InterceptIntf.pas', |
| 56 | + InterceptLoader in '..\..\..\CompileInterceptor\Source\InterceptLoader.pas', |
| 57 | + DelphiDesignerParser in '..\..\..\Shared\PascalParser\DelphiDesignerParser.pas', |
| 58 | + DelphiExpr in '..\..\..\Shared\PascalParser\DelphiExpr.pas', |
| 59 | + DelphiLexer in '..\..\..\Shared\PascalParser\DelphiLexer.pas', |
| 60 | + DelphiParserContainers in '..\..\..\Shared\PascalParser\DelphiParserContainers.pas', |
| 61 | + DelphiPreproc in '..\..\..\Shared\PascalParser\DelphiPreproc.pas', |
| 62 | + IDENotifiers in '..\..\..\Shared\IDE\IDENotifiers.pas', |
| 63 | + ModuleData in '..\..\..\Shared\IDE\ModuleData.pas', |
| 64 | + ProjectResource in '..\..\..\Shared\IDE\ProjectResource.pas', |
| 65 | + IDEHooks in '..\..\..\Shared\IDE\IDEHooks.pas', |
| 66 | + ProjectData in '..\..\..\Shared\IDE\ProjectData.pas', |
| 67 | + SimpleXmlDoc in '..\..\..\Shared\Xml\SimpleXmlDoc.pas', |
| 68 | + SimpleXmlIntf in '..\..\..\Shared\Xml\SimpleXmlIntf.pas', |
| 69 | + SimpleXmlImport in '..\..\..\Shared\Xml\SimpleXmlImport.pas', |
| 70 | + UnitVersionInfo in '..\..\..\Shared\IDE\UnitVersionInfo.pas', |
| 71 | + IDEUtils in '..\..\..\Shared\IDE\IDEUtils.pas', |
| 72 | + Hooking in '..\..\..\Shared\Hooking.pas', |
| 73 | + FrmOptions in '..\..\..\Shared\IDE\Options\FrmOptions.pas' {FormOptions}, |
| 74 | + FrmTreePages in '..\..\..\Shared\IDE\Options\FrmTreePages.pas' {FormTreePages}, |
| 75 | + FrmBase in '..\..\..\Shared\IDE\FrmBase.pas' {FormBase}, |
| 76 | + HtHint in '..\..\..\Shared\IDE\HtHint.pas', |
| 77 | + ToolsAPIHelpers in '..\..\..\Shared\IDE\ToolsAPIHelpers.pas', |
| 78 | + FrmDDevExtOptions in '..\Source\FrmDDevExtOptions.pas' {FormDDevExtOptions}, |
| 79 | + FileStreams in '..\..\..\Shared\FileStreams.pas', |
| 80 | + FrmSwitchToModuleProject in '..\Source\CompileProgress\FrmSwitchToModuleProject.pas' {FormSwitchToModuleProject}, |
| 81 | + FocusEditor in '..\Source\Editor\FocusEditor.pas', |
| 82 | + StrucViewSearch in '..\Source\DSUFeatures\StrucViewSearch.pas', |
| 83 | + EditPopupCtrl in '..\Source\EditPopupCtrl.pas', |
| 84 | + VirtTreeHandler in '..\Source\VirtTreeHandler.pas', |
| 85 | + ImportHooking in '..\..\..\Shared\ImportHooking.pas', |
| 86 | + StartParameterClasses in '..\Source\StartParameterManager\StartParameterClasses.pas', |
| 87 | + StartParameterCtrl in '..\Source\StartParameterManager\StartParameterCtrl.pas', |
| 88 | + StartParameterManagerReg in '..\Source\StartParameterManager\StartParameterManagerReg.pas', |
| 89 | + FrmeOptionPageStartParameterTeam in '..\Source\StartParameterTeam\FrmeOptionPageStartParameterTeam.pas', |
| 90 | + CompilerClearOtherStates in '..\Source\CompileProgress\CompilerClearOtherStates.pas', |
| 91 | + TaskbarIntf in '..\Source\TaskbarIntf.pas', |
| 92 | + FrmReloadFiles in '..\Source\Editor\FrmReloadFiles.pas' {FormReloadFiles}, |
| 93 | + DocModuleHandler in '..\Source\Editor\DocModuleHandler.pas', |
| 94 | + CodeInsightHandling in '..\Source\Editor\CodeInsightHandling.pas', |
| 95 | + DisableAlphaSortClassCompletion in '..\Source\DSUFeatures\DisableAlphaSortClassCompletion.pas'; |
| 96 | + |
| 97 | +var |
| 98 | + AboutBoxServices: IOTAAboutBoxServices = nil; |
| 99 | + AboutBoxIndex: Integer = 0; |
| 100 | + |
| 101 | +procedure DoneWizard; |
| 102 | +begin |
| 103 | + try |
| 104 | + try |
| 105 | + UninstallHooks; |
| 106 | + finally |
| 107 | + if AboutBoxServices <> nil then |
| 108 | + begin |
| 109 | + AboutBoxServices.RemovePluginInfo(AboutBoxIndex); |
| 110 | + AboutBoxServices := nil; |
| 111 | + end; |
| 112 | + end; |
| 113 | + except |
| 114 | + on E: Exception do |
| 115 | + MessageBox(0, PChar(E.Message), PChar('DDevExtensions - ' + string(E.ClassName)), MB_OK or MB_ICONERROR); |
| 116 | + end; |
| 117 | +end; |
| 118 | + |
| 119 | +function InitWizard(const BorlandIDEServices: IBorlandIDEServices; |
| 120 | + RegisterProc: TWizardRegisterProc; var Terminate: TWizardTerminateProc): Boolean; stdcall; |
| 121 | +begin |
| 122 | + Terminate := DoneWizard; |
| 123 | + Result := True; |
| 124 | + if Supports(BorlandIDEServices, IOTAAboutBoxServices, AboutBoxServices) then |
| 125 | + begin |
| 126 | + AboutBoxIndex := AboutBoxServices.AddPluginInfo( |
| 127 | + sPluginName, |
| 128 | + sPluginName + sLineBreak + |
| 129 | + sLineBreak + |
| 130 | + sPluginCopyright + sLineBreak + |
| 131 | + 'Use at your own risk.', |
| 132 | + 0 |
| 133 | + ); |
| 134 | + end; |
| 135 | + |
| 136 | + InstallHooks; |
| 137 | +end; |
| 138 | + |
| 139 | +exports |
| 140 | + InitWizard name WizardEntryPoint; |
| 141 | + |
| 142 | +begin |
| 143 | + {$R ..\Version.res} |
| 144 | + ShowOnSplashScreen; |
| 145 | +end. |
| 146 | + |
0 commit comments