[Kst] branches/work/kst/portto4/kst/src/libkstapp
Barth Netterfield
netterfield at astro.utoronto.ca
Tue Apr 21 23:07:12 CEST 2009
SVN commit 957356 by netterfield:
Fix up some dialogs; add whatsthis.
M +2 -0 arrowpropertiestab.cpp
M +80 -48 arrowpropertiestab.ui
M +80 -36 axistab.ui
M +15 -12 choosecolordialog.ui
M +8 -2 contenttab.ui
--- branches/work/kst/portto4/kst/src/libkstapp/arrowpropertiestab.cpp #957355:957356
@@ -38,6 +38,8 @@
void ArrowPropertiesTab::update() {
_startArrowScale->setEnabled(_startArrow->isChecked());
_endArrowScale->setEnabled(_endArrow->isChecked());
+ _startArrowLabel->setEnabled(_startArrow->isChecked());
+ _endArrowLabel->setEnabled(_endArrow->isChecked());
}
--- branches/work/kst/portto4/kst/src/libkstapp/arrowpropertiestab.ui #957355:957356
@@ -15,59 +15,91 @@
<property name="windowTitle" >
<string>Form</string>
</property>
- <layout class="QVBoxLayout" >
- <item>
- <layout class="QVBoxLayout" >
- <item>
- <widget class="QCheckBox" name="_startArrow" >
- <property name="text" >
- <string>Arrow at Start</string>
- </property>
- </widget>
- </item>
- <item>
- <layout class="QHBoxLayout" >
- <item>
- <widget class="QLabel" name="label" >
- <property name="text" >
- <string>Start Arrow Scale</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QDoubleSpinBox" name="_startArrowScale" />
- </item>
- </layout>
- </item>
- <item>
- <widget class="QCheckBox" name="_endArrow" >
- <property name="text" >
- <string>Arrow at End</string>
- </property>
- </widget>
- </item>
- <item>
- <layout class="QHBoxLayout" >
- <item>
- <widget class="QLabel" name="label_2" >
- <property name="text" >
- <string>End Arrow Scale</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QDoubleSpinBox" name="_endArrowScale" />
- </item>
- </layout>
- </item>
- </layout>
+ <layout class="QGridLayout" name="gridLayout" >
+ <item row="0" column="0" colspan="2" >
+ <widget class="QCheckBox" name="_startArrow" >
+ <property name="text" >
+ <string>Arrow at &Start</string>
+ </property>
+ </widget>
</item>
- <item>
+ <item row="1" column="0" >
+ <widget class="QLabel" name="_startArrowLabel" >
+ <property name="sizePolicy" >
+ <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text" >
+ <string>S&tart Arrow Scale</string>
+ </property>
+ <property name="alignment" >
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ <property name="buddy" >
+ <cstring>_startArrowScale</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1" >
+ <widget class="QDoubleSpinBox" name="_startArrowScale" >
+ <property name="sizePolicy" >
+ <sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="toolTip" >
+ <string>Arrow Head Size</string>
+ </property>
+ <property name="whatsThis" >
+ <string>The size of the arrow head is proportional to this value.</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0" colspan="2" >
+ <widget class="QCheckBox" name="_endArrow" >
+ <property name="text" >
+ <string>Arrow at &End</string>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="0" >
+ <widget class="QLabel" name="_endArrowLabel" >
+ <property name="sizePolicy" >
+ <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text" >
+ <string>E&nd Arrow Scale</string>
+ </property>
+ <property name="alignment" >
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ <property name="buddy" >
+ <cstring>_endArrowScale</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="1" >
+ <widget class="QDoubleSpinBox" name="_endArrowScale" >
+ <property name="toolTip" >
+ <string>Arrow Head Size</string>
+ </property>
+ <property name="whatsThis" >
+ <string>The size of the arrow head is proportional to this value.</string>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="0" colspan="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeHint" >
+ <property name="sizeHint" stdset="0" >
<size>
<width>20</width>
<height>40</height>
--- branches/work/kst/portto4/kst/src/libkstapp/axistab.ui #957355:957356
@@ -21,6 +21,9 @@
<layout class="QGridLayout" name="gridLayout_3" >
<item row="0" column="0" >
<widget class="QCheckBox" name="_scaleLog" >
+ <property name="toolTip" >
+ <string/>
+ </property>
<property name="text" >
<string>&Logarithmic</string>
</property>
@@ -28,18 +31,14 @@
</item>
<item row="0" column="1" >
<widget class="QCheckBox" name="_scaleBaseOffset" >
+ <property name="whatsThis" >
+ <string>The axis numbers are displayed relative to a reference value, which is displayed on the same line as the axis label. This option is designed to allow small differences from large offsets to be easily seen.</string>
+ </property>
<property name="text" >
<string>&Base and offset mode</string>
</property>
</widget>
</item>
- <item row="0" column="2" colspan="2" >
- <widget class="QCheckBox" name="_scaleReverse" >
- <property name="text" >
- <string>&Reverse</string>
- </property>
- </widget>
- </item>
<item row="1" column="0" >
<widget class="QCheckBox" name="_scaleInterpret" >
<property name="sizePolicy" >
@@ -48,6 +47,12 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
+ <property name="toolTip" >
+ <string>Axis is time</string>
+ </property>
+ <property name="whatsThis" >
+ <string>Interpret the axis as time.</string>
+ </property>
<property name="text" >
<string>&Interpret as:</string>
</property>
@@ -58,6 +63,12 @@
<property name="enabled" >
<bool>false</bool>
</property>
+ <property name="toolTip" >
+ <string>Time encoding type</string>
+ </property>
+ <property name="whatsThis" >
+ <string>The axis represents time, whose encoding is selected here.</string>
+ </property>
</widget>
</item>
<item row="2" column="0" >
@@ -87,6 +98,12 @@
<property name="enabled" >
<bool>false</bool>
</property>
+ <property name="toolTip" >
+ <string>Time display format</string>
+ </property>
+ <property name="whatsThis" >
+ <string>If the axis is to be intpreted as time, then display the time on the axis with this format.</string>
+ </property>
</widget>
</item>
<item row="3" column="0" colspan="3" >
@@ -104,6 +121,9 @@
</item>
<item row="3" column="3" >
<widget class="QSpinBox" name="_significantDigits" >
+ <property name="whatsThis" >
+ <string>If this many digits are required to display the tick numbers, then the axis will revert to Base/Offset mode.</string>
+ </property>
<property name="minimum" >
<number>2</number>
</property>
@@ -115,7 +135,26 @@
</property>
</widget>
</item>
+ <item row="0" column="2" colspan="2" >
+ <widget class="QCheckBox" name="_scaleReverse" >
+ <property name="whatsThis" >
+ <string>Reverse the direction of the axis, so the numbers are decreasing, rather than increasing.f</string>
+ </property>
+ <property name="text" >
+ <string>&Reverse</string>
+ </property>
+ </widget>
+ </item>
</layout>
+ <zorder>_scaleLog</zorder>
+ <zorder>_scaleBaseOffset</zorder>
+ <zorder>_scaleInterpret</zorder>
+ <zorder>_scaleInterpretType</zorder>
+ <zorder>_Label_6</zorder>
+ <zorder>_scaleDisplayType</zorder>
+ <zorder>label_2</zorder>
+ <zorder>_significantDigits</zorder>
+ <zorder>_scaleReverse</zorder>
</widget>
</item>
<item row="1" column="0" >
@@ -187,6 +226,12 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
+ <property name="toolTip" >
+ <string>Density of major ticks</string>
+ </property>
+ <property name="whatsThis" >
+ <string>Specify the density of major ticks. The major tick interval will automatically be chosen as a power of 10 times 1,2, or 5. This changes the target tick spacing within this constraint.</string>
+ </property>
</widget>
</item>
<item row="2" column="0" >
@@ -273,71 +318,71 @@
</item>
</layout>
</item>
- <item row="1" column="0" colspan="2" >
- <widget class="QLabel" name="label_3" >
+ <item row="2" column="0" >
+ <widget class="QLabel" name="_axisMinorLineStyleLabel" >
<property name="text" >
- <string>Minor tic&k count:</string>
+ <string>Line st&yle:</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy" >
- <cstring>_axisMinorTickCount</cstring>
+ <cstring>_axisMinorLineStyle</cstring>
</property>
</widget>
</item>
- <item row="1" column="2" >
- <widget class="QSpinBox" name="_axisMinorTickCount" >
+ <item row="2" column="1" colspan="2" >
+ <widget class="QComboBox" name="_axisMinorLineStyle" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimum" >
- <number>1</number>
+ </widget>
+ </item>
+ <item row="3" column="0" >
+ <widget class="QLabel" name="label_12" >
+ <property name="text" >
+ <string>Lin&e color:</string>
</property>
- <property name="maximum" >
- <number>10</number>
+ <property name="alignment" >
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
- <property name="value" >
- <number>4</number>
+ <property name="buddy" >
+ <cstring>_axisMinorLineColor</cstring>
</property>
</widget>
</item>
- <item row="2" column="0" >
- <widget class="QLabel" name="_axisMinorLineStyleLabel" >
+ <item row="1" column="0" colspan="2" >
+ <widget class="QLabel" name="label_3" >
<property name="text" >
- <string>Line st&yle:</string>
+ <string>Minor tic&k count:</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy" >
- <cstring>_axisMinorLineStyle</cstring>
+ <cstring>_axisMinorTickCount</cstring>
</property>
</widget>
</item>
- <item row="2" column="1" colspan="2" >
- <widget class="QComboBox" name="_axisMinorLineStyle" >
+ <item row="1" column="2" >
+ <widget class="QSpinBox" name="_axisMinorTickCount" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- </widget>
- </item>
- <item row="3" column="0" >
- <widget class="QLabel" name="label_12" >
- <property name="text" >
- <string>Lin&e color:</string>
+ <property name="minimum" >
+ <number>1</number>
</property>
- <property name="alignment" >
- <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ <property name="maximum" >
+ <number>10</number>
</property>
- <property name="buddy" >
- <cstring>_axisMinorLineColor</cstring>
+ <property name="value" >
+ <number>4</number>
</property>
</widget>
</item>
@@ -350,7 +395,6 @@
<zorder>label_12</zorder>
<zorder>label_3</zorder>
<zorder>_axisMinorTickCount</zorder>
- <zorder>horizontalLayoutWidget_2</zorder>
<zorder>_axisMinorLineColor</zorder>
</widget>
</item>
--- branches/work/kst/portto4/kst/src/libkstapp/choosecolordialog.ui #957355:957356
@@ -38,6 +38,16 @@
</layout>
</widget>
</item>
+ <item row="2" column="0" >
+ <widget class="QDialogButtonBox" name="_buttonBox" >
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="standardButtons" >
+ <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+ </property>
+ </widget>
+ </item>
<item row="1" column="0" >
<widget class="QGroupBox" name="vectorGroup" >
<property name="title" >
@@ -50,7 +60,7 @@
<item row="0" column="0" >
<widget class="QRadioButton" name="_xVector" >
<property name="text" >
- <string>X Vector</string>
+ <string>&X Vector</string>
</property>
<property name="checked" >
<bool>true</bool>
@@ -60,24 +70,17 @@
<item row="0" column="1" >
<widget class="QRadioButton" name="_yVector" >
<property name="text" >
- <string>Y Vector</string>
+ <string>&Y Vector</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
- <item row="2" column="0" >
- <widget class="QDialogButtonBox" name="_buttonBox" >
- <property name="orientation" >
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="standardButtons" >
- <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
- </property>
- </widget>
- </item>
</layout>
+ <zorder>colorGroup</zorder>
+ <zorder>_buttonBox</zorder>
+ <zorder>vectorGroup</zorder>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
--- branches/work/kst/portto4/kst/src/libkstapp/contenttab.ui #957355:957356
@@ -59,11 +59,14 @@
</sizepolicy>
</property>
<property name="text" >
- <string>Available objects:</string>
+ <string>&Available objects:</string>
</property>
<property name="wordWrap" >
<bool>false</bool>
</property>
+ <property name="buddy" >
+ <cstring>_availableRelationList</cstring>
+ </property>
</widget>
</item>
<item>
@@ -85,11 +88,14 @@
</sizepolicy>
</property>
<property name="text" >
- <string>Displayed objects:</string>
+ <string>&Displayed objects:</string>
</property>
<property name="wordWrap" >
<bool>false</bool>
</property>
+ <property name="buddy" >
+ <cstring>_displayedRelationList</cstring>
+ </property>
</widget>
</item>
<item>
More information about the Kst
mailing list