<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>Form</class>
 <widget class="QWidget" name="Form">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>1035</width>
    <height>547</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Form</string>
  </property>
  <layout class="QGridLayout" name="gridLayout">
   <item row="0" column="0">
    <widget class="ScrollingTabWidget" name="tabWidget">
     <property name="currentIndex">
      <number>0</number>
     </property>
     <widget class="QWidget" name="tab">
      <attribute name="title">
       <string>Reading &amp;metadata</string>
      </attribute>
      <layout class="QVBoxLayout" name="verticalLayout">
       <item>
        <widget class="QLabel" name="label_4">
         <property name="text">
          <string>Here you can control how calibre will read metadata from the files you add to it. calibre can either read metadata from the contents of the file, or from the filename.</string>
         </property>
         <property name="wordWrap">
          <bool>true</bool>
         </property>
        </widget>
       </item>
       <item>
        <widget class="QCheckBox" name="opt_read_file_metadata">
         <property name="toolTip">
          <string/>
         </property>
         <property name="text">
          <string>Read &amp;metadata from file contents rather than file name</string>
         </property>
        </widget>
       </item>
       <item>
        <widget class="QCheckBox" name="opt_swap_author_names">
         <property name="toolTip">
          <string>Swap the first name and last name of the author. This affects only metadata read from file names.</string>
         </property>
         <property name="text">
          <string>&amp;Swap author first name and last name when reading author from filename</string>
         </property>
        </widget>
       </item>
       <item>
        <widget class="QGroupBox" name="metadata_box">
         <property name="minimumSize">
          <size>
           <width>0</width>
           <height>100</height>
          </size>
         </property>
         <property name="title">
          <string>Configure metadata from file name</string>
         </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>
     </widget>
     <widget class="QWidget" name="actions_tab">
      <attribute name="title">
       <string>Adding &amp;actions</string>
      </attribute>
      <layout class="QFormLayout" name="formLayout_2">
       <item row="0" column="0" colspan="2">
        <widget class="QCheckBox" name="opt_mark_new_books">
         <property name="text">
          <string>&amp;Mark newly added books</string>
         </property>
        </widget>
       </item>
       <item row="1" column="0" colspan="2">
        <widget class="Line" name="line_2">
         <property name="orientation">
          <enum>Qt::Horizontal</enum>
         </property>
        </widget>
       </item>
       <item row="2" column="0" colspan="2">
        <widget class="QCheckBox" name="opt_preserve_date_on_ctl">
         <property name="text">
          <string>When using the  &quot;&amp;Copy to library&quot; action to copy books between libraries, preserve the date</string>
         </property>
        </widget>
       </item>
       <item row="3" column="0" colspan="2">
        <widget class="QCheckBox" name="opt_check_for_dupes_on_ctl">
         <property name="text">
          <string>When using the &quot;Copy to library&quot; action check for &amp;duplicates with the same title, author and language</string>
         </property>
        </widget>
       </item>
       <item row="4" column="0" colspan="2">
        <widget class="Line" name="line">
         <property name="orientation">
          <enum>Qt::Horizontal</enum>
         </property>
        </widget>
       </item>
       <item row="5" column="0" colspan="2">
        <widget class="QCheckBox" name="opt_manual_add_auto_convert">
         <property name="text">
          <string>Automatically &amp;convert added books to the preferred output format</string>
         </property>
        </widget>
       </item>
       <item row="6" column="0" colspan="2">
        <widget class="QCheckBox" name="opt_auto_convert_same_fmt">
         <property name="toolTip">
          <string>This will force an automatic conversion even if the file being added is the same format as the output format. For example, if you set your output format to EPUB and add an EPUB file, an EPUB to EPUB conversion will be run.</string>
         </property>
         <property name="text">
          <string>When auto-converting, convert even if the format being added is the &amp;same as the output format</string>
         </property>
        </widget>
       </item>
       <item row="7" column="0" colspan="2">
        <widget class="Line" name="line_3">
         <property name="orientation">
          <enum>Qt::Horizontal</enum>
         </property>
        </widget>
       </item>
       <item row="8" column="0">
        <widget class="QCheckBox" name="opt_add_formats_to_existing">
         <property name="toolTip">
          <string>&lt;p&gt;Auto-merge: If books with similar titles and authors are found, merge the incoming formats automatically into existing book records. The box to the right controls what happens when an existing record already has the incoming format. Note that this option also affects the Copy to library action.&lt;/p&gt;
