📄 commonval.h
字号:
/////////////////////////////////////////////////////////////////////////////
////The variable defined in the file will be use in all the project//////////
////Writen by Forevergis/////////////////////////////////////////////////////
////2002.11.16 mailto : forevergis@sina.com.cn///////////////////////////////
/////////////////////////////////////////////////////////////////////////////
enum ViewType
{
VT_FRONT, //front view -- 0
VT_TOP, //top view -- 1
VT_LEFTSIDE, //side view -- 2
VT_BACK, //back view -- 3
VT_BOTTOM, //bottom view -- 4
VT_RIGHTSIDE //right side view -- 5
};
//视图分布类
class ViewArrange
{
public:
ViewArrange()
{
SetViewtype(1);
}
public:
enum ViewType m_MainViewType;
enum ViewType m_ChildViewAType;
enum ViewType m_ChildViewBType;
//let user can change the view type
//but we must assure the three view type can be
//distribute to the three view
void SetViewtype(int type)
{
//the type means the viewtype of mainview
switch(type)
{
case 0:
{
m_MainViewType = VT_FRONT;
m_ChildViewAType = VT_TOP;
m_ChildViewBType = VT_LEFTSIDE;
}
break;
case 1:
{
m_MainViewType = VT_TOP;
m_ChildViewAType = VT_LEFTSIDE;
m_ChildViewBType = VT_FRONT;
}
break;
case 2:
{
m_MainViewType = VT_LEFTSIDE;
m_ChildViewAType = VT_FRONT;
m_ChildViewBType = VT_TOP;
}
break;
default:
break;
}
}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -