|
@@ -5,60 +5,6 @@
|
|
|
#include "Array.h"
|
|
|
#include "UIInitialization.h"
|
|
|
|
|
|
-/*
|
|
|
- KSG UIML Standart
|
|
|
- possible XML elements:
|
|
|
- uimlview (the root element of uiml),
|
|
|
- class (only as direct child of uimlview),
|
|
|
- textfield,
|
|
|
- button,
|
|
|
- check, (KontrollKnopf)
|
|
|
- text,
|
|
|
- textarea,
|
|
|
- table (allowed child elements: tr),
|
|
|
- tr (allowed child elements: textfield, button, table, text, textarea, frame),
|
|
|
- frame (allowed child elements: textfield, button, table, text, textarea, frame).
|
|
|
- possible global XML attributes:
|
|
|
- id (string should be unique),
|
|
|
- x (integer, optional % char at end),
|
|
|
- y (integer, optional % char at end),
|
|
|
- width (integer, optional % char at end),
|
|
|
- height (integer, optional % char at end),
|
|
|
- margin (integer, optional % char at end),
|
|
|
- margin-left (integer, optional % char at end),
|
|
|
- margin-top (integer, optional % char at end),
|
|
|
- margin-right (integer, optional % char at end),
|
|
|
- margin-bottom (integer, optional % char at end),
|
|
|
- align-left (string (id values of other elements or keywords: start, end)),
|
|
|
- align-top (string (id values of other elements or keywords: start, end)),
|
|
|
- align-bottom ((string (id values of other elements or keywords: start, end)),
|
|
|
- align-right (string (id values of other elements or keywords: start, end)),
|
|
|
- tooltip (string),
|
|
|
- style (hex __int64),
|
|
|
- class (string (id of class element))
|
|
|
-
|
|
|
- attribute die sich gegenseitig ausschließen:
|
|
|
- align-left / align-right
|
|
|
- align-top / align-bottom
|
|
|
-
|
|
|
- spezific attributes:
|
|
|
- font-size (textfield, text, textarea, button)
|
|
|
- text-align (textfield, text, textarea)
|
|
|
- text-align-horizontal (textfield, text, textarea)
|
|
|
- text-align-vertical (textfield, text, textarea)
|
|
|
-
|
|
|
- example:
|
|
|
- <view>
|
|
|
- <textfield id="element_at_top_left" align-left="start", align-top="start", margin-left="5", margin-top="5" width="90%" height="30"/>
|
|
|
- <table id="element_below_textfield" align-left="start", aliign-top="element_at_top_left", margin-left="5", margin-top="5" width="90%" height="300">
|
|
|
- <tr>
|
|
|
- <button id="a_button_in_a_table"/>
|
|
|
- <textfield id="a_textfield_in_a_table"/>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </view>
|
|
|
-*/
|
|
|
-
|
|
|
namespace Framework
|
|
|
{
|
|
|
class Text;
|
|
@@ -71,6 +17,59 @@ namespace Framework
|
|
|
class Element;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ KSG UIML Standart
|
|
|
+ possible XML elements:
|
|
|
+ - uimlview (the root element of uiml),
|
|
|
+ - class (only as direct child of uimlview),
|
|
|
+ - textfield,
|
|
|
+ - button,
|
|
|
+ - check, (KontrollKnopf)
|
|
|
+ - text,
|
|
|
+ - textarea,
|
|
|
+ - table (allowed child elements: tr),
|
|
|
+ - tr (allowed child elements: textfield, button, table, text, textarea, frame),
|
|
|
+ - frame (allowed child elements: textfield, button, table, text, textarea, frame).
|
|
|
+ possible global XML attributes:
|
|
|
+ - id (string should be unique),
|
|
|
+ - x (integer, optional % char at end),
|
|
|
+ - y (integer, optional % char at end),
|
|
|
+ - width (integer, optional % char at end),
|
|
|
+ - height (integer, optional % char at end),
|
|
|
+ - margin (integer, optional % char at end),
|
|
|
+ - margin-left (integer, optional % char at end),
|
|
|
+ - margin-top (integer, optional % char at end),
|
|
|
+ - margin-right (integer, optional % char at end),
|
|
|
+ - margin-bottom (integer, optional % char at end),
|
|
|
+ - align-left (string (id values of other elements or keywords: start, end)),
|
|
|
+ - align-top (string (id values of other elements or keywords: start, end)),
|
|
|
+ - align-bottom ((string (id values of other elements or keywords: start, end)),
|
|
|
+ - align-right (string (id values of other elements or keywords: start, end)),
|
|
|
+ - tooltip (string),
|
|
|
+ - style (hex __int64),
|
|
|
+ - class (string (id of class element))
|
|
|
+
|
|
|
+ attribute die sich gegenseitig ausschließen:
|
|
|
+ - align-left / align-right
|
|
|
+ - align-top / align-bottom
|
|
|
+
|
|
|
+ spezific attributes:
|
|
|
+ - font-size (textfield, text, textarea, button)
|
|
|
+ - text-align (textfield, text, textarea)
|
|
|
+ - text-align-horizontal (textfield, text, textarea)
|
|
|
+ - text-align-vertical (textfield, text, textarea)
|
|
|
+
|
|
|
+ example:
|
|
|
+ \<view\>
|
|
|
+ \<textfield id="element_at_top_left" align-left="start", align-top="start", margin-left="5", margin-top="5" width="90%" height="30"/\>
|
|
|
+ \<table id="element_below_textfield" align-left="start", aliign-top="element_at_top_left", margin-left="5", margin-top="5" width="90%" height="300"\>
|
|
|
+ \<tr\>
|
|
|
+ \<button id="a_button_in_a_table"/\>
|
|
|
+ \<textfield id="a_textfield_in_a_table"/\>
|
|
|
+ \</tr\>
|
|
|
+ \</table\>
|
|
|
+ \</view\>
|
|
|
+ */
|
|
|
class UIMLView : public ZeichnungHintergrund
|
|
|
{
|
|
|
private:
|