&lt;p&gt;Title match ignores leading indefinite articles (&quot;the&quot;, &quot;a&quot;, &quot;an&quot;), punctuation, case, etc. Author match is exact.&lt;/p&gt;</string>
         </property>
         <property name="text">
          <string>&amp;Auto-merge added books if they already exist:</string>
         </property>
        </widget>
       </item>
       <item row="8" column="1">
        <widget class="QComboBox" name="opt_automerge">
         <property name="toolTip">
          <string>Auto-merge: If books with similar titles and authors are found, merge the incoming formats (files) automatically into
existing book records. This box controls what happens when an existing record already has
the incoming format:

Ignore duplicate incoming formats - means that existing formats in your calibre library will not be replaced
Overwrite existing duplicate formats - means that existing formats in your calibre library will be replaced
Create new record for each duplicate formats - means that a new book entry will be created for each duplicate formats

Title matching ignores leading indefinite articles (&quot;the&quot;, &quot;a&quot;, &quot;an&quot;), punctuation, case, etc.
Author matching is exact.</string>
         </property>
        </widget>
       </item>
       <item row="9" column="0">
        <widget class="Line" name="line_6">
         <property name="orientation">
          <enum>Qt::Horizontal</enum>
         </property>
        </widget>
       </item>
       <item row="10" column="0" colspan="2">
        <widget class="Line" name="line_4">
         <property name="orientation">
          <enum>Qt::Horizontal</enum>
         </property>
        </widget>
       </item>
       <item row="11" column="0">
        <widget class="QLabel" name="label_230">
         <property name="text">
          <string>&amp;Tags to apply when adding a book:</string>
         </property>
         <property name="buddy">
          <cstring>opt_new_book_tags</cstring>
         </property>
        </widget>
       </item>
       <item row="11" column="1">
        <widget class="QLineEdit" name="opt_new_book_tags">
         <property name="sizePolicy">
          <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
         <property name="toolTip">
          <string>A comma-separated list of tags that will be applied to books added to the library</string>
         </property>
        </widget>
       </item>
       <item row="12" column="0">
        <widget class="Line" name="line_7">
         <property name="orientation">
          <enum>Qt::Horizontal</enum>
         </property>
        </widget>
       </item>
       <item row="13" column="0" colspan="2">
        <widget class="Line" name="line_8">
         <property name="orientation">
          <enum>Qt::Horizontal</enum>
         </property>
        </widget>
       </item>
       <item row="14" column="0">
        <widget class="QLabel" name="label_5">
         <property name="text">
          <string>Contro&amp;l how tags are processed:</string>
         </property>
         <property name="buddy">
          <cstring>tag_map_rules_button</cstring>
         </property>
        </widget>
       </item>
       <item row="14" column="1">
        <widget class="QPushButton" name="tag_map_rules_button">
         <property name="toolTip">
          <string>Create rules that can filter or transform tags on added books automatically as soon as they are added. </string>
         </property>
         <property name="text">
          <string>&amp;Rules to filter tags read from metadata</string>
         </property>
        </widget>
       </item>
       <item row="16" column="0" colspan="2">
        <widget class="Line" name="line_5">
         <property name="orientation">
          <enum>Qt::Horizontal</enum>
         </property>
        </widget>
       </item>
       <item row="18" column="0">
        <widget class="QLabel" name="label_6">
         <property name="text">
          <string>Control which files are added during bul&amp;k imports:</string>
         </property>
         <property name="buddy">
          <cstring>add_filter_rules_button</cstring>
         </property>
        </widget>
       </item>
       <item row="18" column="1">
        <widget class="QPushButton" name="add_filter_rules_button">
         <property name="toolTip">
          <string>&lt;p&gt;You can specify rules to add/ignore files here. These will be used when recursively adding books from folders.</string>
         </property>
         <property name="text">
          <string>Rules to filter added &amp;files</string>
         </property>
        </widget>
       </item>
       <item row="15" column="0">
        <widget class="QLabel" name="label_7">
         <property name="text">
          <string>Control how auth&amp;ors are processed:</string>
         </property>
         <property name="buddy">
          <cstring>author_map_rules_button</cstring>
         </property>
        </widget>
       </item>
       <item row="15" column="1">
        <widget class="QPushButton" name="author_map_rules_button">
         <property name="text">
          <string>Rules to manipulate a&amp;uthor names</string>
         </property>
        </widget>
       </item>
      </layout>
     </widget>
     <widget class="QWidget" name="tab_4">
      <attribute name="title">
       <string>&amp;Automatic adding</string>
      </attribute>
      <layout class="QGridLayout" name="gridLayout_3">
       <item row="5" column="0">
        <widget class="QCheckBox" name="opt_auto_add_everything">
         <property name="toolTip">
          <string>By default, calibre will automatically add only known e-book files. 
