Skip to content

Commit

Permalink
增加扩展界面支持库二
Browse files Browse the repository at this point in the history
  • Loading branch information
fjqisba committed Aug 31, 2022
1 parent 8639627 commit 113ec95
Show file tree
Hide file tree
Showing 21 changed files with 723 additions and 51 deletions.
12 changes: 12 additions & 0 deletions E-Decompiler/E-Decompiler.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@
<ClCompile Include="common\md5.cpp" />
<ClCompile Include="common\public.cpp" />
<ClCompile Include="ControlInfoWidget.cpp" />
<ClCompile Include="EAppControl\CIext2_CartoonBox.cpp" />
<ClCompile Include="EAppControl\CIext2_IPEditBox.cpp" />
<ClCompile Include="EAppControl\CIext2_RichEdit.cpp" />
<ClCompile Include="EAppControl\CIext2_SplitterBar.cpp" />
<ClCompile Include="EAppControl\CIext2_SuperAnimateBox.cpp" />
<ClCompile Include="EAppControl\CIext2_SuperBtn.cpp" />
<ClCompile Include="EAppControl\EAppControl.cpp" />
<ClCompile Include="EAppControl\EAppControlFactory.cpp" />
<ClCompile Include="EAppControl\CKrnl_Button.cpp" />
Expand Down Expand Up @@ -158,6 +164,12 @@
<ItemGroup>
<ClInclude Include="common\md5.h" />
<ClInclude Include="common\public.h" />
<ClInclude Include="EAppControl\CIext2_CartoonBox.h" />
<ClInclude Include="EAppControl\CIext2_IPEditBox.h" />
<ClInclude Include="EAppControl\CIext2_RichEdit.h" />
<ClInclude Include="EAppControl\CIext2_SplitterBar.h" />
<ClInclude Include="EAppControl\CIext2_SuperAnimateBox.h" />
<ClInclude Include="EAppControl\CIext2_SuperBtn.h" />
<ClInclude Include="EAppControl\EAppControl.h" />
<ClInclude Include="EAppControl\EAppControlFactory.h" />
<ClInclude Include="EAppControl\CKrnl_Button.h" />
Expand Down
36 changes: 36 additions & 0 deletions E-Decompiler/E-Decompiler.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,24 @@
<ClCompile Include="Module\MicroCodeFixer.cpp">
<Filter>Module</Filter>
</ClCompile>
<ClCompile Include="EAppControl\CIext2_IPEditBox.cpp">
<Filter>EAppControl</Filter>
</ClCompile>
<ClCompile Include="EAppControl\CIext2_RichEdit.cpp">
<Filter>EAppControl</Filter>
</ClCompile>
<ClCompile Include="EAppControl\CIext2_SplitterBar.cpp">
<Filter>EAppControl</Filter>
</ClCompile>
<ClCompile Include="EAppControl\CIext2_SuperAnimateBox.cpp">
<Filter>EAppControl</Filter>
</ClCompile>
<ClCompile Include="EAppControl\CIext2_SuperBtn.cpp">
<Filter>EAppControl</Filter>
</ClCompile>
<ClCompile Include="EAppControl\CIext2_CartoonBox.cpp">
<Filter>EAppControl</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="SectionManager.h">
Expand Down Expand Up @@ -300,6 +318,24 @@
<ClInclude Include="Module\MicroCodeFixer.h">
<Filter>Module</Filter>
</ClInclude>
<ClInclude Include="EAppControl\CIext2_IPEditBox.h">
<Filter>EAppControl</Filter>
</ClInclude>
<ClInclude Include="EAppControl\CIext2_RichEdit.h">
<Filter>EAppControl</Filter>
</ClInclude>
<ClInclude Include="EAppControl\CIext2_SplitterBar.h">
<Filter>EAppControl</Filter>
</ClInclude>
<ClInclude Include="EAppControl\CIext2_SuperAnimateBox.h">
<Filter>EAppControl</Filter>
</ClInclude>
<ClInclude Include="EAppControl\CIext2_SuperBtn.h">
<Filter>EAppControl</Filter>
</ClInclude>
<ClInclude Include="EAppControl\CIext2_CartoonBox.h">
<Filter>EAppControl</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="E-Decompiler.rc" />
Expand Down
113 changes: 113 additions & 0 deletions E-Decompiler/EAppControl/CIext2_CartoonBox.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
#include "CIext2_CartoonBox.h"

CIext2_CartoonBox::CIext2_CartoonBox()
{
type = iext2_CartoonBox;
}

CIext2_CartoonBox* CIext2_CartoonBox::create()
{
return new CIext2_CartoonBox();
}

std::string CIext2_CartoonBox::GetEventName(int eventIndex)
{
switch (eventIndex)
{
case 0:
return "物体左键被按下";
case 1:
return "物体右键被按下";
case 2:
return "物体左键被放开";
case 3:
return "物体右键被放开";
case 4:
return "双击物体";
case 5:
return "进入物体";
case 6:
return "离开物体";
case 7:
return "动画框鼠标位置改变";
case 8:
return "物体位置将改变";
case 9:
return "物体位置已改变";
case 10:
return "物体将销毁";
case 11:
return "碰撞到物体";
case 12:
return "碰撞到边界";
case 13:
return "越出边界";
case 14:
return "自动前进停止";
case 15:
return "自动旋转停止";
case 16:
return "动画播放完毕";
case 17:
return "监视键被按下";
default:
break;
}
return GetCommonEventName(eventIndex);
}

