summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-02-05 14:08:50 +0100
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-02-06 14:10:33 +0100
commitd668b9b1f15d7f0448d7a6cdc7a4e345b2436d22 (patch)
tree60d8fbbe339baef11f9d341616c57aab11c57c85
parent0bab3d91e6681e171a3454ea030fe0002bd23481 (diff)
downloadqt-creator-d668b9b1f15d7f0448d7a6cdc7a4e345b2436d22.tar.gz
Added tooltips to editor settings and tweaked layout
Looks a bit nicer now and the tooltips explain some of the options a bit better. Header texts have also been simplified. (cherry picked from commit ad5bdf6969d250bc138f5cd1d2b92be8b5c4dc6d)
-rw-r--r--src/plugins/cpptools/completionsettingspage.ui11
-rw-r--r--src/plugins/texteditor/behaviorsettingspage.ui255
-rw-r--r--src/plugins/texteditor/displaysettingspage.ui129
-rw-r--r--src/plugins/texteditor/fontsettingspage.ui4
4 files changed, 224 insertions, 175 deletions
diff --git a/src/plugins/cpptools/completionsettingspage.ui b/src/plugins/cpptools/completionsettingspage.ui
index c71a2abc82..a044376bc7 100644
--- a/src/plugins/cpptools/completionsettingspage.ui
+++ b/src/plugins/cpptools/completionsettingspage.ui
@@ -17,11 +17,14 @@
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
- <string>Completion Settings</string>
+ <string>Code Completion</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QCheckBox" name="caseSensitive">
+ <property name="toolTip">
+ <string>Do a case-sensitive match for completion items.</string>
+ </property>
<property name="text">
<string>&amp;Case-sensitive completion</string>
</property>
@@ -32,6 +35,9 @@
</item>
<item>
<widget class="QCheckBox" name="autoInsertBraces">
+ <property name="toolTip">
+ <string>Automatically insert (, ) and ; when appropriate.</string>
+ </property>
<property name="text">
<string>&amp;Automatically insert braces</string>
</property>
@@ -42,6 +48,9 @@
</item>
<item>
<widget class="QCheckBox" name="partiallyComplete">
+ <property name="toolTip">
+ <string>Insert the common prefix of available completion items.</string>
+ </property>
<property name="text">
<string>Autocomplete common &amp;prefix</string>
</property>
diff --git a/src/plugins/texteditor/behaviorsettingspage.ui b/src/plugins/texteditor/behaviorsettingspage.ui
index e6414918c2..64febb27e5 100644
--- a/src/plugins/texteditor/behaviorsettingspage.ui
+++ b/src/plugins/texteditor/behaviorsettingspage.ui
@@ -6,27 +6,144 @@
<rect>
<x>0</x>
<y>0</y>
- <width>484</width>
- <height>398</height>
+ <width>428</width>
+ <height>384</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
- <item row="0" column="0">
- <widget class="QGroupBox" name="groupBoxTabAndIndentSettings">
+ <item row="1" column="0">
+ <widget class="QGroupBox" name="groupBoxStorageSettings">
<property name="title">
- <string>Tab/Indent Settings</string>
+ <string>Storage</string>
</property>
- <layout class="QGridLayout" name="gridLayout">
+ <layout class="QVBoxLayout" name="verticalLayout_3">
+ <item>
+ <widget class="QCheckBox" name="cleanWhitespace">
+ <property name="toolTip">
+ <string>Removes trailing whitespace on saving.</string>
+ </property>
+ <property name="text">
+ <string>&amp;Clean whitespace</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>30</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="inEntireDocument">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="toolTip">
+ <string>Clean whitespace in entire document instead of only for changed parts.</string>
+ </property>
+ <property name="text">
+ <string>In entire &amp;document</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="cleanIndentationLayout">
+ <item>
+ <spacer name="cleanIndentationSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>30</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="cleanIndentation">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="toolTip">
+ <string>Correct leading whitespace according to tab settings.</string>
+ </property>
+ <property name="text">
+ <string>Clean indentation</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="addFinalNewLine">
+ <property name="text">
+ <string>&amp;Ensure newline at end of file</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="2" column="0">
+ <widget class="QGroupBox" name="groupBoxInteractionSettings">
+ <property name="title">
+ <string>Interaction</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
- <widget class="QCheckBox" name="autoIndent">
+ <widget class="QCheckBox" name="useVim">
+ <property name="toolTip">
+ <string/>
+ </property>
<property name="text">
- <string>Enable automatic &amp;indentation</string>
+ <string>Use &quot;vi&quot; style editing</string>
</property>
</widget>
</item>
+ </layout>
+ </widget>
+ </item>
+ <item row="3" column="0">
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>8</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="0" column="0">
+ <widget class="QGroupBox" name="groupBoxTabAndIndentSettings">
+ <property name="title">
+ <string>Tabs and Indentation</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout">
<item row="0" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
@@ -89,13 +206,6 @@
</property>
</spacer>
</item>
- <item row="1" column="0">
- <widget class="QCheckBox" name="insertSpaces">
- <property name="text">
- <string>Insert &amp;spaces instead of tabs</string>
- </property>
- </widget>
- </item>
<item row="1" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
@@ -145,8 +255,11 @@
</item>
</layout>
</item>
- <item row="2" column="0">
+ <item row="3" column="0">
<widget class="QCheckBox" name="smartBackspace">
+ <property name="toolTip">
+ <string>Backspace will go back one indentation level instead of one space.</string>
+ </property>
<property name="text">
<string>&amp;Backspace follows indentation</string>
</property>
@@ -168,121 +281,23 @@
</property>
</spacer>
</item>
- </layout>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QGroupBox" name="groupBoxStorageSettings">
- <property name="title">
- <string>Storage Settings</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_3">
- <item>
- <widget class="QCheckBox" name="cleanWhitespace">
- <property name="text">
- <string>&amp;Clean whitespace</string>
- </property>
- </widget>
- </item>
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout_2">
- <item>
- <spacer name="horizontalSpacer_2">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>QSizePolicy::Fixed</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>30</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QCheckBox" name="inEntireDocument">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="text">
- <string>In entire &amp;document</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item>
- <layout class="QHBoxLayout" name="cleanIndentationLayout">
- <item>
- <spacer name="cleanIndentationSpacer">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>QSizePolicy::Fixed</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>30</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QCheckBox" name="cleanIndentation">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="text">
- <string>Clean indentation</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item>
- <widget class="QCheckBox" name="addFinalNewLine">
+ <item row="0" column="0">
+ <widget class="QCheckBox" name="insertSpaces">
<property name="text">
- <string>&amp;Ensure newline at end of file</string>
+ <string>Insert &amp;spaces instead of tabs</string>
</property>
</widget>
</item>
- </layout>
- </widget>
- </item>
- <item row="2" column="0">
- <widget class="QGroupBox" name="groupBoxInteractionSettings">
- <property name="title">
- <string>Interaction Settings</string>
- </property>
- <layout class="QGridLayout" name="gridLayout_2">
- <item row="0" column="0">
- <widget class="QCheckBox" name="useVim">
+ <item row="1" column="0">
+ <widget class="QCheckBox" name="autoIndent">
<property name="text">
- <string>Use &quot;vi&quot; style editing</string>
+ <string>Enable automatic &amp;indentation</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
- <item row="3" column="0">
- <spacer name="verticalSpacer">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>8</height>
- </size>
- </property>
- </spacer>
- </item>
</layout>
</widget>
<resources/>
diff --git a/src/plugins/texteditor/displaysettingspage.ui b/src/plugins/texteditor/displaysettingspage.ui
index 30fdf5cf93..59c8d676b2 100644
--- a/src/plugins/texteditor/displaysettingspage.ui
+++ b/src/plugins/texteditor/displaysettingspage.ui
@@ -6,70 +6,58 @@
<rect>
<x>0</x>
<y>0</y>
- <width>514</width>
- <height>194</height>
+ <width>381</width>
+ <height>279</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
- <item row="0" column="0">
- <widget class="QGroupBox" name="groupBoxDisplaySettings">
+ <item row="2" column="0">
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>8</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="1" column="0">
+ <widget class="QGroupBox" name="groupBox">
<property name="title">
- <string>Display Settings</string>
+ <string>Display</string>
</property>
- <layout class="QGridLayout">
- <item row="0" column="1">
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
- <widget class="QCheckBox" name="showWrapColumn">
- <property name="text">
- <string>Display right &amp;margin at column</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QSpinBox" name="wrapColumn">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="maximum">
- <number>999</number>
- </property>
- </widget>
- </item>
- </layout>
- </item>
+ <layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
- <widget class="QCheckBox" name="enableTextWrapping">
- <property name="text">
- <string>Enable text &amp;wrapping</string>
- </property>
- </widget>
- </item>
- <item row="3" column="0">
<widget class="QCheckBox" name="displayLineNumbers">
<property name="text">
<string>Display line &amp;numbers</string>
</property>
</widget>
</item>
- <item row="3" column="1">
- <widget class="QCheckBox" name="visualizeWhitespace">
+ <item row="1" column="0">
+ <widget class="QCheckBox" name="displayFoldingMarkers">
<property name="text">
- <string>&amp;Visualize whitespace</string>
+ <string>Display &amp;folding markers</string>
</property>
</widget>
</item>
- <item row="4" column="0">
- <widget class="QCheckBox" name="displayFoldingMarkers">
+ <item row="2" column="0">
+ <widget class="QCheckBox" name="visualizeWhitespace">
+ <property name="toolTip">
+ <string>Show tabs and spaces.</string>
+ </property>
<property name="text">
- <string>Display &amp;folding markers</string>
+ <string>&amp;Visualize whitespace</string>
</property>
</widget>
</item>
- <item row="4" column="1">
+ <item row="3" column="0">
<widget class="QCheckBox" name="highlightCurrentLine">
<property name="text">
<string>Highlight current &amp;line</string>
@@ -79,18 +67,55 @@
</layout>
</widget>
</item>
- <item row="1" column="0">
- <spacer name="verticalSpacer">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>8</height>
- </size>
+ <item row="0" column="0">
+ <widget class="QGroupBox" name="groupBoxDisplaySettings">
+ <property name="title">
+ <string>Text Wrapping</string>
</property>
- </spacer>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
+ <widget class="QCheckBox" name="enableTextWrapping">
+ <property name="text">
+ <string>Enable text &amp;wrapping</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <widget class="QCheckBox" name="showWrapColumn">
+ <property name="text">
+ <string>Display right &amp;margin at column:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QSpinBox" name="wrapColumn">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="maximum">
+ <number>999</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>
+ </layout>
+ </widget>
</item>
</layout>
</widget>
diff --git a/src/plugins/texteditor/fontsettingspage.ui b/src/plugins/texteditor/fontsettingspage.ui
index 770d5e2935..8aafb751b2 100644
--- a/src/plugins/texteditor/fontsettingspage.ui
+++ b/src/plugins/texteditor/fontsettingspage.ui
@@ -23,7 +23,7 @@
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
- <string>General Font Settings</string>
+ <string>Font</string>
</property>
<layout class="QHBoxLayout">
<property name="spacing">
@@ -119,7 +119,7 @@
</sizepolicy>
</property>
<property name="title">
- <string>Item Specific Settings</string>
+ <string>Color Scheme</string>
</property>
<layout class="QHBoxLayout">
<property name="spacing">