Author: mordante
Date: Tue Aug 23 21:41:18 2011
New Revision: 50900

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50900&view=rev
Log:
Add a key for validation.

The key isn't used yet but is planned.
Found by Sytyi's validation code.

Modified:
    trunk/data/gui/schema.cfg
    trunk/src/gui/auxiliary/window_builder/control.cpp

Modified: trunk/data/gui/schema.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/gui/schema.cfg?rev=50900&r1=50899&r2=50900&view=diff
==============================================================================
--- trunk/data/gui/schema.cfg (original)
+++ trunk/data/gui/schema.cfg Tue Aug 23 21:41:18 2011
@@ -481,6 +481,11 @@
                     default=""
                 [/key]
                 [key]
+                    name="size_text"
+                    type="t_string"
+                    default=""
+                [/key]
+                [key]
                     name="tooltip"
                     type="t_string"
                     default=""
@@ -1899,5 +1904,91 @@
                 mandatory="true"
             [/key]
         [/tag]
+        [tag]
+            name="wml_schema"
+            min="0"
+            max="0"
+            [tag]
+                name="tag"
+                min="0"
+                max="1"
+                [tag]
+                    name="key"
+                    min="0"
+                    max="-1"
+                    [key]
+                        name="default"
+                        type="string"
+                        mandatory="true"
+                    [/key]
+                    [key]
+                        name="mandatory"
+                        type="string"
+                        mandatory="true"
+                    [/key]
+                    [key]
+                        name="name"
+                        type="string"
+                        mandatory="true"
+                    [/key]
+                    [key]
+                        name="type"
+                        type="string"
+                        mandatory="true"
+                    [/key]
+                [/tag]
+                [tag]
+                    name="link"
+                    min="0"
+                    max="-1"
+                    [key]
+                        name="name"
+                        type="string"
+                        mandatory="true"
+                    [/key]
+                [/tag]
+                [tag]
+                    name="tag"
+                    min="0"
+                    max="-1"
+                    super="wml_schema/tag"
+                [/tag]
+                [key]
+                    name="max"
+                    type="int"
+                    mandatory="true"
+                [/key]
+                [key]
+                    name="min"
+                    type="int"
+                    mandatory="true"
+                [/key]
+                [key]
+                    name="name"
+                    type="string"
+                    mandatory="true"
+                [/key]
+                [key]
+                    name="super"
+                    type="string"
+                    default=""
+                [/key]
+            [/tag]
+            [tag]
+                name="type"
+                min="0"
+                max="-1"
+                [key]
+                    name="name"
+                    type="string"
+                    mandatory="true"
+                [/key]
+                [key]
+                    name="value"
+                    type="string"
+                    mandatory="true"
+                [/key]
+            [/tag]
+        [/tag]
     [/tag]
 [/wml_schema]

Modified: trunk/src/gui/auxiliary/window_builder/control.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/auxiliary/window_builder/control.cpp?rev=50900&r1=50899&r2=50900&view=diff
==============================================================================
--- trunk/src/gui/auxiliary/window_builder/control.cpp (original)
+++ trunk/src/gui/auxiliary/window_builder/control.cpp Tue Aug 23 21:41:18 2011
@@ -147,6 +147,9 @@
  *                                     @* 2 floodfill the widget area. $
  *
  *   debug_border_color & color & "" & The color of the debug border. $
+ *   size_text & t_string & "" &       Sets the minimum width of the widget
+ *                                     depending on the text in it. (Note not
+ *                                     implemented yet.) $
  * @end{table}
  * @end{tag}{name="widget_instance"}
  * @end{parent}{name="generic/"}


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to