[Kst] branches/work/kst/portto4/kst/src/datasources/ascii
Nicolas Brisset
nicolas.brisset at eurocopter.com
Fri May 6 09:16:42 CEST 2011
SVN commit 1230662 by brisset:
Improve layout of the ASCII config dialog. I hope you like...
M +132 -154 asciiconfig.ui
--- branches/work/kst/portto4/kst/src/datasources/ascii/asciiconfig.ui #1230661:1230662
@@ -6,137 +6,31 @@
<rect>
<x>0</x>
<y>0</y>
- <width>357</width>
- <height>545</height>
+ <width>839</width>
+ <height>600</height>
</rect>
</property>
- <layout class="QVBoxLayout" name="verticalLayout">
- <property name="spacing">
- <number>3</number>
- </property>
- <property name="margin">
- <number>3</number>
- </property>
- <item>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
<widget class="QLabel" name="_labelBeginning">
<property name="text">
<string>First 100 lines </string>
</property>
</widget>
</item>
- <item>
+ <item row="1" column="0">
<widget class="QPlainTextEdit" name="_showBeginning"/>
</item>
- <item>
- <layout class="QGridLayout">
- <property name="topMargin">
- <number>9</number>
- </property>
- <item row="0" column="0">
- <widget class="QLabel" name="textLabel1">
- <property name="text">
- <string>Comment indicators:</string>
- </property>
- <property name="wordWrap">
- <bool>false</bool>
- </property>
- <property name="buddy">
- <cstring>_delimiters</cstring>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QLineEdit" name="_delimiters">
- <property name="toolTip">
- <string>You can use more than one symbol here, like "#!C" for instance, but it will slow down reading ASCII files</string>
- </property>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QLabel" name="textLabel1_2">
- <property name="text">
- <string>Always accept files matching:</string>
- </property>
- <property name="wordWrap">
- <bool>false</bool>
- </property>
- </widget>
- </item>
<item row="1" column="1">
- <widget class="QLineEdit" name="_fileNamePattern"/>
- </item>
- <item row="2" column="0">
- <layout class="QHBoxLayout">
- <item>
- <widget class="QLabel" name="_indexVectorLabel">
- <property name="text">
- <string>Interpret:</string>
+ <widget class="Line" name="verticalLine">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
</property>
- <property name="wordWrap">
- <bool>false</bool>
- </property>
- <property name="buddy">
- <cstring>_indexVector</cstring>
- </property>
</widget>
</item>
+ <item row="1" column="2">
+ <layout class="QVBoxLayout" name="verticalLayout">
<item>
- <widget class="QComboBox" name="_indexVector">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
- <horstretch>1</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item row="2" column="1">
- <layout class="QHBoxLayout">
- <item>
- <widget class="QLabel" name="_indexTypeLabel">
- <property name="text">
- <string>As:</string>
- </property>
- <property name="wordWrap">
- <bool>false</bool>
- </property>
- <property name="buddy">
- <cstring>_indexType</cstring>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QComboBox" name="_indexType">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
- <horstretch>1</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <item>
- <property name="text">
- <string>INDEX</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>C Time</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>Seconds</string>
- </property>
- </item>
- </widget>
- </item>
- </layout>
- </item>
- </layout>
- </item>
- <item>
<widget class="QGroupBox" name="headerButtonGroup">
<property name="title">
<string>Header</string>
@@ -255,6 +149,9 @@
<property name="text">
<string>Line numbers start at 1</string>
</property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
+ </property>
</widget>
</item>
</layout>
@@ -265,17 +162,8 @@
<property name="title">
<string>Data Column Layout</string>
</property>
- <layout class="QVBoxLayout" name="verticalLayout_3">
- <property name="spacing">
- <number>3</number>
- </property>
- <property name="topMargin">
- <number>3</number>
- </property>
- <property name="bottomMargin">
- <number>3</number>
- </property>
- <item>
+ <layout class="QGridLayout" name="gridLayout_2">
+ <item row="0" column="0">
<widget class="QRadioButton" name="_whitespace">
<property name="text">
<string>Space/tab delimited</string>
@@ -285,34 +173,28 @@
</property>
</widget>
</item>
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout_2">
- <item>
+ <item row="1" column="0">
<widget class="QRadioButton" name="_custom">
<property name="text">
<string>Custom delimiter</string>
</property>
</widget>
</item>
- <item>
+ <item row="1" column="1">
<widget class="QLineEdit" name="_columnDelimiter">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
- </layout>
- </item>
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
+ <item row="2" column="0">
<widget class="QRadioButton" name="_fixed">
<property name="text">
<string>All columns have the same width</string>
</property>
</widget>
</item>
- <item>
+ <item row="2" column="1">
<widget class="QSpinBox" name="_columnWidth">
<property name="enabled">
<bool>false</bool>
@@ -329,8 +211,6 @@
</widget>
</item>
</layout>
- </item>
- </layout>
</widget>
</item>
<item>
@@ -420,33 +300,131 @@
</widget>
</item>
<item>
- <widget class="QCheckBox" name="_applyDefault">
+ <widget class="QGroupBox" name="generalOptionsButtonGroup">
+ <property name="title">
+ <string>General Options</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_3">
+ <item row="0" column="0">
+ <widget class="QLabel" name="textLabel1">
<property name="text">
- <string>Apply these settings as default</string>
+ <string>Comment indicators:</string>
</property>
+ <property name="wordWrap">
+ <bool>false</bool>
+ </property>
+ <property name="buddy">
+ <cstring>_delimiters</cstring>
+ </property>
</widget>
</item>
+ <item row="0" column="1">
+ <widget class="QLineEdit" name="_delimiters">
+ <property name="toolTip">
+ <string>You can use more than one symbol here, like "#!C" for instance, but it will slow down reading ASCII files</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QLabel" name="textLabel1_2">
+ <property name="text">
+ <string>Always accept files matching:</string>
+ </property>
+ <property name="wordWrap">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QLineEdit" name="_fileNamePattern"/>
+ </item>
+ <item row="2" column="0" colspan="2">
+ <layout class="QHBoxLayout" name="horizontalLayout">
<item>
- <spacer name="verticalSpacer">
+ <widget class="QLabel" name="_indexVectorLabel">
+ <property name="text">
+ <string>Interpret:</string>
+ </property>
+ <property name="wordWrap">
+ <bool>false</bool>
+ </property>
+ <property name="buddy">
+ <cstring>_indexVector</cstring>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="_indexVector">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+ <horstretch>2</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLabel" name="_indexTypeLabel">
+ <property name="text">
+ <string>As:</string>
+ </property>
+ <property name="wordWrap">
+ <bool>false</bool>
+ </property>
+ <property name="buddy">
+ <cstring>_indexType</cstring>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="_indexType">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
+ <horstretch>1</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <item>
+ <property name="text">
+ <string>INDEX</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>C Time</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Seconds</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item row="2" column="0" colspan="3">
+ <widget class="Line" name="line">
<property name="orientation">
- <enum>Qt::Vertical</enum>
+ <enum>Qt::Horizontal</enum>
</property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>24</height>
- </size>
+ </widget>
+ </item>
+ <item row="3" column="0">
+ <widget class="QCheckBox" name="_applyDefault">
+ <property name="text">
+ <string>Apply these settings as default</string>
</property>
- </spacer>
+ </widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
- <tabstops>
- <tabstop>_delimiters</tabstop>
- <tabstop>_indexVector</tabstop>
- <tabstop>_indexType</tabstop>
- </tabstops>
<resources/>
<connections>
<connection>
More information about the Kst
mailing list