|
104 | 104 | <item row="3" column="0"> |
105 | 105 | <spacer name="verticalSpacer_5"> |
106 | 106 | <property name="orientation"> |
107 | | - <enum>Qt::Vertical</enum> |
| 107 | + <enum>Qt::Orientation::Vertical</enum> |
108 | 108 | </property> |
109 | 109 | <property name="sizeHint" stdset="0"> |
110 | 110 | <size> |
|
159 | 159 | <item row="0" column="3"> |
160 | 160 | <spacer name="horizontalSpacer"> |
161 | 161 | <property name="orientation"> |
162 | | - <enum>Qt::Horizontal</enum> |
| 162 | + <enum>Qt::Orientation::Horizontal</enum> |
163 | 163 | </property> |
164 | 164 | <property name="sizeHint" stdset="0"> |
165 | 165 | <size> |
|
209 | 209 | <item> |
210 | 210 | <spacer name="verticalSpacer_4"> |
211 | 211 | <property name="orientation"> |
212 | | - <enum>Qt::Vertical</enum> |
| 212 | + <enum>Qt::Orientation::Vertical</enum> |
213 | 213 | </property> |
214 | 214 | <property name="sizeHint" stdset="0"> |
215 | 215 | <size> |
|
253 | 253 | </widget> |
254 | 254 | </item> |
255 | 255 | <item> |
256 | | - <widget class="QCheckBox" name="checkBox_AutocompleteAllScripts"> |
257 | | - <property name="toolTip"> |
258 | | - <string><html><head/><body><p>If checked, the list of suggestions when typing in an Event's Script field will include all global script labels in the project. Enabling this setting will make Porymap's startup slower.</p></body></html></string> |
259 | | - </property> |
260 | | - <property name="text"> |
261 | | - <string>Autocomplete Script labels using all possible scripts</string> |
| 256 | + <widget class="QGroupBox" name="groupBox_ScriptAutocomplete"> |
| 257 | + <property name="title"> |
| 258 | + <string>Script label autocomplete</string> |
262 | 259 | </property> |
| 260 | + <layout class="QVBoxLayout" name="verticalLayout_7"> |
| 261 | + <item> |
| 262 | + <widget class="QRadioButton" name="radioButton_AutocompleteAllScripts"> |
| 263 | + <property name="toolTip"> |
| 264 | + <string><html><head/><body><p>If checked, the list of suggestions when typing in an Event's Script field will include all global script labels in the project. This is the slowest option for Porymap's project opening.</p></body></html></string> |
| 265 | + </property> |
| 266 | + <property name="text"> |
| 267 | + <string>All possible scripts</string> |
| 268 | + </property> |
| 269 | + </widget> |
| 270 | + </item> |
| 271 | + <item> |
| 272 | + <widget class="QRadioButton" name="radioButton_AutocompleteCommonScripts"> |
| 273 | + <property name="toolTip"> |
| 274 | + <string><html><head/><body><p>If checked, the list of suggestions when typing in an Event's Script field will include script labels from the current map's scripts file, scripts in-use by the map's other events, and all script files in the <span style=" font-family:'SFMono-Regular','Menlo','Monaco','Consolas','Liberation Mono','Courier New','Courier','monospace'; font-size:11px; color:#e74c3c; background-color:#ffffff;">data_scripts_folders </span>folder.</p></body></html></string> |
| 275 | + </property> |
| 276 | + <property name="text"> |
| 277 | + <string>Current map, and global script files</string> |
| 278 | + </property> |
| 279 | + </widget> |
| 280 | + </item> |
| 281 | + <item> |
| 282 | + <widget class="QRadioButton" name="radioButton_AutocompleteMapScripts"> |
| 283 | + <property name="toolTip"> |
| 284 | + <string><html><head/><body><p>If checked, the list of suggestions when typing in an Event's Script field will only include script labels from the current map's scripts file and scripts in-use by the map's other events. This is the fastest option for Porymap's project opening.</p></body></html></string> |
| 285 | + </property> |
| 286 | + <property name="text"> |
| 287 | + <string>Current map only</string> |
| 288 | + </property> |
| 289 | + </widget> |
| 290 | + </item> |
| 291 | + </layout> |
263 | 292 | </widget> |
264 | 293 | </item> |
265 | 294 | <item> |
|
294 | 323 | <item> |
295 | 324 | <spacer name="verticalSpacer_3"> |
296 | 325 | <property name="orientation"> |
297 | | - <enum>Qt::Vertical</enum> |
| 326 | + <enum>Qt::Orientation::Vertical</enum> |
298 | 327 | </property> |
299 | 328 | <property name="sizeHint" stdset="0"> |
300 | 329 | <size> |
|
323 | 352 | <item> |
324 | 353 | <widget class="QScrollArea" name="scrollArea_TextEditor"> |
325 | 354 | <property name="frameShape"> |
326 | | - <enum>QFrame::NoFrame</enum> |
| 355 | + <enum>QFrame::Shape::NoFrame</enum> |
327 | 356 | </property> |
328 | 357 | <property name="widgetResizable"> |
329 | 358 | <bool>true</bool> |
|
333 | 362 | <rect> |
334 | 363 | <x>0</x> |
335 | 364 | <y>0</y> |
336 | | - <width>476</width> |
337 | | - <height>343</height> |
| 365 | + <width>495</width> |
| 366 | + <height>376</height> |
338 | 367 | </rect> |
339 | 368 | </property> |
340 | 369 | <layout class="QGridLayout" name="gridLayout_2"> |
341 | 370 | <property name="sizeConstraint"> |
342 | | - <enum>QLayout::SetMinimumSize</enum> |
| 371 | + <enum>QLayout::SizeConstraint::SetMinimumSize</enum> |
343 | 372 | </property> |
344 | 373 | <item row="6" column="0" colspan="2"> |
345 | 374 | <widget class="QLabel" name="label_TextEditorGotoLineHelp"> |
346 | 375 | <property name="text"> |
347 | 376 | <string><html><head/><body><p>When this command is set a button will appear next to the <span style=" font-weight:600; font-style:italic;">Script</span> combo-box in the <span style=" font-weight:600; font-style:italic;">Events</span> tab which executes this command.<span style=" font-weight:600;"> %F</span> will be substituted with the file path of the script and <span style=" font-weight:600;">%L</span> will be substituted with the line number of the script in that file. <span style=" font-weight:600;">%F </span><span style=" font-style:italic;">must</span> be given if <span style=" font-weight:600;">%L</span> is given. If <span style=" font-weight:600;">%F</span> is <span style=" font-style:italic;">not</span> given then the script's file path will be added to the end of the command. If the script can't be found then the current map's scripts file is opened.</p></body></html></string> |
348 | 377 | </property> |
349 | 378 | <property name="alignment"> |
350 | | - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> |
| 379 | + <set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set> |
351 | 380 | </property> |
352 | 381 | <property name="wordWrap"> |
353 | 382 | <bool>true</bool> |
|
380 | 409 | <string><html><head/><body><p>This is the command that is executed when clicking <span style=" font-weight:600; font-style:italic;">Open Project in Text Editor</span> in the <span style=" font-weight:600; font-style:italic;">Tools</span> menu. <span style=" font-weight:600;">%D</span> will be substituted with the project's root directory. If <span style=" font-weight:600;">%D</span> is <span style=" font-style:italic;">not</span> specified then the project directory will be added to the end of the command.</p></body></html></string> |
381 | 410 | </property> |
382 | 411 | <property name="alignment"> |
383 | | - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> |
| 412 | + <set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set> |
384 | 413 | </property> |
385 | 414 | <property name="wordWrap"> |
386 | 415 | <bool>true</bool> |
|
410 | 439 | <item row="2" column="0" colspan="2"> |
411 | 440 | <spacer name="verticalSpacer_2"> |
412 | 441 | <property name="orientation"> |
413 | | - <enum>Qt::Vertical</enum> |
| 442 | + <enum>Qt::Orientation::Vertical</enum> |
414 | 443 | </property> |
415 | 444 | <property name="sizeType"> |
416 | | - <enum>QSizePolicy::Fixed</enum> |
| 445 | + <enum>QSizePolicy::Policy::Fixed</enum> |
417 | 446 | </property> |
418 | 447 | <property name="sizeHint" stdset="0"> |
419 | 448 | <size> |
|
426 | 455 | <item row="7" column="0" colspan="2"> |
427 | 456 | <spacer name="verticalSpacer"> |
428 | 457 | <property name="orientation"> |
429 | | - <enum>Qt::Vertical</enum> |
| 458 | + <enum>Qt::Orientation::Vertical</enum> |
430 | 459 | </property> |
431 | 460 | <property name="sizeHint" stdset="0"> |
432 | 461 | <size> |
|
447 | 476 | <item> |
448 | 477 | <widget class="QDialogButtonBox" name="buttonBox"> |
449 | 478 | <property name="standardButtons"> |
450 | | - <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> |
| 479 | + <set>QDialogButtonBox::StandardButton::Apply|QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set> |
451 | 480 | </property> |
452 | 481 | </widget> |
453 | 482 | </item> |
|
0 commit comments