-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fjqisba
committed
Aug 31, 2022
1 parent
8639627
commit 113ec95
Showing
21 changed files
with
723 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "未知属性"; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "未知属性"; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "未知属性"; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; |
Oops, something went wrong.