mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
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:
parent
0fb04dddb0
commit
ac7821deb8
57 changed files with 66478 additions and 0 deletions
34
bazaar/Form/FormLayout.cpp
Normal file
34
bazaar/Form/FormLayout.cpp
Normal 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();
|
||||
}
|
||||
Loading…
Reference in a new issue