bool RowNode::SetProperty(std::string szProperty, std::string szValue) {
	if (strcmpi(szProperty.c_str(),"MinWidth")==0 && m_children.size()>0) {
		m_nMinWidth=ToInt(szValue);
		int nMinChildWidth=(m_nMinWidth - (m_nControlSpacing*(m_children.size()-1)))/m_children.size();
		SetChildrenProperty(szProperty,FromInt(nMinChildWidth));
		return true;
	}
	return SettingNode::SetProperty(szProperty,szValue);
}
Beispiel #2
0
UCVarValue FColorCVar::FromInt2 (int value, ECVarType type)
{
	if (type == CVAR_String)
	{
		UCVarValue ret;
		mysnprintf (cstrbuf, countof(cstrbuf), "%02x %02x %02x",
			RPART(value), GPART(value), BPART(value));
		ret.String = cstrbuf;
		return ret;
	}
	return FromInt (value, type);
}
Beispiel #3
0
UCVarValue FIntCVar::GetGenericRepDefault (ECVarType type) const
{
	return FromInt (DefaultValue, type);
}
Beispiel #4
0
UCVarValue FIntCVar::GetGenericRep (ECVarType type) const
{
	return FromInt (Value, type);
}
void IndentNode::OnNewChild(SettingNode *pChild) {
	SettingNode::OnNewChild(pChild);
	SetChildrenProperty("MinWidth",FromInt(m_nMinWidth-m_nIndent));
}
void ContainerNode::OnNewChild(SettingNode *pChild) {
	SettingNode::OnNewChild(pChild);
	SetChildrenProperty("MinWidth",FromInt(m_nMinWidth-(m_nMargin+m_nMargin)));
}
	ConnID(int conn_id)
	{
		FromInt(conn_id);
	}
	ConnID& operator=(int conn_id) { printf("ConnID operator=\n"); FromInt(conn_id); return *this; }
void RowNode::OnNewChild(SettingNode *pChild) {
	SettingNode::OnNewChild(pChild);
	int nMinChildWidth=(m_nMinWidth - (m_nControlSpacing*(m_children.size()-1)))/m_children.size();
	SetChildrenProperty("MinWidth",FromInt(nMinChildWidth));
}