This option tells calibre to add all file types, except those
that have been explicitly ignored below.</string>
         </property>
         <property name="text">
          <string>Automatically add files of &amp;all types (not just e-books)</string>
         </property>
        </widget>
       </item>
       <item row="1" column="0" colspan="2">
        <layout class="QHBoxLayout" name="horizontalLayout_2">
         <item>
          <widget class="HistoryLineEdit" name="opt_auto_add_path">
           <property name="placeholderText">
            <string>Folder to automatically add files from</string>
           </property>
           <property name="clearButtonEnabled">
            <bool>true</bool>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QToolButton" name="auto_add_browse_button">
           <property name="toolTip">
            <string>Browse for folder</string>
           </property>
           <property name="text">
            <string>...</string>
           </property>
           <property name="icon">
            <iconset resource="../../../../resources/images.qrc">
             <normaloff>:/images/document_open.png</normaloff>:/images/document_open.png</iconset>
           </property>
          </widget>
         </item>
        </layout>
       </item>
       <item row="4" column="0">
        <widget class="QCheckBox" name="opt_auto_add_auto_convert">
         <property name="text">
          <string>Automatically &amp;convert added files to the preferred output format</string>
         </property>
        </widget>
       </item>
       <item row="7" 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>
       <item row="6" column="0">
        <widget class="QGroupBox" name="groupBox">
         <layout class="QVBoxLayout" name="verticalLayout_2">
          <item>
           <widget class="QLabel" name="label_3">
            <property name="text">
             <string>&lt;b&gt;Ignore&lt;/b&gt; files with the following &amp;extensions when automatically adding </string>
            </property>
            <property name="wordWrap">
             <bool>true</bool>
            </property>
            <property name="buddy">
             <cstring>opt_blocked_auto_formats</cstring>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QListWidget" name="opt_blocked_auto_formats">
            <property name="alternatingRowColors">
             <bool>true</bool>
            </property>
            <property name="selectionMode">
             <enum>QAbstractItemView::NoSelection</enum>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
       <item row="0" column="0" colspan="2">
        <widget class="QLabel" name="label">
         <property name="text">
          <string>Specify a &amp;folder. Any files you put into this folder will be automatically added to calibre (restart required).</string>
         </property>
         <property name="wordWrap">
          <bool>true</bool>
         </property>
         <property name="buddy">
          <cstring>opt_auto_add_path</cstring>
         </property>
        </widget>
       </item>
       <item row="2" column="0" colspan="2">
        <widget class="QLabel" name="label_2">
         <property name="text">
          <string>&lt;b&gt;WARNING:&lt;/b&gt; Files in the above folder will be deleted after being added to calibre.</string>
         </property>
        </widget>
       </item>
       <item row="3" column="0" colspan="2">
        <widget class="QCheckBox" name="opt_auto_add_check_for_duplicates">
         <property name="toolTip">
          <string>If set, this option will cause calibre to check if a file
 being automatically added is already in the calibre library.
 If it is, a message will pop up asking you whether
 you want to add it anyway.</string>
         </property>
         <property name="text">
          <string>Check for &amp;duplicates when automatically adding files</string>
         </property>
        </widget>
       </item>
       <item row="6" column="1">
        <spacer name="horizontalSpacer_2">
         <property name="orientation">
          <enum>Qt::Horizontal</enum>
         </property>
         <property name="sizeHint" stdset="0">
          <size>
           <width>272</width>
           <height>20</height>
          </size>
         </property>
        </spacer>
       </item>
      </layout>
     </widget>
    </widget>
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>HistoryLineEdit</class>
   <extends>QLineEdit</extends>
   <header>calibre/gui2/widgets.h</header>
  </customwidget>
  <customwidget>
   <class>ScrollingTabWidget</class>
   <extends>QTabWidget</extends>
   <header>calibre/gui2/widgets2.h</header>
   <container>1</container>
  </customwidget>
 </customwidgets>
 <resources>
  <include location="../../../../resources/images.qrc"/>
 </resources>
 <connections>
  <connection>
   <sender>opt_add_formats_to_existing</sender>
   <signal>toggled(bool)</signal>
   <receiver>opt_automerge</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>406</x>
     <y>83</y>
    </hint>
    <hint type="destinationlabel">
     <x>457</x>
     <y>83</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>
