mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
456 lines
11 KiB
XML
456 lines
11 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>ImportCsvDialog</class>
|
|
<widget class="QDialog" name="ImportCsvDialog">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>738</width>
|
|
<height>490</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Import CSV file</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<layout class="QFormLayout" name="formLayout">
|
|
<property name="fieldGrowthPolicy">
|
|
<enum>QFormLayout::ExpandingFieldsGrow</enum>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="labelName">
|
|
<property name="text">
|
|
<string>&Table name</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>editName</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QLineEdit" name="editName"/>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="labelHeader">
|
|
<property name="text">
|
|
<string>&Column names in first line</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>checkboxHeader</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QCheckBox" name="checkboxHeader">
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="labelSeparator">
|
|
<property name="text">
|
|
<string>Field &separator</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>comboSeparator</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="QComboBox" name="comboSeparator">
|
|
<item>
|
|
<property name="text">
|
|
<string>,</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>;</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Tab</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>|</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Other</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="editCustomSeparator">
|
|
<property name="maxLength">
|
|
<number>1</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QLabel" name="labelQuote">
|
|
<property name="text">
|
|
<string>&Quote character</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>comboQuote</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<item>
|
|
<widget class="QComboBox" name="comboQuote">
|
|
<item>
|
|
<property name="text">
|
|
<string>"</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>'</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Other</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="editCustomQuote">
|
|
<property name="maxLength">
|
|
<number>1</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer_2">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="5" column="0">
|
|
<widget class="QLabel" name="labelEncoding">
|
|
<property name="text">
|
|
<string>&Encoding</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>comboEncoding</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="1">
|
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
<item>
|
|
<widget class="QComboBox" name="comboEncoding">
|
|
<item>
|
|
<property name="text">
|
|
<string>UTF-8</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>UTF-16</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>ISO-8859-1</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Other</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="editCustomEncoding"/>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer_3">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="6" column="0">
|
|
<widget class="QLabel" name="labelTrim">
|
|
<property name="text">
|
|
<string>Trim fields?</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="1">
|
|
<widget class="QCheckBox" name="checkBoxTrimFields">
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QTableWidget" name="tablePreview"/>
|
|
</item>
|
|
<item>
|
|
<widget class="QDialogButtonBox" name="buttonBox">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="standardButtons">
|
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<tabstops>
|
|
<tabstop>editName</tabstop>
|
|
<tabstop>checkboxHeader</tabstop>
|
|
<tabstop>comboSeparator</tabstop>
|
|
<tabstop>editCustomSeparator</tabstop>
|
|
<tabstop>comboQuote</tabstop>
|
|
<tabstop>editCustomQuote</tabstop>
|
|
<tabstop>comboEncoding</tabstop>
|
|
<tabstop>editCustomEncoding</tabstop>
|
|
<tabstop>tablePreview</tabstop>
|
|
</tabstops>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>accepted()</signal>
|
|
<receiver>ImportCsvDialog</receiver>
|
|
<slot>accept()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>261</x>
|
|
<y>480</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>157</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>rejected()</signal>
|
|
<receiver>ImportCsvDialog</receiver>
|
|
<slot>reject()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>329</x>
|
|
<y>480</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>286</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>checkboxHeader</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>ImportCsvDialog</receiver>
|
|
<slot>updatePreview()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>187</x>
|
|
<y>46</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>354</x>
|
|
<y>45</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>comboSeparator</sender>
|
|
<signal>currentIndexChanged(int)</signal>
|
|
<receiver>ImportCsvDialog</receiver>
|
|
<slot>updatePreview()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>216</x>
|
|
<y>71</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>445</x>
|
|
<y>64</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>comboQuote</sender>
|
|
<signal>currentIndexChanged(int)</signal>
|
|
<receiver>ImportCsvDialog</receiver>
|
|
<slot>updatePreview()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>224</x>
|
|
<y>100</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>350</x>
|
|
<y>88</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>editName</sender>
|
|
<signal>textChanged(QString)</signal>
|
|
<receiver>ImportCsvDialog</receiver>
|
|
<slot>checkInput()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>609</x>
|
|
<y>13</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>631</x>
|
|
<y>45</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>editCustomSeparator</sender>
|
|
<signal>textChanged(QString)</signal>
|
|
<receiver>ImportCsvDialog</receiver>
|
|
<slot>updatePreview()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>325</x>
|
|
<y>70</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>577</x>
|
|
<y>76</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>editCustomQuote</sender>
|
|
<signal>textChanged(QString)</signal>
|
|
<receiver>ImportCsvDialog</receiver>
|
|
<slot>updatePreview()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>467</x>
|
|
<y>101</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>530</x>
|
|
<y>90</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>comboEncoding</sender>
|
|
<signal>currentIndexChanged(int)</signal>
|
|
<receiver>ImportCsvDialog</receiver>
|
|
<slot>updatePreview()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>198</x>
|
|
<y>131</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>572</x>
|
|
<y>121</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>editCustomEncoding</sender>
|
|
<signal>textChanged(QString)</signal>
|
|
<receiver>ImportCsvDialog</receiver>
|
|
<slot>updatePreview()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>378</x>
|
|
<y>132</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>540</x>
|
|
<y>133</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>checkBoxTrimFields</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>ImportCsvDialog</receiver>
|
|
<slot>updatePreview()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>191</x>
|
|
<y>189</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>368</x>
|
|
<y>244</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
<slots>
|
|
<slot>updatePreview()</slot>
|
|
<slot>checkInput()</slot>
|
|
</slots>
|
|
</ui>
|