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>EditorFilePage</class> <widget class="QWidget" name="EditorFilePage"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>600</width> <height>1696</height> </rect> </property> <layout class="QVBoxLayout" name="verticalLayout_6"> <item> <widget class="QLabel" name="headerLabel"> <property name="text"> <string><b>Configure file handling settings</b></string> </property> </widget> </item> <item> <widget class="Line" name="line2"> <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> <widget class="QGroupBox" name="groupBox_3"> <property name="title"> <string>Open && Close</string> </property> <layout class="QVBoxLayout" name="verticalLayout_5"> <item> <layout class="QHBoxLayout"> <item> <widget class="QCheckBox" name="clearBreakpointsCheckBox"> <property name="toolTip"> <string>Select, whether breakpoint belonging to an editor should be cleared, when the editor is closed</string> </property> <property name="text"> <string>Clear Breakpoints upon closing</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="automaticReopenCheckBox"> <property name="toolTip"> <string>Select to reread the file automatically, if it was changed externally</string> </property> <property name="text"> <string>Reread automatically when changed externally</string> </property> </widget> </item> </layout> </item> <item> <layout class="QGridLayout" name="gridLayout_6"> <item row="0" column="0"> <widget class="QLabel" name="label"> <property name="text"> <string>Warn, if file is greater than</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QSpinBox" name="warnFilesizeSpinBox"> <property name="toolTip"> <string>Enter the filesize, a warning dialog should be shown.</string> </property> <property name="suffix"> <string> KB</string> </property> <property name="minimum"> <number>1</number> </property> <property name="maximum"> <number>16384</number> </property> <property name="singleStep"> <number>16</number> </property> <property name="value"> <number>1024</number> </property> </widget> </item> <item row="0" column="2"> <spacer name="horizontalSpacer_3"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>32</width> <height>17</height> </size> </property> </spacer> </item> <item row="1" column="0"> <widget class="QLabel" name="label_13"> <property name="text"> <string>Reject, if file is greater than</string> </property> </widget> </item> <item row="1" column="1"> <widget class="QSpinBox" name="rejectFilesizeSpinBox"> <property name="toolTip"> <string>Enter the filesize, opening a file should be rejected.</string> </property> <property name="suffix"> <string> KB</string> </property> <property name="minimum"> <number>1</number> </property> <property name="maximum"> <number>16384</number> </property> <property name="singleStep"> <number>16</number> </property> <property name="value"> <number>4096</number> </property> </widget> </item> </layout> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_5"> <property name="title"> <string>End of Line</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QGroupBox" name="groupBox_8"> <property name="title"> <string>End of Line Characters</string> </property> <layout class="QHBoxLayout" name="_12"> <item> <widget class="QRadioButton" name="lfRadioButton"> <property name="toolTip"> <string>Select Unix type end of line</string> </property> <property name="text"> <string>Unix</string> </property> </widget> </item> <item> <widget class="QRadioButton" name="crRadioButton"> <property name="toolTip"> <string>Select Macintosh type end of line</string> </property> <property name="text"> <string>Macintosh</string> </property> </widget> </item> <item> <widget class="QRadioButton" name="crlfRadioButton"> <property name="toolTip"> <string>Select Windows type end of line</string> </property> <property name="text"> <string>Windows/DOS</string> </property> </widget> </item> </layout> </widget> </item> <item> <widget class="QCheckBox" name="automaticEolConversionCheckBox"> <property name="toolTip"> <string>Select whether the eol type should be converted upon opening the file.</string> </property> <property name="text"> <string>Automatic End of Line Conversion</string> </property> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_4"> <property name="title"> <string>Save</string> </property> <layout class="QVBoxLayout" name="verticalLayout_3"> <item> <widget class="QCheckBox" name="insertFinalNewlineCheckBox"> <property name="toolTip"> <string>Select to insert a final newline if none is there</string> </property> <property name="text"> <string>Insert final newline upon save</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="stripWhitespaceCheckBox"> <property name="toolTip"> <string>Select, whether trailing whitespace should be removed upon save</string> </property> <property name="text"> <string>Strip trailing whitespace upon save</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="createBackupFileCheckBox"> <property name="toolTip"> <string>Select, whether a backup file shall be generated upon save</string> </property> <property name="text"> <string>Create backup file upon save</string> </property> </widget> </item> <item> <layout class="QHBoxLayout"> <item> <widget class="QLabel" name="TextLabel13_3_3"> <property name="text"> <string>Autosave interval:</string> </property> </widget> </item> <item> <widget class="QSlider" name="autosaveSlider"> <property name="toolTip"> <string>Move to set the autosave interval in minutes (0 to disable)</string> </property> <property name="minimum"> <number>0</number> </property> <property name="maximum"> <number>30</number> </property> <property name="value"> <number>5</number> </property> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="tickInterval"> <number>1</number> </property> </widget> </item> <item> <widget class="QLCDNumber" name="autosaveLCD"> <property name="toolTip"> <string>Displays the selected autosave interval.</string> </property> <property name="digitCount"> <number>2</number> </property> <property name="segmentStyle"> <enum>QLCDNumber::Flat</enum> </property> <property name="value" stdset="0"> <double>5.000000000000000</double> </property> </widget> </item> </layout> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox"> <property name="title"> <string>Encoding</string> </property> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0" colspan="2"> <widget class="QCheckBox" name="advEncodingCheckBox"> <property name="toolTip"> <string>Select to use the advanced encoding detection </string> </property> <property name="whatsThis"> <string><b>Advanced encoding detection</b> <p>Select to use the advanced encoding detection based on the &quot;universal character encoding detector&quot; from <a href="http://chardet.feedparser.org">http://chardet.feedparser.org</a>.</p></string> </property> <property name="text"> <string>Use advanced encoding detection</string> </property> </widget> </item> <item row="1" column="0"> <widget class="QLabel" name="label_4"> <property name="text"> <string>Default Encoding:</string> </property> </widget> </item> <item row="1" column="1"> <widget class="QComboBox" name="defaultEncodingComboBox"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Select the string encoding to be used.</string> </property> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_2"> <property name="title"> <string>Default File Filters</string> </property> <layout class="QGridLayout"> <item row="0" column="0"> <widget class="QLabel" name="label_2"> <property name="text"> <string>Open Files:</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QComboBox" name="openFilesFilterComboBox"/> </item> <item row="0" column="2"> <spacer> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item row="1" column="0"> <widget class="QLabel" name="label_3"> <property name="text"> <string>Save Files:</string> </property> </widget> </item> <item row="1" column="1"> <widget class="QComboBox" name="saveFilesFilterComboBox"/> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_6"> <property name="title"> <string>Additional File Filters</string> </property> <layout class="QGridLayout" name="gridLayout_2"> <item row="0" column="0" colspan="2"> <widget class="QLabel" name="label_5"> <property name="text"> <string><b>Note:</b> Save file filters must contain one wildcard pattern only.</string> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> <item row="1" column="0" colspan="2"> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QRadioButton" name="openFiltersButton"> <property name="toolTip"> <string>Select to edit the open file filters</string> </property> <property name="text"> <string>Open Files</string> </property> <property name="checked"> <bool>true</bool> </property> </widget> </item> <item> <widget class="QRadioButton" name="savFiltersButton"> <property name="toolTip"> <string>Select to edit the save file filters</string> </property> <property name="text"> <string>Save Files</string> </property> </widget> </item> </layout> </item> <item row="2" column="0" rowspan="4"> <widget class="QListWidget" name="fileFiltersList"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>0</width> <height>200</height> </size> </property> <property name="alternatingRowColors"> <bool>true</bool> </property> <property name="sortingEnabled"> <bool>true</bool> </property> </widget> </item> <item row="2" column="1"> <widget class="QPushButton" name="addFileFilterButton"> <property name="text"> <string>Add...</string> </property> </widget> </item> <item row="3" column="1"> <widget class="QPushButton" name="editFileFilterButton"> <property name="enabled"> <bool>false</bool> </property> <property name="text"> <string>Edit...</string> </property> </widget> </item> <item row="4" column="1"> <widget class="QPushButton" name="deleteFileFilterButton"> <property name="enabled"> <bool>false</bool> </property> <property name="text"> <string>Delete</string> </property> </widget> </item> <item row="5" column="1"> <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> </item> <item> <widget class="QGroupBox" name="groupBox_7"> <property name="title"> <string>File Preview</string> </property> <layout class="QVBoxLayout" name="verticalLayout_4"> <item> <layout class="QHBoxLayout" name="horizontalLayout_5"> <item> <widget class="QLabel" name="label_8"> <property name="text"> <string>Refresh Timeout:</string> </property> </widget> </item> <item> <widget class="QSpinBox" name="previewRefreshTimeoutSpinBox"> <property name="toolTip"> <string>Enter the timeout in milliseconds until the preview is refreshed</string> </property> <property name="suffix"> <string> ms</string> </property> <property name="minimum"> <number>500</number> </property> <property name="maximum"> <number>5000</number> </property> <property name="singleStep"> <number>500</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> <item> <widget class="QGroupBox" name="groupBox_12"> <property name="title"> <string>HTML Files</string> </property> <layout class="QHBoxLayout" name="horizontalLayout_3"> <item> <widget class="QLabel" name="label_12"> <property name="text"> <string>File Extensions:</string> </property> </widget> </item> <item> <widget class="QLineEdit" name="previewHtmlExtensionsEdit"> <property name="toolTip"> <string>Enter the filename extensions of HTML files that may be previewed (separated by a space)</string> </property> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_11"> <property name="title"> <string>Markdown Files</string> </property> <layout class="QVBoxLayout" name="verticalLayout_2"> <item> <layout class="QGridLayout" name="gridLayout_4"> <item row="0" column="0"> <widget class="QLabel" name="label_11"> <property name="text"> <string>File Extensions:</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QLineEdit" name="previewMarkdownExtensionsEdit"> <property name="toolTip"> <string>Enter the filename extensions of Markdown files that may be previewed (separated by a space)</string> </property> </widget> </item> <item row="1" column="0"> <widget class="QLabel" name="label_6"> <property name="text"> <string>HTML Format:</string> </property> </widget> </item> <item row="1" column="1"> <widget class="QComboBox" name="previewMarkdownHTMLFormatComboBox"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Select the HTML format to be generated</string> </property> </widget> </item> </layout> </item> <item> <widget class="QCheckBox" name="previewMarkdownNLtoBreakCheckBox"> <property name="toolTip"> <string>Select this to convert a new line character to an HTML &lt;br/&gt; tag.</string> </property> <property name="text"> <string>Convert New Line to HTML Break</string> </property> </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout_6"> <item> <widget class="QCheckBox" name="previewMarkdownPyMdownCheckBox"> <property name="toolTip"> <string>Select to enable the use of the PyMdown extensions</string> </property> <property name="whatsThis"> <string><b>Enable PyMdown Extensions</b> <p>Select this entry to enable the use of the PyMdown extensions. These have to be installed with <code>pip install pymdown-extensions</code>.</p></string> </property> <property name="text"> <string>Enable PyMdown Extensions</string> </property> </widget> </item> <item> <widget class="QPushButton" name="previewMarkdownPyMdownInstallPushButton"> <property name="toolTip"> <string>Press to install the PyMdown extensions</string> </property> <property name="text"> <string>Install PyMdown Extensions</string> </property> </widget> </item> <item> <spacer name="horizontalSpacer_2"> <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> <item> <layout class="QGridLayout" name="gridLayout_5"> <item row="0" column="0"> <widget class="QCheckBox" name="previewMarkdownMathJaxCheckBox"> <property name="toolTip"> <string>Select to enable Math support using MathJax</string> </property> <property name="text"> <string>Enable Math support</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QCheckBox" name="previewMarkdownMermaidCheckBox"> <property name="toolTip"> <string>Select to enable Graph support using Mermaid</string> </property> <property name="text"> <string>Enable Graph support</string> </property> </widget> </item> <item row="1" column="0" colspan="2"> <widget class="QLabel" name="TextLabel1_2_2_3"> <property name="text"> <string><font color="#FF0000"><b>Warning:</b> Activating the above options will download files via CDNs causing your<br/>IP address to be exposed.</font></string> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> </layout> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_10"> <property name="title"> <string>ReST Files</string> </property> <layout class="QGridLayout" name="gridLayout_3"> <item row="0" column="0"> <widget class="QLabel" name="label_9"> <property name="text"> <string>File Extensions:</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QLineEdit" name="previewRestExtensionsEdit"> <property name="toolTip"> <string>Enter the filename extensions of ReStructuredText files that may be previewed (separated by a space)</string> </property> </widget> </item> <item row="1" column="0" colspan="2"> <widget class="QCheckBox" name="previewRestSphinxCheckBox"> <property name="toolTip"> <string>Select to use 'sphinx' to generate the ReST preview</string> </property> <property name="text"> <string>Use 'sphinx' for ReST preview</string> </property> </widget> </item> <item row="2" column="0" colspan="2"> <widget class="QGroupBox" name="groupBox_13"> <property name="title"> <string>Docutils</string> </property> <layout class="QHBoxLayout" name="horizontalLayout_4"> <item> <widget class="QLabel" name="label_7"> <property name="text"> <string>HTML Format:</string> </property> </widget> </item> <item> <widget class="QComboBox" name="previewRestDocutilsHTMLFormatComboBox"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Select the HTML format to be generated</string> </property> </widget> </item> </layout> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_9"> <property name="title"> <string>QSS Files</string> </property> <layout class="QHBoxLayout" name="horizontalLayout_2"> <item> <widget class="QLabel" name="label_10"> <property name="text"> <string>File Extensions:</string> </property> </widget> </item> <item> <widget class="QLineEdit" name="previewQssExtensionsEdit"> <property name="toolTip"> <string>Enter the filename extensions of Qt Stylesheet files that may be previewed (separated by a space)</string> </property> </widget> </item> </layout> </widget> </item> </layout> </widget> </item> </layout> </widget> <tabstops> <tabstop>clearBreakpointsCheckBox</tabstop> <tabstop>automaticReopenCheckBox</tabstop> <tabstop>warnFilesizeSpinBox</tabstop> <tabstop>rejectFilesizeSpinBox</tabstop> <tabstop>lfRadioButton</tabstop> <tabstop>crRadioButton</tabstop> <tabstop>crlfRadioButton</tabstop> <tabstop>automaticEolConversionCheckBox</tabstop> <tabstop>insertFinalNewlineCheckBox</tabstop> <tabstop>stripWhitespaceCheckBox</tabstop> <tabstop>createBackupFileCheckBox</tabstop> <tabstop>autosaveSlider</tabstop> <tabstop>advEncodingCheckBox</tabstop> <tabstop>defaultEncodingComboBox</tabstop> <tabstop>openFilesFilterComboBox</tabstop> <tabstop>saveFilesFilterComboBox</tabstop> <tabstop>openFiltersButton</tabstop> <tabstop>savFiltersButton</tabstop> <tabstop>fileFiltersList</tabstop> <tabstop>addFileFilterButton</tabstop> <tabstop>editFileFilterButton</tabstop> <tabstop>deleteFileFilterButton</tabstop> <tabstop>previewRefreshTimeoutSpinBox</tabstop> <tabstop>previewHtmlExtensionsEdit</tabstop> <tabstop>previewMarkdownExtensionsEdit</tabstop> <tabstop>previewMarkdownHTMLFormatComboBox</tabstop> <tabstop>previewMarkdownNLtoBreakCheckBox</tabstop> <tabstop>previewMarkdownPyMdownCheckBox</tabstop> <tabstop>previewMarkdownPyMdownInstallPushButton</tabstop> <tabstop>previewMarkdownMathJaxCheckBox</tabstop> <tabstop>previewMarkdownMermaidCheckBox</tabstop> <tabstop>previewRestExtensionsEdit</tabstop> <tabstop>previewRestSphinxCheckBox</tabstop> <tabstop>previewRestDocutilsHTMLFormatComboBox</tabstop> <tabstop>previewQssExtensionsEdit</tabstop> </tabstops> <resources/> <connections> <connection> <sender>autosaveSlider</sender> <signal>valueChanged(int)</signal> <receiver>autosaveLCD</receiver> <slot>display(int)</slot> <hints> <hint type="sourcelabel"> <x>272</x> <y>58</y> </hint> <hint type="destinationlabel"> <x>420</x> <y>55</y> </hint> </hints> </connection> </connections> </ui>