This commit is contained in:
Kovid Goyal 2017-09-30 14:54:03 +05:30
parent 012cda06b8
commit 11b6278d7f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -14,334 +14,388 @@
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="7" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>What to search by default</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="label">
<property name="text">
<string>When you enter a search term without a prefix, by default calibre will search all metadata for matches. For example, entering, &quot;asimov&quot; will search not just authors but title/tags/series/comments/etc. Use these options if you would like to change this behavior.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QCheckBox" name="opt_limit_search_columns">
<property name="text">
<string>&amp;Limit the searched metadata</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>&amp;Columns that non-prefixed searches are limited to:</string>
</property>
<property name="buddy">
<cstring>opt_limit_search_columns_to</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="EditWithComplete" name="opt_limit_search_columns_to"/>
</item>
<item row="5" column="0" colspan="2">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Note that this option affects all searches, including saved searches and restrictions. Therefore, if you use this option, it is best to ensure that you always use prefixes in your saved searches. For example, use &quot;series:Foundation&quot; rather than just &quot;Foundation&quot; in a saved search</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="10" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox22">
<property name="title">
<string>What to search when searching similar books</string>
</property>
<layout class="QGridLayout" name="gridLayout_22">
<item row="0" column="0" colspan="6">
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;p&gt;When you search for similar books by right clicking the
book and selecting &quot;Similar books...&quot;,
calibre constructs a search using the column lookup names specified below.
By changing the lookup name to a grouped search term you can
search multiple columns at once.&lt;/p&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_221">
<property name="text">
<string>Similar auth&amp;ors: </string>
</property>
<property name="buddy">
<cstring>similar_authors_search_key</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="similar_authors_search_key">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>10</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QComboBox" name="opt_similar_authors_match_kind"/>
</item>
<item row="1" column="3">
<widget class="QLabel" name="label_222">
<property name="text">
<string>Similar s&amp;eries: </string>
</property>
<property name="buddy">
<cstring>similar_series_search_key</cstring>
</property>
</widget>
</item>
<item row="1" column="4">
<widget class="QComboBox" name="similar_series_search_key">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>10</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="1" column="5">
<widget class="QComboBox" name="opt_similar_series_match_kind"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_223">
<property name="text">
<string>Similar ta&amp;gs: </string>
</property>
<property name="buddy">
<cstring>similar_tags_search_key</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="similar_tags_search_key"/>
</item>
<item row="2" column="2">
<widget class="QComboBox" name="opt_similar_tags_match_kind"/>
</item>
<item row="2" column="3">
<widget class="QLabel" name="label_224">
<property name="text">
<string>Similar &amp;publishers: </string>
</property>
<property name="buddy">
<cstring>similar_publisher_search_key</cstring>
</property>
</widget>
</item>
<item row="2" column="4">
<widget class="QComboBox" name="similar_publisher_search_key"/>
</item>
<item row="2" column="5">
<widget class="QComboBox" name="opt_similar_publisher_match_kind"/>
</item>
</layout>
</widget>
</item>
<item row="8" column="0" colspan="2">
<widget class="QPushButton" name="clear_history_button">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Clear search histories from all over calibre. Including the book list, E-book viewer, fetch news dialog, etc.</string>
</property>
<property name="text">
<string>Clear search &amp;histories</string>
</property>
</widget>
</item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QCheckBox" name="opt_search_as_you_type"> <widget class="QTabWidget" name="tabWidget">
<property name="text"> <property name="currentIndex">
<string>Search as you &amp;type</string> <number>0</number>
</property> </property>
</widget> <widget class="QWidget" name="tab">
</item> <attribute name="title">
<item row="1" column="0" colspan="2"> <string>Genera&amp;l</string>
<widget class="QCheckBox" name="opt_highlight_search_matches"> </attribute>
<property name="text"> <layout class="QGridLayout" name="gridLayout_6">
<string>&amp;Highlight search results instead of restricting the book list to the results</string> <item row="3" column="1">
</property> <widget class="QCheckBox" name="opt_use_primary_find_in_search">
</widget> <property name="text">
</item> <string>Unaccented characters match &amp;accented characters</string>
<item row="9" column="0" colspan="2"> </property>
<widget class="QGroupBox" name="groupBox_2"> </widget>
<property name="title"> </item>
<string>Grouped search terms</string> <item row="5" column="0">
</property> <widget class="QPushButton" name="clear_history_button">
<layout class="QGridLayout" name="gridLayout_3"> <property name="sizePolicy">
<item row="0" column="0"> <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<layout class="QHBoxLayout" name="l12"> <horstretch>0</horstretch>
<item> <verstretch>0</verstretch>
<widget class="QLabel" name="la10"> </sizepolicy>
<property name="text"> </property>
<string>&amp;Names:</string> <property name="toolTip">
</property> <string>Clear search histories from all over calibre. Including the book list, E-book viewer, fetch news dialog, etc.</string>
<property name="buddy"> </property>
<cstring>gst_names</cstring> <property name="text">
</property> <string>Clear search &amp;histories</string>
</widget> </property>
</item> </widget>
<item> </item>
<widget class="QComboBox" name="gst_names"> <item row="4" column="0" colspan="2">
<property name="sizePolicy"> <widget class="QGroupBox" name="groupBox">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <property name="title">
<horstretch>0</horstretch> <string>What to search by default</string>
<verstretch>0</verstretch> </property>
</sizepolicy> <layout class="QGridLayout" name="gridLayout_2">
</property> <item row="0" column="0" colspan="2">
<property name="toolTip"> <widget class="QLabel" name="label">
<string>Contains the names of the currently-defined group search terms. <property name="text">
<string>When you enter a search term without a prefix, by default calibre will search all metadata for matches. For example, entering, &quot;asimov&quot; will search not just authors but title/tags/series/comments/etc. Use these options if you would like to change this behavior.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QCheckBox" name="opt_limit_search_columns">
<property name="text">
<string>&amp;Limit the searched metadata</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>&amp;Columns that non-prefixed searches are limited to:</string>
</property>
<property name="buddy">
<cstring>opt_limit_search_columns_to</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="EditWithComplete" name="opt_limit_search_columns_to"/>
</item>
<item row="5" column="0" colspan="2">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Note that this option affects all searches, including saved searches and restrictions. Therefore, if you use this option, it is best to ensure that you always use prefixes in your saved searches. For example, use &quot;series:Foundation&quot; rather than just &quot;Foundation&quot; in a saved search</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="opt_search_as_you_type">
<property name="text">
<string>Search as you &amp;type</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="opt_case_sensitive">
<property name="text">
<string>Case &amp;sensitive searching</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QCheckBox" name="opt_highlight_search_matches">
<property name="text">
<string>&amp;Highlight search results instead of restricting the book list to the results</string>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="opt_show_highlight_toggle_button">
<property name="toolTip">
<string>&lt;p&gt;This option will cause a small button to appear next to the Search bar. Clicking the button will toggle between showing only the search results and showing all books with the search results highlighted.</string>
</property>
<property name="text">
<string>Show a &amp;quick toggle button to switch between highlighting and restricting results next to the Search bar</string>
</property>
</widget>
</item>
<item row="6" column="0">
<spacer name="verticalSpacer_2">
<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="tab_2">
<attribute name="title">
<string>&amp;Grouped searches</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Grouped search terms</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<layout class="QHBoxLayout" name="l12">
<item>
<widget class="QLabel" name="la10">
<property name="text">
<string>&amp;Names:</string>
</property>
<property name="buddy">
<cstring>gst_names</cstring>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="gst_names">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Contains the names of the currently-defined group search terms.
Create a new name by entering it into the empty box, then Create a new name by entering it into the empty box, then
pressing Save. Rename a search term by selecting it then pressing Save. Rename a search term by selecting it then
changing the name and pressing Save. Change the value of changing the name and pressing Save. Change the value of
a search term by changing the value box then pressing Save.</string> a search term by changing the value box then pressing Save.</string>
</property> </property>
<property name="editable"> <property name="editable">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="minimumContentsLength"> <property name="minimumContentsLength">
<number>10</number> <number>10</number>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="gst_delete_button"> <widget class="QToolButton" name="gst_delete_button">
<property name="toolTip"> <property name="toolTip">
<string>Delete the current search term</string> <string>Delete the current search term</string>
</property> </property>
<property name="text"> <property name="text">
<string>...</string> <string>...</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../../../resources/images.qrc"> <iconset resource="../../../../resources/images.qrc">
<normaloff>:/images/trash.png</normaloff>:/images/trash.png</iconset> <normaloff>:/images/trash.png</normaloff>:/images/trash.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="EditWithComplete" name="gst_value"/> <widget class="EditWithComplete" name="gst_value"/>
</item> </item>
<item> <item>
<widget class="QToolButton" name="gst_save_button"> <widget class="QToolButton" name="gst_save_button">
<property name="toolTip"> <property name="toolTip">
<string>Save the current search term. You can rename a search term by <string>Save the current search term. You can rename a search term by
changing the name then pressing Save. You can change the value changing the name then pressing Save. You can change the value
of a search term by changing the value box then pressing Save.</string> of a search term by changing the value box then pressing Save.</string>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Save</string> <string>&amp;Save</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item row="0" column="1" rowspan="3"> <item row="0" column="1" rowspan="3">
<widget class="QTextBrowser" name="gst_explanation"> <widget class="QTextBrowser" name="gst_explanation">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>100</verstretch> <verstretch>100</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<layout class="QHBoxLayout"> <layout class="QHBoxLayout">
<item> <item>
<widget class="QLabel" name="l11"> <widget class="QLabel" name="l11">
<property name="text"> <property name="text">
<string>Make &amp;user categories from:</string> <string>Make &amp;user categories from:</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>opt_grouped_search_make_user_categories</cstring> <cstring>opt_grouped_search_make_user_categories</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="EditWithComplete" name="opt_grouped_search_make_user_categories"> <widget class="EditWithComplete" name="opt_grouped_search_make_user_categories">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Enter the names of any grouped search terms you wish <string>Enter the names of any grouped search terms you wish
to be shown as user categories</string> to be shown as user categories</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item row="2" column="0"> <item row="2" column="0">
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>20</width> <width>20</width>
<height>40</height> <height>40</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="2"> </layout>
<widget class="QCheckBox" name="opt_show_highlight_toggle_button"> </widget>
<property name="toolTip"> <widget class="QWidget" name="tab_3">
<string>&lt;p&gt;This option will cause a small button to appear next to the Search bar. Clicking the button will toggle between showing only the search results and showing all books with the search results highlighted.</string> <attribute name="title">
</property> <string>&amp;Similar books</string>
<property name="text"> </attribute>
<string>Show a &amp;quick toggle button to switch between highlighting and restricting results next to the Search bar</string> <layout class="QGridLayout" name="gridLayout_5">
</property> <item row="0" column="0">
</widget> <widget class="QGroupBox" name="groupBox22">
</item> <property name="title">
<item row="3" column="0"> <string>What to search when searching similar books</string>
<widget class="QCheckBox" name="opt_case_sensitive"> </property>
<property name="text"> <layout class="QGridLayout" name="gridLayout_22">
<string>Case &amp;sensitive searching</string> <item row="0" column="0" colspan="6">
</property> <widget class="QLabel" name="label">
</widget> <property name="text">
</item> <string>&lt;p&gt;When you search for similar books by right clicking the
<item row="3" column="1"> book and selecting &quot;Similar books...&quot;,
<widget class="QCheckBox" name="opt_use_primary_find_in_search"> calibre constructs a search using the column lookup names specified below.
<property name="text"> By changing the lookup name to a grouped search term you can
<string>Unaccented characters match &amp;accented characters</string> search multiple columns at once.&lt;/p&gt;</string>
</property> </property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_221">
<property name="text">
<string>S&amp;imilar authors: </string>
</property>
<property name="buddy">
<cstring>similar_authors_search_key</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="similar_authors_search_key">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>10</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QComboBox" name="opt_similar_authors_match_kind"/>
</item>
<item row="1" column="3">
<widget class="QLabel" name="label_222">
<property name="text">
<string>Si&amp;milar series: </string>
</property>
<property name="buddy">
<cstring>similar_series_search_key</cstring>
</property>
</widget>
</item>
<item row="1" column="4">
<widget class="QComboBox" name="similar_series_search_key">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>10</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="1" column="5">
<widget class="QComboBox" name="opt_similar_series_match_kind"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_223">
<property name="text">
<string>Similar &amp;tags: </string>
</property>
<property name="buddy">
<cstring>similar_tags_search_key</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="similar_tags_search_key"/>
</item>
<item row="2" column="2">
<widget class="QComboBox" name="opt_similar_tags_match_kind"/>
</item>
<item row="2" column="3">
<widget class="QLabel" name="label_224">
<property name="text">
<string>Simi&amp;lar publishers: </string>
</property>
<property name="buddy">
<cstring>similar_publisher_search_key</cstring>
</property>
</widget>
</item>
<item row="2" column="4">
<widget class="QComboBox" name="similar_publisher_search_key"/>
</item>
<item row="2" column="5">
<widget class="QComboBox" name="opt_similar_publisher_match_kind"/>
</item>
<item row="3" column="1">
<spacer name="verticalSpacer_3">
<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>
</layout>
</widget>
</widget> </widget>
</item> </item>
</layout> </layout>