2017-05-11 01:46:17 +02:00
|
|
|
// ***************************************************************************
|
|
|
|
//
|
|
|
|
// Delphi MVC Framework
|
|
|
|
//
|
|
|
|
// Copyright (c) 2010-2017 Daniele Teti and the DMVCFramework Team
|
|
|
|
//
|
|
|
|
// https://github.com/danieleteti/delphimvcframework
|
|
|
|
//
|
|
|
|
// ***************************************************************************
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
//
|
|
|
|
// This IDE expert is based off of the one included with the DUnitX
|
|
|
|
// project. Original source by Robert Love. Adapted by Nick Hodges.
|
|
|
|
//
|
|
|
|
// The DUnitX project is run by Vincent Parrett and can be found at:
|
|
|
|
//
|
|
|
|
// https://github.com/VSoftTechnologies/DUnitX
|
|
|
|
// ***************************************************************************
|
2016-02-23 01:41:13 +01:00
|
|
|
|
|
|
|
unit DMVC.Expert.Registration;
|
|
|
|
|
2017-05-19 00:47:03 +02:00
|
|
|
{ .$R 'SplashScreenIcon.RES' }
|
2017-05-11 01:46:17 +02:00
|
|
|
|
2016-02-23 01:41:13 +01:00
|
|
|
interface
|
|
|
|
|
2017-05-11 01:46:17 +02:00
|
|
|
// Note: "Register" method name is case senstive.
|
2016-02-23 01:41:13 +01:00
|
|
|
procedure Register;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
uses
|
|
|
|
ToolsApi,
|
2017-05-19 00:47:03 +02:00
|
|
|
DesignIntf,
|
2017-05-11 01:46:17 +02:00
|
|
|
System.SysUtils,
|
2016-02-23 01:41:13 +01:00
|
|
|
DMVC.Expert.ProjectWizardEx,
|
2017-05-11 01:46:17 +02:00
|
|
|
DMVC.Expert.NewUnitWizardEx,
|
|
|
|
Winapi.Windows;
|
|
|
|
|
2016-02-23 01:41:13 +01:00
|
|
|
procedure Register;
|
|
|
|
begin
|
2017-05-19 00:47:03 +02:00
|
|
|
ForceDemandLoadState(dlDisable);
|
2016-02-23 01:41:13 +01:00
|
|
|
TDMVCNewProjectWizard.RegisterDMVCProjectWizard(sDelphiPersonality);
|
|
|
|
TDMVCNewUnitWizard.RegisterDMVCNewUnitWizard(sDelphiPersonality);
|
|
|
|
end;
|
|
|
|
|
2017-05-19 00:47:03 +02:00
|
|
|
// procedure RegisterSplashScreen;
|
|
|
|
// var
|
|
|
|
// LBmp: Vcl.Graphics.TBitmap;
|
|
|
|
// begin
|
|
|
|
// LBmp := Vcl.Graphics.TBitmap.Create;
|
|
|
|
// LBmp.LoadFromResourceName(HInstance, 'SPLASH');
|
|
|
|
// SplashScreenServices.AddPluginBitmap(resPackageName, LBmp.Handle, False, resLicense, '');
|
|
|
|
// LBmp.Free;
|
|
|
|
// end;
|
|
|
|
//
|
|
|
|
// procedure RegisterAboutBox;
|
|
|
|
// var
|
|
|
|
// LProductImage: HBITMAP;
|
|
|
|
// begin
|
|
|
|
// Supports(BorlandIDEServices, IOTAAboutBoxServices, AboutBoxServices);
|
|
|
|
// LProductImage := LoadBitmap(FindResourceHInstance(HInstance), 'SPLASH');
|
|
|
|
// AboutBoxIndex := AboutBoxServices.AddPluginInfo(resPackageName, resAboutDescription, LProductImage, False, resLicense);
|
|
|
|
// end;
|
|
|
|
//
|
|
|
|
// procedure UnregisterAboutBox;
|
|
|
|
// begin
|
|
|
|
// if (AboutBoxIndex = 0) and Assigned(AboutBoxServices) then
|
|
|
|
// begin
|
|
|
|
// AboutBoxServices.RemovePluginInfo(AboutBoxIndex);
|
|
|
|
// AboutBoxIndex := 0;
|
|
|
|
// AboutBoxServices := nil;
|
|
|
|
// end;
|
|
|
|
// end;
|
2017-05-11 01:46:17 +02:00
|
|
|
|
|
|
|
initialization
|
|
|
|
|
|
|
|
finalization
|
|
|
|
|
2016-02-23 01:41:13 +01:00
|
|
|
end.
|