reorder and group the preferences in the GUI prefs user interface panel

This commit is contained in:
Jean-Francois Dockes 2020-11-18 17:28:43 +01:00
parent ec48ed391f
commit 0445302350

View File

@ -28,13 +28,25 @@
</attribute> </attribute>
<layout class="QVBoxLayout"> <layout class="QVBoxLayout">
<item> <item>
<layout class="QVBoxLayout"> <widget class="QPushButton" name="viewActionPB">
<property name="text">
<string>Choose editor applications</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item> <item>
<layout class="QHBoxLayout"> <layout class="QHBoxLayout">
<item> <item>
<widget class="QLabel" name="textLabelqtc"> <widget class="QLabel" name="textLabelSST">
<property name="text"> <property name="text">
<string>Highlight CSS style for query terms</string> <string>Start with simple search mode</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
@ -42,26 +54,25 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLineEdit" name="qtermStyleLE"> <widget class="QComboBox" name="ssearchTypCMB"/>
<property name="minimumSize">
<size>
<width>50</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Query terms highlighting in results. &lt;br&gt;Maybe try something like &quot;color:red;background:yellow&quot; for something more lively than the default blue...</string>
</property>
</widget>
</item> </item>
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QHBoxLayout"> <layout class="QHBoxLayout">
<item> <item>
<widget class="QLabel" name="tLSTL"> <widget class="QLabel" name="hsLBL">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Limit the size of the search history. Use 0 to disable, -1 for unlimited.</string>
</property>
<property name="text"> <property name="text">
<string>Application Qt style sheet</string> <string>Maximum size of search history (0: disable, -1: unlimited):</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
@ -69,27 +80,165 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="stylesheetPB"> <widget class="QSpinBox" name="maxHistSizeSB">
<property name="toolTip"> <property name="minimum">
<string>Opens a dialog to select the style sheet file</string> <number>-1</number>
</property> </property>
<property name="text"> <property name="value">
<string>Choose</string> <number>0</number>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="resetSSPB">
<property name="toolTip">
<string>Resets the style sheet to default</string>
</property>
<property name="text">
<string>Reset</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QCheckBox" name="initStartAdvCB">
<property name="text">
<string>Start with advanced search dialog open.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="keepSortCB">
<property name="text">
<string>Remember sort activation state.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout1">
<item>
<widget class="QLabel" name="label1">
<property name="toolTip">
<string>Decide if document filters are shown as radio buttons, toolbar combobox, or menu.</string>
</property>
<property name="text">
<string>Document filter choice style:</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="filterBT_RB">
<property name="text">
<string>Buttons Panel</string>
</property>
<attribute name="buttonGroup">
<string notr="true">buttonGroup_2</string>
</attribute>
</widget>
</item>
<item>
<widget class="QRadioButton" name="filterCMB_RB">
<property name="text">
<string>Toolbar Combobox</string>
</property>
<attribute name="buttonGroup">
<string notr="true">buttonGroup_2</string>
</attribute>
</widget>
</item>
<item>
<widget class="QRadioButton" name="filterMN_RB">
<property name="text">
<string>Menu</string>
</property>
<attribute name="buttonGroup">
<string notr="true">buttonGroup_2</string>
</attribute>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="showTempFileWarningCB">
<property name="text">
<string>Show warning when opening temporary file.</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="showTrayIconCB">
<property name="text">
<string>Show system tray icon.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="closeToTrayCB">
<property name="text">
<string>Close to tray instead of exiting.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="trayMessagesCB">
<property name="text">
<string>Generate desktop notifications.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="noBeepsCB">
<property name="text">
<string>Suppress all beeps.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="ssNoCompleteCB">
<property name="text">
<string>Disable Qt autocompletion in search entry.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="ssSearchOnCompleteCB">
<property name="text">
<string>Start search on completer popup activation.</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item> <item>
<layout class="QHBoxLayout"> <layout class="QHBoxLayout">
<item> <item>
@ -197,62 +346,18 @@
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QPushButton" name="viewActionPB"> <widget class="Line" name="line">
<property name="text"> <property name="orientation">
<string>Choose editor applications</string> <enum>Qt::Horizontal</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout1">
<item>
<widget class="QLabel" name="label1">
<property name="toolTip">
<string>Decide if document filters are shown as radio buttons, toolbar combobox, or menu.</string>
</property>
<property name="text">
<string>Document filter choice style:</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="filterBT_RB">
<property name="text">
<string>Buttons Panel</string>
</property>
<attribute name="buttonGroup">
<string notr="true">buttonGroup_2</string>
</attribute>
</widget>
</item>
<item>
<widget class="QRadioButton" name="filterCMB_RB">
<property name="text">
<string>Toolbar Combobox</string>
</property>
<attribute name="buttonGroup">
<string notr="true">buttonGroup_2</string>
</attribute>
</widget>
</item>
<item>
<widget class="QRadioButton" name="filterMN_RB">
<property name="text">
<string>Menu</string>
</property>
<attribute name="buttonGroup">
<string notr="true">buttonGroup_2</string>
</attribute>
</widget>
</item>
</layout>
</item>
<item> <item>
<layout class="QHBoxLayout"> <layout class="QHBoxLayout">
<item> <item>
<widget class="QLabel" name="textLabelSST"> <widget class="QLabel" name="textLabelqtc">
<property name="text"> <property name="text">
<string>Start with simple search mode</string> <string>Highlight CSS style for query terms</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
@ -260,25 +365,26 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="ssearchTypCMB"/> <widget class="QLineEdit" name="qtermStyleLE">
<property name="minimumSize">
<size>
<width>50</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Query terms highlighting in results. &lt;br&gt;Maybe try something like &quot;color:red;background:yellow&quot; for something more lively than the default blue...</string>
</property>
</widget>
</item> </item>
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QHBoxLayout"> <layout class="QHBoxLayout">
<item> <item>
<widget class="QLabel" name="hsLBL"> <widget class="QLabel" name="tLSTL">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Limit the size of the search history. Use 0 to disable, -1 for unlimited.</string>
</property>
<property name="text"> <property name="text">
<string>Maximum size of search history (0: disable, -1: unlimited):</string> <string>Application Qt style sheet</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
@ -286,107 +392,30 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QSpinBox" name="maxHistSizeSB"> <widget class="QPushButton" name="stylesheetPB">
<property name="minimum"> <property name="toolTip">
<number>-1</number> <string>Opens a dialog to select the style sheet file</string>
</property> </property>
<property name="value"> <property name="text">
<number>0</number> <string>Choose</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="resetSSPB">
<property name="toolTip">
<string>Resets the style sheet to default</string>
</property>
<property name="text">
<string>Reset</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QCheckBox" name="ssNoCompleteCB">
<property name="text">
<string>Disable Qt autocompletion in search entry.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="ssSearchOnCompleteCB">
<property name="text">
<string>Start search on completer popup activation.</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="initStartAdvCB">
<property name="text">
<string>Start with advanced search dialog open.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="keepSortCB">
<property name="text">
<string>Remember sort activation state.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="showTrayIconCB">
<property name="text">
<string>Show system tray icon.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="closeToTrayCB">
<property name="text">
<string>Close to tray instead of exiting.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="trayMessagesCB">
<property name="text">
<string>Generate desktop notifications.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="showTempFileWarningCB">
<property name="text">
<string>Show warning when opening temporary file.</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="noBeepsCB">
<property name="text">
<string>Suppress all beeps.</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item> <item>
<spacer name="spacer4"> <spacer name="spacer4">
<property name="orientation"> <property name="orientation">
@ -403,8 +432,16 @@
</property> </property>
</spacer> </spacer>
</item> </item>
</layout>
</item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="tab_2"> <widget class="QWidget" name="tab_2">