completionsettingspage.ui 10.1 KB
Newer Older
1 2
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
3
 <class>TextEditor::Internal::CompletionSettingsPage</class>
4
 <widget class="QWidget" name="CppTools::Internal::CompletionSettingsPage">
5 6 7 8
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
9 10
    <width>511</width>
    <height>420</height>
11 12
   </rect>
  </property>
13
  <layout class="QVBoxLayout" name="verticalLayout_2">
14
   <item>
15
    <widget class="QGroupBox" name="groupBox">
16 17 18
     <property name="title">
      <string>Behavior</string>
     </property>
19
     <layout class="QGridLayout" name="gridLayout">
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
      <item row="1" column="0">
       <widget class="QLabel" name="completionTriggerLabel">
        <property name="text">
         <string>Activate completion:</string>
        </property>
       </widget>
      </item>
      <item row="0" column="2" colspan="4">
       <spacer name="horizontalSpacer">
        <property name="orientation">
         <enum>Qt::Horizontal</enum>
        </property>
        <property name="sizeHint" stdset="0">
         <size>
          <width>70</width>
          <height>24</height>
         </size>
        </property>
       </spacer>
39
      </item>
40 41 42 43 44 45 46 47 48 49
      <item row="0" column="0">
       <widget class="QLabel" name="caseSensitivityLabel">
        <property name="text">
         <string>&amp;Case-sensitivity:</string>
        </property>
        <property name="buddy">
         <cstring>caseSensitivity</cstring>
        </property>
       </widget>
      </item>
50
      <item row="0" column="1">
51 52 53 54 55 56 57
       <widget class="QComboBox" name="caseSensitivity">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
58
        <item>
59 60 61
         <property name="text">
          <string>Full</string>
         </property>
62 63
        </item>
        <item>
64 65 66
         <property name="text">
          <string>None</string>
         </property>
67 68
        </item>
        <item>
69 70 71
         <property name="text">
          <string>First Letter</string>
         </property>
72
        </item>
73 74
       </widget>
      </item>
75
      <item row="1" column="1" colspan="2">
76
       <widget class="QComboBox" name="completionTrigger">
77
        <item>
78 79 80
         <property name="text">
          <string>Manually</string>
         </property>
81
        </item>
82 83 84 85 86 87 88 89 90 91 92 93
        <item>
         <property name="text">
          <string>When Triggered</string>
         </property>
        </item>
        <item>
         <property name="text">
          <string>Always</string>
         </property>
        </item>
       </widget>
      </item>
94 95 96 97 98 99 100
      <item row="1" column="3">
       <widget class="QLabel" name="automaticProposalTimeoutLabel">
        <property name="text">
         <string>Timeout in ms:</string>
        </property>
       </widget>
      </item>
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
      <item row="1" column="4">
       <widget class="QSpinBox" name="automaticProposalTimeoutSpinBox">
        <property name="maximum">
         <number>500</number>
        </property>
        <property name="singleStep">
         <number>50</number>
        </property>
        <property name="value">
         <number>400</number>
        </property>
       </widget>
      </item>
      <item row="1" column="5">
       <spacer name="horizontalSpacer_3">
        <property name="orientation">
         <enum>Qt::Horizontal</enum>
        </property>
        <property name="sizeHint" stdset="0">
         <size>
          <width>40</width>
          <height>24</height>
         </size>
        </property>
       </spacer>
      </item>
127 128
      <item row="2" column="0">
       <widget class="QCheckBox" name="partiallyComplete">
129
        <property name="toolTip">
jkobus's avatar
jkobus committed
130
         <string>Inserts the common prefix of available completion items.</string>
131
        </property>
132
        <property name="text">
133
         <string>Autocomplete common &amp;prefix</string>
134 135 136 137 138 139
        </property>
        <property name="checked">
         <bool>true</bool>
        </property>
       </widget>
      </item>
140 141 142 143 144 145 146
      <item row="3" column="0">
       <widget class="QCheckBox" name="autoSplitStrings">
        <property name="toolTip">
         <string>Splits a string into two lines by adding an end quote at the cursor position when you press Enter and a start quote to the next line, before the rest of the string.

In addition, Shift+Enter inserts an escape character at the cursor position and moves the rest of the string to the next line.</string>
        </property>
147
        <property name="text">
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
         <string>Automatically split strings</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item>
    <widget class="QGroupBox" name="autoInsertGroupBox">
     <property name="title">
      <string>&amp;Automatically insert matching characters</string>
     </property>
     <layout class="QGridLayout" name="gridLayout_2">
      <item row="0" column="0">
       <widget class="QCheckBox" name="insertBrackets">
        <property name="text">
         <string>Insert opening or closing brackets</string>
        </property>
        <property name="checked">
         <bool>true</bool>
