示例#1
0
bool GnInterfaceGroup::Push(float fPointX, float fPointY)
{
	if( IfUseCheckCollision( fPointX, fPointY ) == false )
	{
		for ( gtuint i = 0; i < mPersonalChildren.GetSize(); i++ )
		{			
			GnInterface* child = mPersonalChildren.GetAt( i );
			PushChild( child, fPointX, fPointY );
		}
		return false;
	}
	
	bool isPush = false;
	for ( gtuint i = 0; i < GetChildrenSize() ; i++ )
	{
		GnInterface* child = GetChild( i );
		if( isPush == false )
		{
			if( PushChild( child, fPointX, fPointY ) )
				isPush = true;
		}
		else if( child->IsDisable() == false )
			child->SetVisibleNormal( true );
	}
	
	AddPushCount();
	return true;
}
示例#2
0
文件: OptionView.cpp 项目: GMIS/GMIS
CFooterBar::CFooterBar():
m_OKBnt(BNT_OK,_T("OK")),
m_CancleBnt(BNT_CANCLE,_T("Cancle"))
{
	m_crWinBorder  = RGB(128,128,128);
    m_crViewBkg    = RGB(245,245,243);
	PushChild(&m_OKBnt);
	PushChild(&m_CancleBnt);
}
示例#3
0
文件: AddressBar.cpp 项目: GMIS/GMIS
CAddressBar::CAddressBar()
:m_bConnected(FALSE),
 m_ConnectBnt(CM_CONNECT,_T(""))
{

 PushChild(&m_ConnectBnt);
}
void PropertyEnforcer::Visit(const PropertyProjection *) {
  auto project_expr =
      std::make_shared<OperatorExpression>(PhysicalProject::make());

  project_expr->PushChild(
      std::make_shared<OperatorExpression>(input_gexpr_->Op()));

  output_expr_ = project_expr;
}
示例#5
0
文件: ObjectView.cpp 项目: GMIS/GMIS
LRESULT CObjectView::OnAddObject(int64 wParam, int64 lParam){
	ObjectItem* Item = (ObjectItem*)wParam;
	Item->m_Index = m_ChildList.size();
	PushChild(Item);
				
	ObjectHeader* Header = (ObjectHeader*)m_ChildList.front();
	tstring title = Format1024(_T("%s:     %d "),m_Name.c_str(),m_ChildList.size()-1);
	Header->m_Title = title;
	
	Layout(true);
	return 0;
}
示例#6
0
文件: DebugView.cpp 项目: GMIS/GMIS
void CDebugView::MassItem::Init(ePipeline& Pipe){
	m_Alias = Pipe.GetID();
	m_Name = Pipe.GetLabel();
	int64 Type = Pipe.PopInt();

	m_Type   = Type;

	if (m_Type == MASS_ELEMENT)
	{
		while(Pipe.Size()){
			eElectron E;
			Pipe.Pop(&E);
			ePipeline* ChildPipe = (ePipeline*)E.Value();
			MassItem* ChildItem = new MassItem();
			PushChild(ChildItem);
			ChildItem->Init(*ChildPipe);
		}
	}
}
示例#7
0
文件: LogicView.cpp 项目: GMIS/GMIS
CLogicView::CLogicView()
{
	m_UseSystemScrollbar = false;
	m_crViewBkg = RGB(255,255,255);
    //m_State &= ~SPACE_SHOWWINBORDER;
	
	HICON	hIcon = ::LoadIcon(GetHinstance(),MAKEINTRESOURCE(IDI_LOGIC));
	CLogicView::CLogicLabel* Lable = new CLogicView::CLogicLabel(0,_T("Logic"),hIcon);
	Lable->m_State = SPACE_NOTOOLABR;
	PushChild(Lable);


	ButtonItem*  DelBnt = new ButtonItem(CM_DELETE_LOGIC,_T("Delete"),NULL,false,NULL);
	m_Toolbar.PushChild(DelBnt);

	ButtonItem*  ClearBnt = new ButtonItem(CM_CLEAR_LOGIC,_T("Clear"),NULL,false,NULL);
	m_Toolbar.PushChild(ClearBnt);


}
示例#8
0
文件: DebugView.cpp 项目: GMIS/GMIS
void CDebugView::Reset(ePipeline& ItemList){

	DeleteAll();

	m_Toolbar.m_Owner = NULL;
    m_SpaceFocused    = NULL;

	Layout();	
	
	m_TaskTimeStamp = ItemList.GetID();
	if(ItemList.Size()==0){
		return;
	};

	ePipeline* TaskPipe = (ePipeline*)ItemList.GetData(0);
	MassItem* Task = new MassItem;
	PushChild(Task);
	Task->Init(*TaskPipe);
	Task->m_Alias = 1; //任务ID是一个64位整数,显示不方便,这里改为1
    Layout();
	return ;
};
示例#9
0
文件: WorldLog.cpp 项目: GMIS/GMIS
LRESULT CWorldLog::ChildReaction(SpaceRectionMsg* SRM){
	switch(SRM->Msg)
	{
	case ADD_INFO:
		{
			if(m_ChildList.size() == m_MaxItemNum){
				//InfoItem* Front = (InfoItem*)m_ChildList.front();
				//delete Front;	
                Clear();
			}
			InfoItem* Item = (InfoItem*)SRM->wParam;
			PushChild(Item);
			Layout(false);
			EnsureVisible(Item,true);
		}
		break;
	case CLR_INFO:
		Clear();
	    Layout(true);
		break;	
	}
	return 0;
}
示例#10
0
文件: LogicView.cpp 项目: GMIS/GMIS
//引用或解引用由它的调用者锁定
CLogicView::CRefItem*  CLogicView::CLogicItem::AddRef(tstring RefName,tstring WhoRef){
	CRefItem*  Item = new CRefItem(RefName,WhoRef);
	Item->SetAreaSize(200,18);
	PushChild(Item);
	return Item;
}