Пример #1
0
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);
}
Пример #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);
}
Пример #3
0
UCVarValue FIntCVar::GetGenericRepDefault (ECVarType type) const
{
	return FromInt (DefaultValue, type);
}
Пример #4
0
UCVarValue FIntCVar::GetGenericRep (ECVarType type) const
{
	return FromInt (Value, type);
}
Пример #5
0
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)));
}
Пример #7
0
	ConnID(int conn_id)
	{
		FromInt(conn_id);
	}
Пример #8
0
	ConnID& operator=(int conn_id) { printf("ConnID operator=\n"); FromInt(conn_id); return *this; }
Пример #9
0
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));
}