Skip to content

Commit 3213179

Browse files
committed
feature/add-splash
1 parent a03f5f7 commit 3213179

File tree

5 files changed

+34
-3
lines changed

5 files changed

+34
-3
lines changed

Package/DelphiAIDeveloper.dpk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ contains
7171
DelphiAIDev.DefaultsQuestions.Model in '..\Src\DefaultsQuestions\DelphiAIDev.DefaultsQuestions.Model.pas',
7272
DelphiAIDev.DefaultsQuestions.AddEdit.View in '..\Src\DefaultsQuestions\DelphiAIDev.DefaultsQuestions.AddEdit.View.pas' {DelphiAIDevDefaultsQuestionsAddEditView},
7373
DelphiAIDev.DefaultsQuestions.PopupMenu in '..\Src\DefaultsQuestions\DelphiAIDev.DefaultsQuestions.PopupMenu.pas',
74-
DelphiAIDev.Utils.ABMenuAction in '..\Src\Utils\DelphiAIDev.Utils.ABMenuAction.pas';
74+
DelphiAIDev.Utils.ABMenuAction in '..\Src\Utils\DelphiAIDev.Utils.ABMenuAction.pas',
75+
DelphiAIDev.IDE.Splash in '..\Src\IDE\Splash\DelphiAIDev.IDE.Splash.pas';
7576

7677
end.

Package/DelphiAIDeveloper.dproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@
178178
</DCCReference>
179179
<DCCReference Include="..\Src\DefaultsQuestions\DelphiAIDev.DefaultsQuestions.PopupMenu.pas"/>
180180
<DCCReference Include="..\Src\Utils\DelphiAIDev.Utils.ABMenuAction.pas"/>
181+
<DCCReference Include="..\Src\IDE\Splash\DelphiAIDev.IDE.Splash.pas"/>
181182
<RcItem Include="Img\c4d_gear.bmp">
182183
<ResourceType>BITMAP</ResourceType>
183184
<ResourceId>c4d_gear</ResourceId>

Src/Consts/DelphiAIDev.Consts.pas

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ TConsts = class
4343
PLUGIN_LICENSE = 'MIT license';
4444
IS_UNREGISTERED = False;
4545

46+
//NAMES FILES AND IMAGES RESOURCE
47+
RESOURCE_c4d_logo_24x24 = 'c4d_logo_24x24';
48+
4649
//CAPTIONS ITENS MAIN MENU IDE, AND POPUPMENU PROJ
4750
ITEM_MENU_C4DDelphiAIDev_NAME = 'C4DDelphiAIDevItemMenu';
4851
ITEM_MENU_C4DDelphiAIDev_CAPTION = 'AI Developer';

Src/IDE/Shortcuts/DelphiAIDev.IDE.Shortcuts.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ implementation
3737

3838
procedure RegisterSelf;
3939
begin
40-
if(Index < 0)and(true)then
41-
Index := TUtilsOTA.GetIOTAKeyboardServices.AddKeyboardBinding(TDelphiAIDevIDEShortcuts.New);
40+
// if(Index < 0)and(true)then
41+
// Index := TUtilsOTA.GetIOTAKeyboardServices.AddKeyboardBinding(TDelphiAIDevIDEShortcuts.New);
4242
end;
4343

4444
procedure UnRegisterSelf;
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
unit DelphiAIDev.IDE.Splash;
2+
3+
interface
4+
5+
implementation
6+
7+
uses
8+
Windows,
9+
SysUtils,
10+
ToolsAPI,
11+
DesignIntf,
12+
DelphiAIDev.Consts;
13+
14+
procedure RegisterSplashScreen;
15+
begin
16+
ForceDemandLoadState(dlDisable);
17+
SplashScreenServices.AddPluginBitmap(TConsts.ABOUT_TITLE, LoadBitmap(HInstance, TConsts.RESOURCE_c4d_logo_24x24),
18+
TConsts.IS_UNREGISTERED, TConsts.PLUGIN_LICENSE);
19+
end;
20+
21+
initialization
22+
RegisterSplashScreen;
23+
24+
finalization
25+
26+
end.

0 commit comments

Comments
 (0)