Form: Form core package, Editor and sample from Sc0rch

git-svn-id: svn://ultimatepp.org/upp/trunk@2412 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2010-05-19 18:38:45 +00:00
commit ac7821deb8
57 changed files with 66478 additions and 0 deletions

View file

@ -0,0 +1,34 @@
#include "FormLayout.hpp"
FormLayout::FormLayout()
{
SetNumber("Form.Width", 400);
SetNumber("Form.Height", 300);
SetBool("Form.MaximizeBox", false);
SetBool("Form.MinimizeBox", false);
SetBool("Form.Sizeable", false);
SetBool("Form.ToolWindow", false);
Set("Form.Name", t_("Noname"));
SetPageRect( Rect(Point(10, 10), Size(400, 300)) );
}
Size FormLayout::GetFormSize()
{
return Size(GetNumber("Form.Width", 400),
GetNumber("Form.Height", 400));
}
void FormLayout::Xmlize(XmlIO xml)
{
xml("content", _Objects);
XMLConfig::Xmlize(xml);
}
void FormLayout::Clear()
{
XMLConfig::Clear();
GetObjects().Clear();
}