Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

<value>


It is the main field to store data. This field allows to define an entry, or a combobox in the window.
It can contain the following fields: <function>, <dependencies>, <edit_command>
The parameters are as follows,
n - Name used to reference the field, especially when writing the .dat file.
pn - Label that will be visualized by the user. It can be translated.
v - The value or default value for a 'value' field 

...

values_tree - A drop-down tree to fill a combobox, defined by a comma-separated list of strings. It can call a Tcl proc, by means of square brackets [], that must returns a list of comma-separated strings, each one represented as the format: "level_in_the_tree name_in_dropdown_tree name_in_combobox enable_boolean". For instance, a drop-down tree defined as (see image below): values_tree="0 Air Air material 1,0 Steel Steel material 1,0 Aluminium Aluminium material 0,1 Aluminium Aluminium material 1"

Image Modified

dict - Comma-separated list of key,value. This operation places a mapping from the given key to the given value, which is shown in the GUI. Values can be translated.
For instance, dict="mech,Mechanical,therm,Thermal" shows Mechanical and Thermal.
string_is - Tests the validity of various interpretations of a string, as follows:

...

Code Block
  <container n="get_coord" pn="Get coordinates">
    <value n="coord" pn="Get coordinates" fieldtype="vector" dimensions="3" format="%.6g" v="0.0,0.0,0.0" pick_coordinates="1" help="Please enter coordinates\n(x,y,z)">
      <dependencies node="../value[@n='point']" att1="v" v1="{@v}"/>
    </value>
  </container>

Image Modified

editable - It is a boolean value as a 1 or 0 that indicates if the entry could be changed or not. If it is activated (1) the entry may not be changed, no insertion cursor will be displayed and the contents will not be selectable.
unit_magnitude - Physical quantity (i.e. L, for Length). For more information about this attribute, see the section Description of the units
units - Unit of the physical quantity (i.e. m). For more information about this attribute, see the section Description of the units

...