add "index" keyword to ascii reader to use row number; part of #135

This commit is contained in:
Dominik Demuth
2023-11-10 18:56:13 +01:00
parent 8772fa9e7a
commit aff9cd31a7
4 changed files with 67 additions and 14 deletions

View File

@ -236,7 +236,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Specify which columns are read for y-values. ('Points': Every number creates a new data set;'FID'/'Spectrum': Numbers at even positions are used for real parts, at odd positions for imaginary parts.)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Specify which columns are used for y values.&lt;/p&gt;&lt;p&gt;- 'Points': Every number creates a new data set;&lt;br/&gt;- 'FID'/'Spectrum': Numbers at even positions are used for real parts, at odd positions for imaginary parts.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="inputMethodHints">
<set>Qt::ImhFormattedNumbersOnly|Qt::ImhPreferNumbers</set>
@ -259,7 +259,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Specify which column is used as x-value.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Specify which column is used for x values, write &lt;span style=&quot; font-style:italic;&quot;&gt;index&lt;/span&gt; to use row numbers (starting with 0). &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="inputMethodHints">
<set>Qt::ImhFormattedNumbersOnly|Qt::ImhPreferNumbers</set>
@ -620,6 +620,22 @@
</customwidgets>
<tabstops>
<tabstop>tabWidget</tabstop>
<tabstop>column_checkBox</tabstop>
<tabstop>line_spinBox</tabstop>
<tabstop>preview_spinBox</tabstop>
<tabstop>pts_radioButton</tabstop>
<tabstop>dsc_radioButton</tabstop>
<tabstop>FID_radioButton</tabstop>
<tabstop>spectrum_radioButton</tabstop>
<tabstop>bds_radioButton</tabstop>
<tabstop>x_lineedit</tabstop>
<tabstop>y_lineedit</tabstop>
<tabstop>deltay_lineEdit</tabstop>
<tabstop>re_button</tabstop>
<tabstop>regex_input</tabstop>
<tabstop>re_match_index</tabstop>
<tabstop>custom_button</tabstop>
<tabstop>custom_input</tabstop>
<tabstop>ascii_table</tabstop>
<tabstop>delay_textfield</tabstop>
<tabstop>delay_lineedit</tabstop>
@ -629,6 +645,7 @@
<tabstop>staggered_checkBox</tabstop>
<tabstop>stag_lineEdit</tabstop>
<tabstop>pushButton</tabstop>
<tabstop>skippy_checkbox</tabstop>
</tabstops>
<resources/>
<connections>
@ -650,7 +667,7 @@
</connection>
</connections>
<buttongroups>
<buttongroup name="buttonGroup_2"/>
<buttongroup name="buttonGroup"/>
<buttongroup name="buttonGroup_2"/>
</buttongroups>
</ui>