|
@@ -48,6 +48,8 @@ void UIMLElement::layout(XML::Element& element, Zeichnung& z, int pWidth, int pH
|
|
|
x = 0;
|
|
|
else if (la.istGleich("end"))
|
|
|
x = pWidth;
|
|
|
+ else if (la.istGleich("center"))
|
|
|
+ x = pWidth / 2 - width / 2;
|
|
|
else
|
|
|
{
|
|
|
XML::Editor ed = element.zParent()->selectChildsByAttribute("id", la);
|
|
@@ -74,6 +76,8 @@ void UIMLElement::layout(XML::Element& element, Zeichnung& z, int pWidth, int pH
|
|
|
x = -z.getBreite();
|
|
|
else if (ra.istGleich("end"))
|
|
|
x = pWidth - z.getBreite();
|
|
|
+ else if (ra.istGleich("center"))
|
|
|
+ x = pWidth / 2 - width / 2;
|
|
|
else
|
|
|
{
|
|
|
XML::Editor ed = element.zParent()->selectChildsByAttribute("id", ra);
|
|
@@ -100,6 +104,8 @@ void UIMLElement::layout(XML::Element& element, Zeichnung& z, int pWidth, int pH
|
|
|
y = 0;
|
|
|
else if (ta.istGleich("end"))
|
|
|
y = pHeight;
|
|
|
+ else if (ta.istGleich("center"))
|
|
|
+ y = pHeight / 2 - height / 2;
|
|
|
else
|
|
|
{
|
|
|
XML::Editor ed = element.zParent()->selectChildsByAttribute("id", ta);
|
|
@@ -126,6 +132,8 @@ void UIMLElement::layout(XML::Element& element, Zeichnung& z, int pWidth, int pH
|
|
|
y = -z.getHeight();
|
|
|
else if (ba.istGleich("end"))
|
|
|
y = pHeight - z.getHeight();
|
|
|
+ else if (ba.istGleich("center"))
|
|
|
+ y = pHeight / 2 - height / 2;
|
|
|
else
|
|
|
{
|
|
|
XML::Editor ed = element.zParent()->selectChildsByAttribute("id", ba);
|