Пример #1
0
void ResultTreeNode::find_all(arr_1t<int32_t>& res,String* p,int d)
{
	if(*p==value)
	{
		if(d<=1)
		{
			res.push_back(index);
		}
		else
		{
			find(res,p+1,d-1);

		}
	}
	else
	{
		find(res,p,d);
	}
}
Пример #2
0
	void AddPanel(EvtGroup* pevt)
	{
		String panel_name = pevt->m_sId;
		ICtl_ribbon_toolbar* p = new ICtl_ribbon_toolbar(this, pevt,16);
		//ICtl_ribbon_buttonbar* p = new ICtl_ribbon_buttonbar(this, pevt, 16);
		//ICtl_ribbon_sizer* p=new ICtl_ribbon_sizer(this, pevt, 16);
		//ICtl_ribbon_gallery* p = new ICtl_ribbon_gallery(this, pevt, 16);
		for (size_t i = 0; i < panels.size(); i++)
		{
			if (panels[i]->name == panel_name)
			{
				delete panels[i];
				panels[i] = p;
				return;
			}
		}
		p->Layout();
		panels.push_back(p);
	}
Пример #3
0
	void Handle(LogRecord& o)
	{
		if(o.m_nLevel==LOGLEVEL_WARNING)
		{
			m_nWrnCount++;
		}
		if(o.m_nLevel>LOGLEVEL_WARNING)
		{
			m_nErrCount++;
		}

		if(flags.get(FLAG_CACHED))
		{
			m_aMsg.push_back(o);
		}
		else if(m_refData)
		{
			m_refData->Handle(o);
		}
	}