mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
When not configured otherwise in the Preferences Dialog register a SQLite function for performing the regular expression matching which SQLite doesn't implement. This adds support for the REGEXP operator even when no extension which implements this is loaded. See issue #215.
653 lines
19 KiB
XML
653 lines
19 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>PreferencesDialog</class>
|
|
<widget class="QDialog" name="PreferencesDialog">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>590</width>
|
|
<height>405</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Preferences</string>
|
|
</property>
|
|
<property name="modal">
|
|
<bool>true</bool>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QTabWidget" name="tabWidget">
|
|
<property name="currentIndex">
|
|
<number>0</number>
|
|
</property>
|
|
<widget class="QWidget" name="tab_4">
|
|
<attribute name="title">
|
|
<string>&General</string>
|
|
</attribute>
|
|
<layout class="QFormLayout" name="formLayout_3">
|
|
<item row="1" column="1">
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="QLineEdit" name="locationEdit">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>316</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QToolButton" name="setLocationButton">
|
|
<property name="text">
|
|
<string>...</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="label_4">
|
|
<property name="text">
|
|
<string>Default &location</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>locationEdit</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="label_9">
|
|
<property name="text">
|
|
<string>Lan&guage</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>languageComboBox</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QComboBox" name="languageComboBox">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="sizeAdjustPolicy">
|
|
<enum>QComboBox::AdjustToContents</enum>
|
|
</property>
|
|
<property name="minimumContentsLength">
|
|
<number>35</number>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>20</width>
|
|
<height>15</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="labelUpdates">
|
|
<property name="text">
|
|
<string>Automatic &updates</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>checkUpdates</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QCheckBox" name="checkUpdates">
|
|
<property name="text">
|
|
<string>enabled</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="tab">
|
|
<attribute name="title">
|
|
<string>&Database</string>
|
|
</attribute>
|
|
<layout class="QFormLayout" name="formLayout">
|
|
<property name="fieldGrowthPolicy">
|
|
<enum>QFormLayout::FieldsStayAtSizeHint</enum>
|
|
</property>
|
|
<property name="labelAlignment">
|
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
</property>
|
|
<property name="formAlignment">
|
|
<set>Qt::AlignHCenter|Qt::AlignTop</set>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string>Database &encoding</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>encodingComboBox</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QComboBox" name="encodingComboBox">
|
|
<item>
|
|
<property name="text">
|
|
<string notr="true">UTF-8</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string notr="true">UTF-16</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="label_5">
|
|
<property name="toolTip">
|
|
<string>Open databases with foreign keys enabled.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Foreign keys</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>foreignKeysCheckBox</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QCheckBox" name="foreignKeysCheckBox">
|
|
<property name="text">
|
|
<string>enabled</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="label_8">
|
|
<property name="text">
|
|
<string>Remove line breaks in schema view</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>checkHideSchemaLinebreaks</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QCheckBox" name="checkHideSchemaLinebreaks"/>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="text">
|
|
<string>&Prefetch block size</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>spinPrefetchSize</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QSpinBox" name="spinPrefetchSize">
|
|
<property name="minimum">
|
|
<number>255</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>1000000</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<spacer name="horizontalSpacer_2">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>180</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="tab_2">
|
|
<attribute name="title">
|
|
<string>&SQL</string>
|
|
</attribute>
|
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
|
<item>
|
|
<widget class="QTreeWidget" name="treeSyntaxHighlighting">
|
|
<property name="showDropIndicator" stdset="0">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="rootIsDecorated">
|
|
<bool>false</bool>
|
|
</property>
|
|
<column>
|
|
<property name="text">
|
|
<string>Settings name</string>
|
|
</property>
|
|
</column>
|
|
<column>
|
|
<property name="text">
|
|
<string>Context</string>
|
|
</property>
|
|
</column>
|
|
<column>
|
|
<property name="text">
|
|
<string>Colour</string>
|
|
</property>
|
|
</column>
|
|
<column>
|
|
<property name="text">
|
|
<string>Bold</string>
|
|
</property>
|
|
</column>
|
|
<column>
|
|
<property name="text">
|
|
<string>Italic</string>
|
|
</property>
|
|
</column>
|
|
<column>
|
|
<property name="text">
|
|
<string>Underline</string>
|
|
</property>
|
|
</column>
|
|
<item>
|
|
<property name="text">
|
|
<string notr="true">keyword</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Keyword</string>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>function</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Function</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string notr="true">table</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Table</string>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string notr="true">comment</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Comment</string>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string notr="true">identifier</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Identifier</string>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string notr="true">string</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>String</string>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>currentline</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Current line</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>null</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Null</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QFormLayout" name="formLayout_2">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="label_6">
|
|
<property name="text">
|
|
<string>SQL &editor font size</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>spinEditorFontSize</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QSpinBox" name="spinEditorFontSize">
|
|
<property name="minimum">
|
|
<number>1</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QSpinBox" name="spinLogFontSize">
|
|
<property name="minimum">
|
|
<number>1</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="label_7">
|
|
<property name="text">
|
|
<string>SQL &log font size</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>spinLogFontSize</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="tab_3">
|
|
<attribute name="title">
|
|
<string>&Extensions</string>
|
|
</attribute>
|
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
<item>
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="text">
|
|
<string>Select extensions to load for every database:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<item>
|
|
<widget class="QListWidget" name="listExtensions">
|
|
<property name="editTriggers">
|
|
<set>QAbstractItemView::NoEditTriggers</set>
|
|
</property>
|
|
<property name="showDropIndicator" stdset="0">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
<item>
|
|
<widget class="QToolButton" name="buttonAddExtension">
|
|
<property name="toolTip">
|
|
<string>Add extension</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="icons/icons.qrc">
|
|
<normaloff>:/icons/load_extension</normaloff>:/icons/load_extension</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QToolButton" name="buttonRemoveExtension">
|
|
<property name="toolTip">
|
|
<string>Remove extension</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="icons/icons.qrc">
|
|
<normaloff>:/icons/remove_extension</normaloff>:/icons/remove_extension</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="verticalSpacer">
|
|
<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>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="checkRegexDisabled">
|
|
<property name="toolTip">
|
|
<string><html><head/><body><p>While supporting the REGEXP operator SQLite doesn't implement any regular expression<br/>algorithm but calls back the running application. DB Browser for SQLite implements this<br/>algorithm for you to let you use REGEXP out of the box. However, as there are multiple possible<br/>implementations of this and you might want to use another one, you're free to disable the<br/>application's implementation and load your own by using an extension. Requires restart of the application.</p></body></html></string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Disable Regular Expression extension</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QDialogButtonBox" name="buttonBox">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="standardButtons">
|
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<tabstops>
|
|
<tabstop>locationEdit</tabstop>
|
|
<tabstop>setLocationButton</tabstop>
|
|
<tabstop>languageComboBox</tabstop>
|
|
<tabstop>checkUpdates</tabstop>
|
|
<tabstop>encodingComboBox</tabstop>
|
|
<tabstop>foreignKeysCheckBox</tabstop>
|
|
<tabstop>checkHideSchemaLinebreaks</tabstop>
|
|
<tabstop>spinPrefetchSize</tabstop>
|
|
<tabstop>treeSyntaxHighlighting</tabstop>
|
|
<tabstop>spinEditorFontSize</tabstop>
|
|
<tabstop>spinLogFontSize</tabstop>
|
|
<tabstop>listExtensions</tabstop>
|
|
<tabstop>buttonAddExtension</tabstop>
|
|
<tabstop>buttonRemoveExtension</tabstop>
|
|
<tabstop>tabWidget</tabstop>
|
|
</tabstops>
|
|
<resources>
|
|
<include location="icons/icons.qrc"/>
|
|
</resources>
|
|
<connections>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>accepted()</signal>
|
|
<receiver>PreferencesDialog</receiver>
|
|
<slot>saveSettings()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>269</x>
|
|
<y>395</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>155</x>
|
|
<y>143</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>rejected()</signal>
|
|
<receiver>PreferencesDialog</receiver>
|
|
<slot>reject()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>337</x>
|
|
<y>395</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>286</x>
|
|
<y>144</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>buttonAddExtension</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>PreferencesDialog</receiver>
|
|
<slot>addExtension()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>119</x>
|
|
<y>82</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>245</x>
|
|
<y>137</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>buttonRemoveExtension</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>PreferencesDialog</receiver>
|
|
<slot>removeExtension()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>119</x>
|
|
<y>82</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>245</x>
|
|
<y>137</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>treeSyntaxHighlighting</sender>
|
|
<signal>itemDoubleClicked(QTreeWidgetItem*,int)</signal>
|
|
<receiver>PreferencesDialog</receiver>
|
|
<slot>showColourDialog(QTreeWidgetItem*,int)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>101</x>
|
|
<y>46</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>395</x>
|
|
<y>-1</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>setLocationButton</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>PreferencesDialog</receiver>
|
|
<slot>chooseLocation()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>568</x>
|
|
<y>71</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>294</x>
|
|
<y>202</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
<slots>
|
|
<slot>saveSettings()</slot>
|
|
<slot>chooseLocation()</slot>
|
|
<slot>showColourDialog(QTreeWidgetItem*,int)</slot>
|
|
<slot>addExtension()</slot>
|
|
<slot>removeExtension()</slot>
|
|
</slots>
|
|
</ui>
|