subsurface/qt-ui/csvimportdialog.ui
Miika Turkia 4c49670cdb GUI for CSV import
This patch implements GUI for importing CSV log files. One is able to
configure what columns contain time, depth and temperature fields.
Pre-configured log applications currently included are ADP log viewer
and XP5. (Both of these use actually tab as separator, so the field
separator currently hard-coded.)

[Dirk Hohndel: minor fixes]

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-10-16 12:44:07 -07:00

253 lines
5.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CSVImportDialog</class>
<widget class="QDialog" name="CSVImportDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry">
<rect>
<x>30</x>
<y>240</y>
<width>341</width>
<height>32</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>40</x>
<y>10</y>
<width>331</width>
<height>71</height>
</rect>
</property>
<property name="title">
<string>Import File (CSV)</string>
</property>
<widget class="QLineEdit" name="CSVFile">
<property name="geometry">
<rect>
<x>0</x>
<y>30</y>
<width>291</width>
<height>29</height>
</rect>
</property>
</widget>
<widget class="QToolButton" name="CSVFileSelector">
<property name="geometry">
<rect>
<x>300</x>
<y>30</y>
<width>25</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>...</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>200</x>
<y>80</y>
<width>121</width>
<height>61</height>
</rect>
</property>
<property name="title">
<string>Field Separator</string>
</property>
<widget class="QComboBox" name="CSVSeparator">
<property name="geometry">
<rect>
<x>0</x>
<y>30</y>
<width>111</width>
<height>29</height>
</rect>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_3">
<property name="geometry">
<rect>
<x>40</x>
<y>80</y>
<width>151</width>
<height>151</height>
</rect>
</property>
<property name="title">
<string>Field Configuration</string>
</property>
<widget class="QSpinBox" name="CSVTime">
<property name="geometry">
<rect>
<x>60</x>
<y>30</y>
<width>56</width>
<height>29</height>
</rect>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="value">
<number>0</number>
</property>
</widget>
<widget class="QSpinBox" name="CSVDepth">
<property name="geometry">
<rect>
<x>60</x>
<y>70</y>
<width>56</width>
<height>29</height>
</rect>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
<widget class="QSpinBox" name="CSVTemperature">
<property name="geometry">
<rect>
<x>60</x>
<y>110</y>
<width>56</width>
<height>29</height>
</rect>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="value">
<number>15</number>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>0</x>
<y>30</y>
<width>41</width>
<height>19</height>
</rect>
</property>
<property name="text">
<string>Time</string>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>0</x>
<y>70</y>
<width>51</width>
<height>19</height>
</rect>
</property>
<property name="text">
<string>Depth</string>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>0</x>
<y>110</y>
<width>41</width>
<height>19</height>
</rect>
</property>
<property name="text">
<string>Temp</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_4">
<property name="geometry">
<rect>
<x>200</x>
<y>159</y>
<width>181</width>
<height>61</height>
</rect>
</property>
<property name="title">
<string>Pre-configured imports</string>
</property>
<widget class="QComboBox" name="knownImports">
<property name="geometry">
<rect>
<x>0</x>
<y>30</y>
<width>161</width>
<height>29</height>
</rect>
</property>
<property name="currentIndex">
<number>-1</number>
</property>
</widget>
</widget>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>CSVImportDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>CSVImportDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>