예제 #1
0
void MkWindowThemedNode::SaveObject(MkDataNode& node) const
{
	MkVisualPatternNode::SaveObject(node);

	// theme name
	node.SetDataEx(ObjKey_ThemeName, m_ThemeName, 0);
	
	// component
	if ((m_ComponentType > MkWindowThemeData::eCT_None) && (m_ComponentType < MkWindowThemeData::eCT_RegularMax))
	{
		node.SetDataEx(ObjKey_ComponentType, MkWindowThemeData::ComponentTypeName[m_ComponentType], 0);
	}
	else if (m_ComponentType == MkWindowThemeData::eCT_CustomForm)
	{
		node.SetDataEx(ObjKey_CustomFormName, m_CustomFormName, 0);
	}

	// use shadow
	node.SetData(ObjKey_UseShadow, m_UseShadow, 0);

	// client size
	node.SetDataEx(ObjKey_ClientSize, m_ClientRect.size, 0);

	// frame type
	if ((m_FrameType > MkWindowThemeData::eFT_None) && (m_FrameType < MkWindowThemeData::eFT_Max))
	{
		node.SetDataEx(ObjKey_FrameType, MkWindowThemeData::FrameTypeName[m_FrameType], 0);
	}
}
예제 #2
0
void MkLineShape::SaveObject(MkDataNode& node) const
{
	// attribute
	node.SetData(ObjKey_Attribute, m_Attribute.m_Field, 0);

	// local vertices
	node.SetDataEx(ObjKey_LocalVertices, m_LocalVertices);

	// local depth
	node.SetData(ObjKey_LocalDepth, m_LocalDepth, 0);

	// indice
	node.SetData(ObjKey_Indice, m_Indices);

	// color
	node.SetData(ObjKey_Color, m_Color.ConvertToD3DCOLOR(), 0);
}
void MkCheckBoxControlNode::SaveObject(MkDataNode& node) const
{
	MkWindowBaseNode::SaveObject(node);

	// caption
	if (ChildExist(CaptionNodeName))
	{
		const MkWindowTagNode* captionNode = dynamic_cast<const MkWindowTagNode*>(GetChildNode(CaptionNodeName));
		if (captionNode != NULL)
		{
			node.CreateUnitEx(ObjKey_CaptionTextName, captionNode->GetTextName());
			node.SetData(ObjKey_CaptionString, m_CaptionString, 0);
		}
	}

	// check
	node.SetData(ObjKey_OnCheck, m_OnCheck, 0);
}
예제 #4
0
void MkWindowBaseNode::SetObjectTemplate(MkDataNode& node)
{
	MkWindowThemedNode::SetObjectTemplate(node);

	// update attribute
	MkBitField32 attr;
	node.GetData(ObjKey_Attribute, attr.m_Field, 0);
	attr.Assign(ePA_SNA_AcceptInput, true);
	attr.Assign(ePA_SNA_Enable, true);
	node.SetData(ObjKey_Attribute, attr.m_Field, 0);
}
void MkBodyFrameControlNode::SaveObject(MkDataNode& node) const
{
	MkWindowBaseNode::SaveObject(node);

	node.SetData(ObjKey_HangingType, static_cast<int>(m_HangingType), 0);
}