示例#1
0
文件: NameText.cpp 项目: songjundev/b
bool CNameTextMgr::LoadCSVData(const char* csvfile)
{
	CCSVParser file;
	if( !csvfile || !file.Load(csvfile) )
	{
		LOGGER_ERROR("[InitData] Load File Failed:%s", csvfile);
		return false;
	}

	int count = file.Line();
	for(int i = 0;i<count; ++i)
	{
		char szString[64]={0};
		file.GetAttribute(i,0,szString,64);

		_AddText(szString, m_NameVector);
	}

	file.Release();

	return true;
}
示例#2
0
文件: remsa.cpp 项目: PyroOS/Pyro
void Remsa::HandleMessage(Message *msg)
{
	const char *str=0L;

	switch(msg->GetCode()) {
		case 1:
			msg->FindString("text", &str);
			_AddText( str );
			break;
		case ID_COPY:
			m_TextView->SelectAll();
			m_TextView->Copy();
			m_TextView->ClearSelection();
			break;
		case ID_CLEAR:
			m_TextView->Clear();
			break;
		case ID_SAVE:
			break;
		default:
			Window::HandleMessage(msg);
	}
}
示例#3
0
void Debug::AddText(CString & str)
{
	_AddText((str));
}