Ejemplo n.º 1
0
bool Token::Equals(Token* token) 
{
	if(!TimedObject::Equals(token))
		return false;
	
	return GetSourceText() == token->GetSourceText()/* && prec == token->prec && next == token->next*/;
}
Ejemplo n.º 2
0
/**
* Takes the source out of the edit control and applies it
* to the material.
*/
void MaterialEditView::ApplyMaterialSource() {

	if(!sourceChanged)
		return;

	MaterialDoc* material = materialDocManager->CreateMaterialDoc(currentMaterialName);

	if(material) {
		idStr text = GetSourceText();
		material->ApplySourceModify(text);
	}

	sourceChanged = false;
}