diff --git a/src/geGUI/Resources/TDX_v1.xsd b/src/geGUI/Resources/TDX_v1.xsd index 9280f2d..5afd04d 100644 --- a/src/geGUI/Resources/TDX_v1.xsd +++ b/src/geGUI/Resources/TDX_v1.xsd @@ -1,25 +1,40 @@ - List of predefined valid values. + + List of predefined valid values. + - Main node of the schema. + + Main node of the schema. + - Version number of the TDX file. + + Version number of the TDX file. + - Tool node that contains the desciption and all the paramters. + + Tool node that contains the desciption and all the paramters. + - Text description of the tool. + + Text description of the tool. + + + + + Extended text description of the tool. + @@ -33,162 +48,237 @@ - Version number of the tool. Used for displaying. + + Version number of the tool. Used for displaying. + - Name of the tool. This name is for displaying only. For execution, the file extension '.tdx' of the TDX file is stripped off and the remaining filename is used as executable name. + + Name of the tool. This name is for displaying only. For execution, the file extension '.tdx' of the TDX file is stripped off and the remaining filename is used as executable name. + - The interpreter used, e.g. for scripts. This attribute should contain the full absolute path, or the tool name only. When only the tool name is given, the path is looked up in the appropriate environment variables. + + The interpreter used, e.g. for scripts. This attribute should contain the full absolute path, or the tool name only. When only the tool name is given, the path is looked up in the appropriate environment variables. + - String parameter. + + String parameter. + - If this element is present, the parameter is optional - mandatory if not present. + + If this element is present, the parameter is optional - mandatory if not present. + - The default value used if the parameter is not set. This attribute is used for displaying only. + + The default value used if the parameter is not set. This attribute is used for displaying only. + - Parameter name. Used as command line parameter name as well (prefixed with a dash). + + Parameter name. Used as command line parameter name as well (prefixed with a dash). + - Output file parameter. + + Output file parameter. + - If this element is present, the parameter is optional - mandatory if not present. + + If this element is present, the parameter is optional - mandatory if not present. + - Parameter name. Used as command line parameter name as well (prefixed with a dash). + + Parameter name. Used as command line parameter name as well (prefixed with a dash). + - Integer parameter. + + Integer parameter. + - If this element is present, the parameter is optional - mandatory if not present. + + If this element is present, the parameter is optional - mandatory if not present. + - The default value used if the parameter is not set. This attribute is used for displaying only. + + The default value used if the parameter is not set. This attribute is used for displaying only. + - Minimum valid value. Can be used for paramter valudation. + + Minimum valid value. Can be used for paramter valudation. + - Maximum valid value. Can be used for paramter valudation. + + Maximum valid value. Can be used for paramter valudation. + - Parameter name. Used as command line parameter name as well (prefixed with a dash). + + Parameter name. Used as command line parameter name as well (prefixed with a dash). + - Input file list parameter. + + Input file list parameter. + - If this element is present, the parameter is optional - mandatory if not present. + + If this element is present, the parameter is optional - mandatory if not present. + - Parameter name. Used as command line parameter name as well (prefixed with a dash). + + Parameter name. Used as command line parameter name as well (prefixed with a dash). + - Input file parameter. + + Input file parameter. + - If this element is present, the parameter is optional - mandatory if not present. + + If this element is present, the parameter is optional - mandatory if not present. + - Parameter name. Used as command line parameter name as well (prefixed with a dash). + + Parameter name. Used as command line parameter name as well (prefixed with a dash). + - Floating point number parameter. + + Floating point number parameter. + - If this element is present, the parameter is optional - mandatory if not present. + + If this element is present, the parameter is optional - mandatory if not present. + - The default value used if the parameter is not set. This attribute is used for displaying only. + + The default value used if the parameter is not set. This attribute is used for displaying only. + - Minimum valid value. Can be used for paramter valudation. + + Minimum valid value. Can be used for paramter valudation. + - Maximum valid value. Can be used for paramter valudation. + + Maximum valid value. Can be used for paramter valudation. + - Parameter name. Used as command line parameter name as well (prefixed with a dash). + + Parameter name. Used as command line parameter name as well (prefixed with a dash). + - Flag parameter (two states only, present or not). + + Flag parameter (two states only, present or not). + - Parameter name. Used as command line parameter name as well (prefixed with a dash). + + Parameter name. Used as command line parameter name as well (prefixed with a dash). + - Enumeration parameter (one of several predefined values is selected). + + Enumeration parameter (one of several predefined values is selected). + - If this element is present, the parameter is optional - mandatory if not present. + + If this element is present, the parameter is optional - mandatory if not present. + - The default value used if the parameter is not set. This attribute is used for displaying only. + + The default value used if the parameter is not set. This attribute is used for displaying only. + - Parameter name. Used as command line parameter name as well (prefixed with a dash). + + Parameter name. Used as command line parameter name as well (prefixed with a dash). + - Description text. + + Description text. + + + + + Extended dscription text. + diff --git a/src/geGUI/TDX.cpp b/src/geGUI/TDX.cpp index dafa9f8..5a03a4d 100644 --- a/src/geGUI/TDX.cpp +++ b/src/geGUI/TDX.cpp @@ -66,13 +66,22 @@ void TDX::createForm(QGroupBox* box, QString filename) description = description.replace("\n", " "); description = description.replace("\t", " "); description = description.replace(" ", " "); - QLabel* label_d = new QLabel(description); + QLabel* label_d = new QLabel(description); label_d->setObjectName("desc"); label_d->setWordWrap(true); layout->addWidget(label_d, 0, 0, 1, 3); continue; } + //special handling: tool extended description tag + if (element.tagName()=="ExtendedDescription") + { + QLabel* label_d = box->findChild("desc"); + if (label_d==0) THROW(ProgrammingException, "Descripton label is not present!"); + label_d->setToolTip(element.text().trimmed()); + continue; + } + //add optional checkbox to layout QString param_name = element.attribute("name"); QCheckBox* optional = new QCheckBox();