bool CIext2_CartoonBox::InitControlExtraData(unsigned int propertyAddr, unsigned int propertySize)
{
return true;
}

std::string CIext2_CartoonBox::GetPropertyName(unsigned int propertyIndex)
{
switch (propertyIndex)
{
case 0:
return "左边";
case 1:
return "顶边";
case 2:
return "宽度";
case 3:
return "高度";
case 4:
return "标记";
case 5:
return "可视";
case 6:
return "禁止";
case 7:
return "鼠标指针";
case 8:
return "边框";
case 9:
return "背景颜色";
case 10:
return "背景图片";
case 11:
return "显示方式";
case 12:
return "画笔类型";
case 13:
return "画出方式";
case 14:
return "画笔粗细";
case 15:
return "画笔颜色";
case 16:
return "刷子类型";
case 17:
return "刷子颜色";
case 18:
return "文本颜色";
case 19:
return "文本背景颜色";
case 20:
return "字体";
}
return "未知属性";
}

15 changes: 15 additions & 0 deletions E-Decompiler/EAppControl/CIext2_CartoonBox.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#pragma once
#include "EAppControl.h"

//¶¯»­¿ò

struct CIext2_CartoonBox :public EAppControl
{
public:
CIext2_CartoonBox();
static CIext2_CartoonBox* create();
public:
std::string GetEventName(int eventIndex)override;
bool InitControlExtraData(unsigned int propertyAddr, unsigned int propertySize) override;
std::string GetPropertyName(unsigned int propertyIndex) override;
};
57 changes: 57 additions & 0 deletions E-Decompiler/EAppControl/CIext2_IPEditBox.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#include "CIext2_IPEditBox.h"

CIext2_IPEditBox::CIext2_IPEditBox()
{
type = iext2_IPEditBox;
}

CIext2_IPEditBox* CIext2_IPEditBox::create()
{
return new CIext2_IPEditBox();
}

std::string CIext2_IPEditBox::GetEventName(int eventIndex)
{
switch (eventIndex)
{
case 0:
return "地址被改变";
default:
break;
}
return GetCommonEventName(eventIndex);
}

bool CIext2_IPEditBox::InitControlExtraData(unsigned int propertyAddr, unsigned int propertySize)
{
return true;
}

std::string CIext2_IPEditBox::GetPropertyName(unsigned int propertyIndex)
{
switch (propertyIndex)
{
case 0:
return "左边";
case 1:
return "顶边";
case 2:
return "宽度";
case 3:
return "高度";
case 4:
return "标记";
case 5:
return "可视";
case 6:
return "禁止";
case 7:
return "鼠标指针";
case 8:
return "字体";
case 9:
return "地址";
}
return "未知属性";
}

15 changes: 15 additions & 0 deletions E-Decompiler/EAppControl/CIext2_IPEditBox.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#pragma once
#include "EAppControl.h"

//IP±à¼­¿ò

struct CIext2_IPEditBox :public EAppControl
{
public:
CIext2_IPEditBox();
static CIext2_IPEditBox* create();
public:
std::string GetEventName(int eventIndex)override;
bool InitControlExtraData(unsigned int propertyAddr, unsigned int propertySize) override;
std::string GetPropertyName(unsigned int propertyIndex) override;
};
81 changes: 81 additions & 0 deletions E-Decompiler/EAppControl/CIext2_RichEdit.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#include "CIext2_RichEdit.h"

CIext2_RichEdit::CIext2_RichEdit()
{
type = iext2_RichEdit;
}

CIext2_RichEdit* CIext2_RichEdit::create()
{
return new CIext2_RichEdit();
}

std::string CIext2_RichEdit::GetEventName(int eventIndex)
{
switch (eventIndex)
{
case 0:
return "内容被改变";
case 1:
return "选择区被改变";
default:
break;
}
return GetCommonEventName(eventIndex);
}

bool CIext2_RichEdit::InitControlExtraData(unsigned int propertyAddr, unsigned int propertySize)
{
return true;
}

std::string CIext2_RichEdit::GetPropertyName(unsigned int propertyIndex)
{
switch (propertyIndex)
{
case 0:
return "左边";
case 1:
return "顶边";
case 2:
return "宽度";
case 3:
return "高度";
case 4:
return "标记";
case 5:
return "可视";
case 6:
return "禁止";
case 7:
return "鼠标指针";
case 8:
return "内容格式";
case 9:
return "内容";
case 10:
return "边框";
case 11:
return "背景颜色";
case 12:
return "是否允许多行";
case 13:
return "自动换行";
case 14:
return "只读";
case 15:
return "隐藏选择";
case 16:
return "最大允许长度";
case 17:
return "起始选择位置";
case 18:
return "被选择字符数";
case 19:
return "被选择文本";
case 20:
return "是否已更改";
}
return "未知属性";
}

15 changes: 15 additions & 0 deletions E-Decompiler/EAppControl/CIext2_RichEdit.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#pragma once
#include "EAppControl.h"

//³¬¼¶±à¼­¿ò

struct CIext2_RichEdit :public EAppControl
{
public:
CIext2_RichEdit();
static CIext2_RichEdit* create();
public:
std::string GetEventName(int eventIndex)override;
bool InitControlExtraData(unsigned int propertyAddr, unsigned int propertySize) override;
std::string GetPropertyName(unsigned int propertyIndex) override;
};
Loading

0 comments on commit 113ec95

Please sign in to comment.