168 169 170
        </property>
       </widget>
      </item>
171 172 173 174 175 176 177 178 179 180 181 182
      <item row="0" column="1">
       <widget class="QCheckBox" name="insertQuotes">
        <property name="text">
         <string>Insert closing quote</string>
        </property>
        <property name="checked">
         <bool>true</bool>
        </property>
       </widget>
      </item>
      <item row="1" column="0">
       <widget class="QCheckBox" name="surroundBrackets">
183
        <property name="toolTip">
184
         <string>When typing a matching bracket and there is a text selection, instead of removing the selection, surrounds it with the corresponding characters.</string>
185
        </property>
186
        <property name="text">
187
         <string>Surround text selection with brackets</string>
188 189 190 191 192 193
        </property>
        <property name="checked">
         <bool>true</bool>
        </property>
       </widget>
      </item>
194 195 196 197
      <item row="2" column="0">
       <widget class="QCheckBox" name="spaceAfterFunctionName">
        <property name="enabled">
         <bool>true</bool>
198
        </property>
199 200
        <property name="text">
         <string>Insert &amp;space after function name</string>
201
        </property>
202 203 204 205 206 207 208 209 210 211 212 213
       </widget>
      </item>
      <item row="1" column="1">
       <widget class="QCheckBox" name="surroundQuotes">
        <property name="toolTip">
         <string>When typing a matching quote and there is a text selection, instead of removing the selection, surrounds it with the corresponding characters.</string>
        </property>
        <property name="text">
         <string>Surround text selection with quotes</string>
        </property>
        <property name="checked">
         <bool>true</bool>
214 215
        </property>
       </widget>
216
      </item>
217
     </layout>
218 219
    </widget>
   </item>
220 221 222 223 224 225 226 227 228
   <item>
    <widget class="QGroupBox" name="docCommentsGroup">
     <property name="title">
      <string>Documentation Comments</string>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout">
      <item>
       <widget class="QCheckBox" name="enableDoxygenCheckBox">
        <property name="toolTip">
Jarek Kobus's avatar
Jarek Kobus committed
229
         <string>Automatically creates a Doxygen comment upon pressing enter after a '/**', '/*!', '//!' or '///'.</string>
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256
        </property>
        <property name="text">
         <string>Enable Doxygen blocks</string>
        </property>
       </widget>
      </item>
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout_3">
        <item>
         <spacer name="horizontalSpacer_5">
          <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="generateBriefCheckBox">
          <property name="toolTip">
257
           <string>Generates a &lt;i&gt;brief&lt;/i&gt; command with an initial description for the corresponding declaration.</string>
258 259 260 261 262 263 264 265 266 267 268
          </property>
          <property name="text">
           <string>Generate brief description</string>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item>
       <widget class="QCheckBox" name="leadingAsterisksCheckBox">
        <property name="toolTip">
269
         <string>Adds leading asterisks when continuing C/C++ &quot;/*&quot;, Qt &quot;/*!&quot; and Java &quot;/**&quot; style comments on new lines.</string>
270 271 272 273 274 275 276 277 278
        </property>
        <property name="text">
         <string>Add leading asterisks</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
279
   <item>
280
    <spacer name="verticalSpacer_2">
281 282 283 284 285 286 287 288 289 290 291 292 293
     <property name="orientation">
      <enum>Qt::Vertical</enum>
     </property>
     <property name="sizeHint" stdset="0">
      <size>
       <width>20</width>
       <height>40</height>
      </size>
     </property>
    </spacer>
   </item>
  </layout>
 </widget>
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308
 <tabstops>
  <tabstop>caseSensitivity</tabstop>
  <tabstop>completionTrigger</tabstop>
  <tabstop>automaticProposalTimeoutSpinBox</tabstop>
  <tabstop>partiallyComplete</tabstop>
  <tabstop>autoSplitStrings</tabstop>
  <tabstop>insertBrackets</tabstop>
  <tabstop>insertQuotes</tabstop>
  <tabstop>surroundBrackets</tabstop>
  <tabstop>surroundQuotes</tabstop>
  <tabstop>spaceAfterFunctionName</tabstop>
  <tabstop>enableDoxygenCheckBox</tabstop>
  <tabstop>generateBriefCheckBox</tabstop>
  <tabstop>leadingAsterisksCheckBox</tabstop>
 </tabstops>
309
 <resources/>
310
 <connections>
311 312 313 314 315 316 317
  <connection>
   <sender>enableDoxygenCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>generateBriefCheckBox</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
318 319
     <x>174</x>
     <y>294</y>
320 321
    </hint>
    <hint type="destinationlabel">
322 323
     <x>262</x>
     <y>321</y>
324 325 326
    </hint>
   </hints>
  </connection>
327
 </connections>
328
</ui>