Mon, 07 Nov 2022 17:19:58 +0100
Corrected/acknowledged some bad import style and removed some obsolete code.
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>EditorTypingPage</class> <widget class="QWidget" name="EditorTypingPage"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>543</width> <height>518</height> </rect> </property> <property name="windowTitle"> <string/> </property> <layout class="QVBoxLayout" name="verticalLayout_3"> <item> <widget class="QLabel" name="headerLabel"> <property name="text"> <string><b>Configure typing</b></string> </property> </widget> </item> <item> <widget class="Line" name="line1"> <property name="frameShape"> <enum>QFrame::HLine</enum> </property> <property name="frameShadow"> <enum>QFrame::Sunken</enum> </property> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> </widget> </item> <item> <layout class="QHBoxLayout"> <item> <widget class="QLabel" name="TextLabel1_3"> <property name="toolTip"> <string/> </property> <property name="text"> <string>Programming Language:</string> </property> <property name="buddy"> <cstring></cstring> </property> </widget> </item> <item> <widget class="QComboBox" name="languageCombo"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Select the programming language to be configured.</string> </property> </widget> </item> </layout> </item> <item> <widget class="QStackedWidget" name="stackedWidget"> <property name="currentIndex"> <number>0</number> </property> <widget class="QWidget" name="emptyPage"/> <widget class="QWidget" name="pythonPage"> <layout class="QVBoxLayout" name="verticalLayout_2"> <property name="leftMargin"> <number>0</number> </property> <property name="rightMargin"> <number>0</number> </property> <item> <widget class="QGroupBox" name="pythonGroup"> <property name="focusPolicy"> <enum>Qt::TabFocus</enum> </property> <property name="toolTip"> <string>Select to enable Python typing aids</string> </property> <property name="title"> <string>Enable Python typing aids</string> </property> <property name="checkable"> <bool>true</bool> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QCheckBox" name="pythonInsertClosingBraceCheckBox"> <property name="toolTip"> <string>Select to insert a closing parenthesis</string> </property> <property name="text"> <string>Automatic parenthesis insertion</string> </property> </widget> </item> <item> <layout class="QHBoxLayout"> <item> <spacer> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeType"> <enum>QSizePolicy::Fixed</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QCheckBox" name="pythonSkipBraceCheckBox"> <property name="enabled"> <bool>false</bool> </property> <property name="toolTip"> <string>Select to skip matching braces when typing</string> </property> <property name="text"> <string>Automatically skip matching braces when typing</string> </property> </widget> </item> <item> <spacer> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>131</width> <height>21</height> </size> </property> </spacer> </item> </layout> </item> <item> <widget class="QCheckBox" name="pythonColonDetectionCheckBox"> <property name="toolTip"> <string>Select to skip a ':', if typed next to another ':'</string> </property> <property name="text"> <string>Automatic colon detection</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="pythonIndentBraceCheckBox"> <property name="toolTip"> <string>Select to indent after typing 'return'</string> </property> <property name="text"> <string>Automatic indent after '('</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="pythonInsertQuoteCheckBox"> <property name="toolTip"> <string>Select to insert the matching quote character</string> </property> <property name="text"> <string>Automatic quote insertion</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="pythonDedentElseCheckBox"> <property name="toolTip"> <string>Select to dedent 'else:' and 'elif' to the matching 'if'</string> </property> <property name="text"> <string>Automatic dedent of 'else:' and 'elif'</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="pythonDedentExceptCheckBox"> <property name="toolTip"> <string>Select to dedent 'except' and 'finally' to the matching 'try:'</string> </property> <property name="text"> <string>Automatic dedent of 'except' and 'finally'</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="pythonInsertImportCheckBox"> <property name="toolTip"> <string>Select to insert the 'import ' string when the line starts with 'from ...'</string> </property> <property name="text"> <string>Automatic insertion of the 'import' string on 'from xxx'</string> </property> </widget> </item> <item> <layout class="QHBoxLayout"> <item> <spacer> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeType"> <enum>QSizePolicy::Fixed</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QCheckBox" name="pythonImportBraceTypeCheckBox"> <property name="enabled"> <bool>false</bool> </property> <property name="toolTip"> <string>Select to create import statements of the form 'from ... import (...)'</string> </property> <property name="text"> <string>Generate '(...)' type import</string> </property> </widget> </item> <item> <spacer> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>261</width> <height>20</height> </size> </property> </spacer> </item> </layout> </item> <item> <widget class="QCheckBox" name="pythonInsertSelfCheckBox"> <property name="toolTip"> <string>Select to insert the 'self' string when declaring a method</string> </property> <property name="text"> <string>Automatic insertion of 'self' when declaring methods</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="pythonInsertBlankCheckBox"> <property name="toolTip"> <string>Select to insert a blank after ','</string> </property> <property name="text"> <string>Automatic insertion of ' ' (blank) after ','</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="pythonDedentDefCheckBox"> <property name="toolTip"> <string>Select to dedent 'def' statements to the last 'def' or 'class'</string> </property> <property name="text"> <string>Automatic dedent of 'def' statements</string> </property> </widget> </item> </layout> </widget> </item> <item> <spacer> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>507</width> <height>20</height> </size> </property> </spacer> </item> </layout> </widget> <widget class="QWidget" name="rubyPage"> <layout class="QVBoxLayout"> <property name="leftMargin"> <number>0</number> </property> <property name="rightMargin"> <number>0</number> </property> <item> <widget class="QGroupBox" name="rubyGroup"> <property name="focusPolicy"> <enum>Qt::TabFocus</enum> </property> <property name="toolTip"> <string>Select to enable Ruby typing aids</string> </property> <property name="title"> <string>Enable Ruby typing aids</string> </property> <property name="checkable"> <bool>true</bool> </property> <layout class="QVBoxLayout"> <item> <widget class="QCheckBox" name="rubyInsertClosingBraceCheckBox"> <property name="toolTip"> <string>Select to insert a closing parenthesis</string> </property> <property name="text"> <string>Automatic parenthesis insertion</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="rubySkipBraceCheckBox"> <property name="toolTip"> <string>Select to skip matching braces when typing</string> </property> <property name="text"> <string>Automatically skip matching braces when typing</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="rubyIndentBraceCheckBox"> <property name="toolTip"> <string>Select to indent after typing 'return'</string> </property> <property name="text"> <string>Automatic indent after '('</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="rubyInsertQuoteCheckBox"> <property name="toolTip"> <string>Select to insert the matching quote character</string> </property> <property name="text"> <string>Automatic quote insertion</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="rubyInsertBlankCheckBox"> <property name="toolTip"> <string>Select to insert a blank after ','</string> </property> <property name="text"> <string>Automatic insertion of ' ' (blank) after ','</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="rubyInsertHereDocCheckBox"> <property name="toolTip"> <string>Select to automatically complete a here document</string> </property> <property name="text"> <string>Automatic completion of here document</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="rubyInsertInlineDocCheckBox"> <property name="toolTip"> <string>Select to automatically insert '=end' after entering '=begin'</string> </property> <property name="text"> <string>Automatic insertion of '=end' after '=begin'</string> </property> </widget> </item> </layout> </widget> </item> <item> <spacer> <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> <widget class="QWidget" name="yamlPage"> <layout class="QVBoxLayout" name="verticalLayout_5"> <property name="leftMargin"> <number>0</number> </property> <property name="rightMargin"> <number>0</number> </property> <item> <widget class="QGroupBox" name="yamlGroup"> <property name="focusPolicy"> <enum>Qt::TabFocus</enum> </property> <property name="toolTip"> <string>Select to enable YAML typing aids</string> </property> <property name="title"> <string>Enable YAML typing aids</string> </property> <property name="checkable"> <bool>true</bool> </property> <layout class="QVBoxLayout" name="verticalLayout_4"> <item> <widget class="QCheckBox" name="yamlInsertClosingBraceCheckBox"> <property name="toolTip"> <string>Select to insert a closing parenthesis</string> </property> <property name="text"> <string>Automatic parenthesis insertion</string> </property> </widget> </item> <item> <layout class="QHBoxLayout" name="_2"> <item> <spacer> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeType"> <enum>QSizePolicy::Fixed</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QCheckBox" name="yamlSkipBraceCheckBox"> <property name="enabled"> <bool>false</bool> </property> <property name="toolTip"> <string>Select to skip matching braces when typing</string> </property> <property name="text"> <string>Automatically skip matching braces when typing</string> </property> </widget> </item> <item> <spacer> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>131</width> <height>21</height> </size> </property> </spacer> </item> </layout> </item> <item> <widget class="QCheckBox" name="yamlColonDetectionCheckBox"> <property name="toolTip"> <string>Select to skip a ':', if typed next to another ':'</string> </property> <property name="text"> <string>Automatic colon detection</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="yamlAutoIndentationCheckBox"> <property name="toolTip"> <string>Select to indent after typing 'return'</string> </property> <property name="text"> <string>Automatic indent after ':', '-', '|', '|-', '|+', '>', '>-', '>+'</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="yamlInsertQuoteCheckBox"> <property name="toolTip"> <string>Select to insert the matching quote character</string> </property> <property name="text"> <string>Automatic quote insertion</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="yamlInsertBlankColonCheckBox"> <property name="toolTip"> <string>Select to insert a blank after ':'</string> </property> <property name="text"> <string>Automatic insertion of ' ' (blank) after ':'</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="yamlInsertBlankDashCheckBox"> <property name="toolTip"> <string>Select to insert a blank after '-'</string> </property> <property name="text"> <string>Automatic insertion of ' ' (blank) after '-'</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="yamlInsertBlankQuestionCheckBox"> <property name="toolTip"> <string>Select to insert a blank after '?'</string> </property> <property name="text"> <string>Automatic insertion of ' ' (blank) after '?'</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="yamlInsertBlankCommaCheckBox"> <property name="toolTip"> <string>Select to insert a blank after ','</string> </property> <property name="text"> <string>Automatic insertion of ' ' (blank) after ','</string> </property> </widget> </item> </layout> </widget> </item> <item> <spacer name="verticalSpacer"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>89</height> </size> </property> </spacer> </item> </layout> </widget> </widget> </item> <item> <spacer> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>519</width> <height>20</height> </size> </property> </spacer> </item> </layout> </widget> <tabstops> <tabstop>languageCombo</tabstop> <tabstop>pythonGroup</tabstop> <tabstop>pythonInsertClosingBraceCheckBox</tabstop> <tabstop>pythonSkipBraceCheckBox</tabstop> <tabstop>pythonColonDetectionCheckBox</tabstop> <tabstop>pythonIndentBraceCheckBox</tabstop> <tabstop>pythonInsertQuoteCheckBox</tabstop> <tabstop>pythonDedentElseCheckBox</tabstop> <tabstop>pythonDedentExceptCheckBox</tabstop> <tabstop>pythonInsertImportCheckBox</tabstop> <tabstop>pythonImportBraceTypeCheckBox</tabstop> <tabstop>pythonInsertSelfCheckBox</tabstop> <tabstop>pythonInsertBlankCheckBox</tabstop> <tabstop>pythonDedentDefCheckBox</tabstop> <tabstop>rubyGroup</tabstop> <tabstop>rubyInsertClosingBraceCheckBox</tabstop> <tabstop>rubySkipBraceCheckBox</tabstop> <tabstop>rubyIndentBraceCheckBox</tabstop> <tabstop>rubyInsertQuoteCheckBox</tabstop> <tabstop>rubyInsertBlankCheckBox</tabstop> <tabstop>rubyInsertHereDocCheckBox</tabstop> <tabstop>rubyInsertInlineDocCheckBox</tabstop> </tabstops> <resources/> <connections> <connection> <sender>pythonInsertClosingBraceCheckBox</sender> <signal>toggled(bool)</signal> <receiver>pythonSkipBraceCheckBox</receiver> <slot>setEnabled(bool)</slot> <hints> <hint type="sourcelabel"> <x>139</x> <y>141</y> </hint> <hint type="destinationlabel"> <x>210</x> <y>172</y> </hint> </hints> </connection> <connection> <sender>pythonInsertClosingBraceCheckBox</sender> <signal>toggled(bool)</signal> <receiver>pythonSkipBraceCheckBox</receiver> <slot>setChecked(bool)</slot> <hints> <hint type="sourcelabel"> <x>236</x> <y>141</y> </hint> <hint type="destinationlabel"> <x>246</x> <y>172</y> </hint> </hints> </connection> <connection> <sender>pythonInsertImportCheckBox</sender> <signal>toggled(bool)</signal> <receiver>pythonImportBraceTypeCheckBox</receiver> <slot>setEnabled(bool)</slot> <hints> <hint type="sourcelabel"> <x>103</x> <y>353</y> </hint> <hint type="destinationlabel"> <x>140</x> <y>384</y> </hint> </hints> </connection> <connection> <sender>yamlInsertClosingBraceCheckBox</sender> <signal>toggled(bool)</signal> <receiver>yamlSkipBraceCheckBox</receiver> <slot>setEnabled(bool)</slot> <hints> <hint type="sourcelabel"> <x>104</x> <y>128</y> </hint> <hint type="destinationlabel"> <x>106</x> <y>160</y> </hint> </hints> </connection> <connection> <sender>yamlInsertClosingBraceCheckBox</sender> <signal>toggled(bool)</signal> <receiver>yamlSkipBraceCheckBox</receiver> <slot>setChecked(bool)</slot> <hints> <hint type="sourcelabel"> <x>222</x> <y>129</y> </hint> <hint type="destinationlabel"> <x>222</x> <y>160</y> </hint> </hints> </connection> </connections> </ui>