@@ -189,18 +189,22 @@ void writeParameters(const String& class_name, const Param& param, bool table_on
189189 ofstream f ((String (" output/OpenMS_" ) + class_name + " .parameters" ).c_str ());
190190
191191 if (!table_only)
192+ {
192193 f << " <B>Parameters of this class are:</B><BR><BR>\n " ;
194+ }
193195 f << " <table border=\" 1\" style=\" border-style:solid; border-collapse:collapse; border-color:#c0c0c0;\" width=\" 100%\" cellpadding=\" 4\" >" << endl;
194196 f << " <tr style=\" border-bottom:1px solid black; background:#fffff0\" ><th>Name</th><th>Type</th><th>Default</th><th>Restrictions</th><th>Description</th></tr>" << endl;
195197 String type, description, restrictions;
196198 for (Param::ParamIterator it = param.begin (); it != param.end (); ++it)
197199 {
198200 restrictions = " " ;
199- if (it->value .valueType () == DataValue ::INT_VALUE || it->value .valueType () == DataValue ::INT_LIST)
201+ if (it->value .valueType () == ParamValue ::INT_VALUE || it->value .valueType () == ParamValue ::INT_LIST)
200202 {
201203 type = " int" ;
202- if (it->value .valueType () == DataValue::INT_LIST)
204+ if (it->value .valueType () == ParamValue::INT_LIST)
205+ {
203206 type += " list" ;
207+ }
204208
205209 // restrictions
206210 bool first = true ;
@@ -212,14 +216,16 @@ void writeParameters(const String& class_name, const Param& param, bool table_on
212216 if (it->max_int != (numeric_limits<Int>::max)())
213217 {
214218 if (!first)
219+ {
215220 restrictions += ' ' ;
221+ }
216222 restrictions += String (" max: " ) + it->max_int ;
217223 }
218224 }
219- else if (it->value .valueType () == DataValue ::DOUBLE_VALUE || it->value .valueType () == DataValue ::DOUBLE_LIST)
225+ else if (it->value .valueType () == ParamValue ::DOUBLE_VALUE || it->value .valueType () == ParamValue ::DOUBLE_LIST)
220226 {
221227 type = " float" ;
222- if (it->value .valueType () == DataValue ::DOUBLE_LIST)
228+ if (it->value .valueType () == ParamValue ::DOUBLE_LIST)
223229 type += " list" ;
224230
225231 // restrictions
@@ -236,10 +242,10 @@ void writeParameters(const String& class_name, const Param& param, bool table_on
236242 restrictions += String (" max: " ) + it->max_float ;
237243 }
238244 }
239- else if (it->value .valueType () == DataValue ::STRING_VALUE || it->value .valueType () == DataValue ::STRING_LIST)
245+ else if (it->value .valueType () == ParamValue ::STRING_VALUE || it->value .valueType () == ParamValue ::STRING_LIST)
240246 {
241247 type = " string" ;
242- if (it->value .valueType () == DataValue ::STRING_LIST)
248+ if (it->value .valueType () == ParamValue ::STRING_LIST)
243249 type += " list" ;
244250
245251 // restrictions
@@ -289,7 +295,7 @@ void writeParameters(const String& class_name, const Param& param, bool table_on
289295 }
290296
291297 // replace # and @ in values
292- String value = it->value ;
298+ String value = it->value . toString ( true ) ;
293299 value.substitute (" @" , " XXnot_containedXX" );
294300 value.substitute (" XXnot_containedXX" , " @@" );
295301 value.substitute (" #" , " XXnot_containedXX" );
@@ -480,7 +486,7 @@ int main(int argc, char** argv)
480486 // some classes require a QApplication
481487 QApplication app (argc, argv);
482488
483- DOCME (TOPPViewBase);
489+ DOCME2 (TOPPViewBase, TOPPViewBase (TOPPViewBase::TOOL_SCAN::SKIP_SCAN) );
484490 DOCME (TOPPASBase);
485491
486492 DOCME2 (Plot1DCanvas, Plot1DCanvas (Param (), nullptr ));
0 commit comments