<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <author>Kovid Goyal</author>
 <class>Dialog</class>
 <widget class="QDialog" name="Dialog">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>1001</width>
    <height>730</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Preferences</string>
  </property>
  <property name="windowIcon">
   <iconset resource="../../../../../resources/images.qrc">
    <normaloff>:/images/config.svg</normaloff>:/images/config.svg</iconset>
  </property>
  <layout class="QGridLayout">
   <item row="1" column="0">
    <layout class="QHBoxLayout">
     <item>
      <widget class="QListView" name="category_view">
       <property name="sizePolicy">
        <sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding">
         <horstretch>0</horstretch>
         <verstretch>0</verstretch>
        </sizepolicy>
       </property>
       <property name="font">
        <font>
         <weight>75</weight>
         <bold>true</bold>
        </font>
       </property>
       <property name="editTriggers">
        <set>QAbstractItemView::NoEditTriggers</set>
       </property>
       <property name="tabKeyNavigation">
        <bool>true</bool>
       </property>
       <property name="showDropIndicator" stdset="0">
        <bool>false</bool>
       </property>
       <property name="iconSize">
        <size>
         <width>48</width>
         <height>48</height>
        </size>
       </property>
       <property name="verticalScrollMode">
        <enum>QAbstractItemView::ScrollPerItem</enum>
       </property>
       <property name="horizontalScrollMode">
        <enum>QAbstractItemView::ScrollPerPixel</enum>
       </property>
       <property name="flow">
        <enum>QListView::TopToBottom</enum>
       </property>
       <property name="spacing">
        <number>20</number>
       </property>
       <property name="viewMode">
        <enum>QListView::ListMode</enum>
       </property>
      </widget>
     </item>
     <item>
      <widget class="QScrollArea" name="scrollArea">
       <property name="sizePolicy">
        <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
         <horstretch>1</horstretch>
         <verstretch>0</verstretch>
        </sizepolicy>
       </property>
       <property name="frameShadow">
        <enum>QFrame::Plain</enum>
       </property>
       <property name="lineWidth">
        <number>0</number>
       </property>
       <property name="widgetResizable">
        <bool>true</bool>
       </property>
       <widget class="QWidget" name="scrollAreaWidgetContents">
        <property name="geometry">
         <rect>
          <x>0</x>
          <y>0</y>
          <width>725</width>
          <height>683</height>
         </rect>
        </property>
        <layout class="QGridLayout" name="gridLayout_7">
         <property name="margin">
          <number>0</number>
         </property>
         <item row="0" column="0">
          <widget class="QStackedWidget" name="stackedWidget">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
             <horstretch>100</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="lineWidth">
            <number>0</number>
           </property>
           <property name="currentIndex">
            <number>0</number>
           </property>
           <widget class="QWidget" name="page_3">
            <layout class="QVBoxLayout" name="verticalLayout">
             <item>
              <widget class="QCheckBox" name="new_version_notification">
               <property name="text">
                <string>Show notification when &amp;new version is available</string>
               </property>
              </widget>
             </item>
             <item>
              <widget class="QCheckBox" name="opt_get_social_metadata">
               <property name="text">
                <string>Download &amp;social metadata (tags/ratings/etc.) by default</string>
               </property>
              </widget>
             </item>
             <item>
              <widget class="QCheckBox" name="opt_overwrite_author_title_metadata">
               <property name="text">
                <string>&amp;Overwrite author and title by default when fetching metadata</string>
               </property>
              </widget>
             </item>
             <item>
              <layout class="QGridLayout" name="gridLayout_2">
               <item row="1" column="0">
                <widget class="QLabel" name="label_2">
                 <property name="text">
                  <string>Default network &amp;timeout:</string>
                 </property>
                 <property name="buddy">
                  <cstring>timeout</cstring>
                 </property>
                </widget>
               </item>
               <item row="1" column="1">
                <widget class="QSpinBox" name="timeout">
                 <property name="toolTip">
                  <string>Set the default timeout for network fetches (i.e. anytime we go out to the internet to get information)</string>
                 </property>
                 <property name="suffix">
                  <string> seconds</string>
                 </property>
                 <property name="minimum">
                  <number>2</number>
                 </property>
                 <property name="maximum">
                  <number>120</number>
                 </property>
                 <property name="value">
                  <number>5</number>
                 </property>
                </widget>
               </item>
               <item row="2" column="1">
                <widget class="QComboBox" name="language"/>
               </item>
               <item row="2" column="0">
                <widget class="QLabel" name="label_7">
                 <property name="text">
                  <string>Choose &amp;language (requires restart):</string>
                 </property>
                 <property name="buddy">
                  <cstring>language</cstring>
                 </property>
                </widget>
               </item>
               <item row="3" column="1">
                <widget class="QComboBox" name="priority">
                 <item>
                  <property name="text">
                   <string>Normal</string>
                  </property>
                 </item>
                 <item>
                  <property name="text">
                   <string>High</string>
                  </property>
                 </item>
                 <item>
                  <property name="text">
                   <string>Low</string>
                  </property>
                 </item>
                </widget>
               </item>
               <item row="3" column="0">
                <widget class="QLabel" name="priority_label">
                 <property name="text">
                  <string>Job &amp;priority:</string>
                 </property>
                 <property name="buddy">
                  <cstring>priority</cstring>
                 </property>
                </widget>
               </item>
               <item row="0" column="0">
                <widget class="QLabel" name="label_23">
                 <property name="text">
                  <string>Preferred &amp;output format:</string>
                 </property>
                 <property name="buddy">
                  <cstring>output_format</cstring>
                 </property>
                </widget>
               </item>
               <item row="0" column="1">
                <widget class="QComboBox" name="output_format"/>
               </item>
              </layout>
             </item>
             <item>
              <widget class="QPushButton" name="reset_confirmation_button">
               <property name="text">
                <string>Reset all disabled &amp;confirmation dialogs</string>
               </property>
              </widget>
             </item>
             <item>
              <widget class="QGroupBox" name="groupBox_5">
               <property name="title">
                <string>Preferred &amp;input format order:</string>
               </property>
               <layout class="QVBoxLayout" name="verticalLayout_11">
                <item>
                 <layout class="QHBoxLayout" name="horizontalLayout_10">
                  <item>
                   <widget class="QListWidget" name="input_order">
                    <property name="alternatingRowColors">
                     <bool>true</bool>
                    </property>
                    <property name="selectionBehavior">
                     <enum>QAbstractItemView::SelectRows</enum>
                    </property>
                   </widget>
                  </item>
                  <item>
                   <layout class="QVBoxLayout" name="verticalLayout_10">
                    <item>
                     <widget class="QToolButton" name="input_up">
                      <property name="text">
                       <string>...</string>
                      </property>
                      <property name="icon">
                       <iconset resource="../../../../../resources/images.qrc">
                        <normaloff>:/images/arrow-up.svg</normaloff>:/images/arrow-up.svg</iconset>
                      </property>
                     </widget>
                    </item>
                    <item>
                     <spacer name="verticalSpacer_5">
                      <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>
                     <widget class="QToolButton" name="input_down">
                      <property name="text">
                       <string>...</string>
                      </property>
                      <property name="icon">
                       <iconset resource="../../../../../resources/images.qrc">
                        <normaloff>:/images/arrow-down.svg</normaloff>:/images/arrow-down.svg</iconset>
                      </property>
                     </widget>
                    </item>
                   </layout>
                  </item>
                 </layout>
                </item>
               </layout>
              </widget>
             </item>
            </layout>
           </widget>
           <widget class="QWidget" name="page">
            <layout class="QGridLayout" name="gridLayout_12">
             <item row="0" column="0">
              <widget class="QTabWidget" name="toolbar_cm_tab">
               <property name="currentIndex">
                <number>0</number>
               </property>
               <widget class="QWidget" name="tab_3">
                <attribute name="title">
                 <string>&amp;Miscellaneous</string>
                </attribute>
                <layout class="QGridLayout" name="gridLayout_8">
                 <item row="0" column="0">
                  <widget class="QLabel" name="label_17">
                   <property name="text">
                    <string>User Interface &amp;layout (needs restart):</string>
                   </property>
                   <property name="buddy">
                    <cstring>opt_gui_layout</cstring>
                   </property>
                  </widget>
                 </item>
                 <item row="0" column="1">
                  <widget class="QComboBox" name="opt_gui_layout">
                   <property name="maximumSize">
                    <size>
                     <width>250</width>
                     <height>16777215</height>
                    </size>
                   </property>
                  </widget>
                 </item>
                 <item row="1" column="0">
                  <widget class="QLabel" name="label_6">
                   <property name="text">
                    <string>&amp;Number of covers to show in browse mode (needs restart):</string>
                   </property>
                   <property name="buddy">
                    <cstring>cover_browse</cstring>
                   </property>
                  </widget>
                 </item>
                 <item row="1" column="1">
                  <widget class="QSpinBox" name="cover_browse"/>
                 </item>
                 <item row="2" column="0">
                  <widget class="QLabel" name="label_170">
                   <property name="text">
                    <string>Restriction to apply when the current library is opened:</string>
                   </property>
                   <property name="buddy">
                    <cstring>opt_gui_restriction</cstring>
                   </property>
                  </widget>
                 </item>
                 <item row="2" column="1">
                  <widget class="QComboBox" name="opt_gui_restriction">
                   <property name="maximumSize">
                    <size>
                     <width>250</width>
                     <height>16777215</height>
                    </size>
                   </property>
                   <property name="toolTip">
                    <string>Apply this restriction on calibre startup if the current library is being used. Also applied when switching to this library. Note that this setting is per library. </string>
                   </property>
                   <property name="sizeAdjustPolicy">
                    <enum>QComboBox::AdjustToMinimumContentsLengthWithIcon</enum>
                   </property>
                   <property name="minimumContentsLength">
                    <number>15</number>
                   </property>
                  </widget>
                 </item>
                 <item row="3" column="1">
                  <widget class="QCheckBox" name="opt_disable_animations">
                   <property name="toolTip">
                    <string>Disable all animations. Useful if you have a slow/old computer.</string>
                   </property>
                   <property name="text">
                    <string>Disable &amp;animations</string>
                   </property>
                  </widget>
                 </item>
                 <item row="11" column="0" colspan="2">
                  <widget class="QGroupBox" name="groupBox_2">
                   <property name="title">
                    <string>&amp;Toolbar</string>
                   </property>
                   <layout class="QGridLayout" name="gridLayout">
                    <item row="0" column="1">
                     <widget class="QComboBox" name="opt_toolbar_icon_size"/>
                    </item>
                    <item row="0" column="0">
                     <widget class="QLabel" name="label">
                      <property name="text">
                       <string>&amp;Icon size:</string>
                      </property>
                      <property name="buddy">
                       <cstring>opt_toolbar_icon_size</cstring>
                      </property>
                     </widget>
                    </item>
                    <item row="1" column="1">
                     <widget class="QComboBox" name="opt_toolbar_text"/>
                    </item>
                    <item row="1" column="0">
                     <widget class="QLabel" name="label_4">
                      <property name="text">
                       <string>Show &amp;text under icons:</string>
                      </property>
                      <property name="buddy">
                       <cstring>opt_toolbar_text</cstring>
                      </property>
                     </widget>
                    </item>
                   </layout>
                  </widget>
                 </item>
                 <item row="10" column="0" colspan="2">
                  <widget class="QCheckBox" name="delete_news">
                   <property name="text">
                    <string>&amp;Delete news from library when it is automatically sent to reader</string>
                   </property>
                  </widget>
                 </item>
                 <item row="12" column="0" colspan="2">
                  <layout class="QHBoxLayout" name="horizontalLayout_7">
                   <item>
                    <widget class="QGroupBox" name="groupBox">
                     <property name="title">
                      <string>Select visible &amp;columns in library view</string>
                     </property>
                     <layout class="QVBoxLayout" name="verticalLayout_7">
                      <item>
                       <layout class="QHBoxLayout" name="horizontalLayout_3">
                        <item>
                         <widget class="QListWidget" name="columns">
                          <property name="alternatingRowColors">
                           <bool>true</bool>
                          </property>
                          <property name="selectionBehavior">
                           <enum>QAbstractItemView::SelectRows</enum>
                          </property>
                         </widget>
                        </item>
                        <item>
                         <layout class="QVBoxLayout" name="verticalLayout_3">
                          <item>
                           <widget class="QToolButton" name="column_up">
                            <property name="text">
                             <string>...</string>
                            </property>
                            <property name="icon">
                             <iconset resource="../../../../../resources/images.qrc">
                              <normaloff>:/images/arrow-up.svg</normaloff>:/images/arrow-up.svg</iconset>
                            </property>
                           </widget>
                          </item>
                          <item>
                           <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>
                           <widget class="QToolButton" name="del_custcol_button">
                            <property name="toolTip">
                             <string>Remove a user-defined column</string>
                            </property>
                            <property name="text">
                             <string>...</string>
                            </property>
                            <property name="icon">
                             <iconset resource="../../../../../resources/images.qrc">
                              <normaloff>:/images/minus.svg</normaloff>:/images/minus.svg</iconset>
                            </property>
                           </widget>
                          </item>
                          <item>
                           <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>
                           <widget class="QToolButton" name="add_custcol_button">
                            <property name="toolTip">
                             <string>Add a user-defined column</string>
                            </property>
                            <property name="text">
                             <string>...</string>
                            </property>
                            <property name="icon">
                             <iconset resource="../../../../../resources/images.qrc">
                              <normaloff>:/images/plus.svg</normaloff>:/images/plus.svg</iconset>
                            </property>
                           </widget>
                          </item>
                          <item>
                           <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>
                           <widget class="QToolButton" name="edit_custcol_button">
                            <property name="toolTip">
                             <string>Edit settings of a user-defined column</string>
                            </property>
                            <property name="text">
                             <string>...</string>
                            </property>
                            <property name="icon">
                             <iconset resource="../../../../../resources/images.qrc">
                              <normaloff>:/images/edit_input.svg</normaloff>:/images/edit_input.svg</iconset>
                            </property>
                           </widget>
                          </item>
                          <item>
                           <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>
                           <widget class="QToolButton" name="column_down">
                            <property name="text">
                             <string>...</string>
                            </property>
                            <property name="icon">
                             <iconset resource="../../../../../resources/images.qrc">
                              <normaloff>:/images/arrow-down.svg</normaloff>:/images/arrow-down.svg</iconset>
                            </property>
                           </widget>
                          </item>
                         </layout>
                        </item>
                       </layout>
                      </item>
                     </layout>
                    </widget>
                   </item>
                   <item>
                    <widget class="QGroupBox" name="groupBox_3">
                     <property name="title">
                      <string>Use internal &amp;viewer for:</string>
                     </property>
                     <layout class="QGridLayout" name="gridLayout_4">
                      <item row="0" column="0">
                       <widget class="QListWidget" name="viewer">
                        <property name="alternatingRowColors">
                         <bool>true</bool>
                        </property>
                        <property name="selectionMode">
                         <enum>QAbstractItemView::NoSelection</enum>
                        </property>
                       </widget>
                      </item>
                     </layout>
                    </widget>
                   </item>
                  </layout>
                 </item>
                 <item row="6" column="1">
                  <widget class="QCheckBox" name="search_as_you_type">
                   <property name="text">
                    <string>Search as you type</string>
                   </property>
                   <property name="checked">
                    <bool>true</bool>
                   </property>
                  </widget>
                 </item>
                 <item row="5" column="1">
                  <widget class="QCheckBox" name="roman_numerals">
                   <property name="text">
                    <string>Use &amp;Roman numerals for series</string>
                   </property>
                   <property name="checked">
                    <bool>true</bool>
                   </property>
                  </widget>
                 </item>
                 <item row="3" column="0">
                  <widget class="QCheckBox" name="systray_icon">
                   <property name="text">
                    <string>Enable system &amp;tray icon (needs restart)</string>
                   </property>
                  </widget>
                 </item>
                 <item row="4" column="0">
                  <widget class="QCheckBox" name="show_avg_rating">
                   <property name="text">
                    <string>Show &amp;average ratings in the tags browser</string>
                   </property>
                   <property name="checked">
                    <bool>true</bool>
                   </property>
                  </widget>
                 </item>
                 <item row="6" column="0">
                  <widget class="QCheckBox" name="sync_news">
                   <property name="text">
                    <string>Automatically send downloaded &amp;news to ebook reader</string>
                   </property>
                  </widget>
                 </item>
                 <item row="4" column="1">
                  <widget class="QCheckBox" name="show_splash_screen">
                   <property name="text">
                    <string>Show &amp;splash screen at startup</string>
                   </property>
                  </widget>
                 </item>
                 <item row="9" column="0" colspan="2">
                  <widget class="QCheckBox" name="separate_cover_flow">
                   <property name="text">
                    <string>Show cover &amp;browser in a separate window (needs restart)</string>
                   </property>
                  </widget>
                 </item>
                 <item row="5" column="0">
                  <widget class="QCheckBox" name="systray_notifications">
                   <property name="text">
                    <string>Show &amp;notifications in system tray</string>
                   </property>
                  </widget>
                 </item>
                </layout>
               </widget>
              </widget>
             </item>
            </layout>
           </widget>
           <widget class="QWidget" name="page_6">
            <layout class="QGridLayout" name="gridLayout_6">
             <item row="1" column="0" colspan="2">
              <layout class="QHBoxLayout" name="horizontalLayout_8">
               <item>
                <widget class="QTableView" name="email_view">
                 <property name="selectionMode">
                  <enum>QAbstractItemView::SingleSelection</enum>
                 </property>
                 <property name="selectionBehavior">
                  <enum>QAbstractItemView::SelectRows</enum>
                 </property>
                </widget>
               </item>
               <item>
                <layout class="QVBoxLayout" name="verticalLayout_8">
                 <item>
                  <widget class="QToolButton" name="email_add">
                   <property name="toolTip">
                    <string>Add an email address to which to send books</string>
                   </property>
                   <property name="text">
                    <string>&amp;Add email</string>
                   </property>
                   <property name="icon">
                    <iconset resource="../../../../../resources/images.qrc">
                     <normaloff>:/images/plus.svg</normaloff>:/images/plus.svg</iconset>
                   </property>
                   <property name="iconSize">
                    <size>
                     <width>24</width>
                     <height>24</height>
                    </size>
                   </property>
                   <property name="toolButtonStyle">
                    <enum>Qt::ToolButtonTextUnderIcon</enum>
                   </property>
                  </widget>
                 </item>
                 <item>
                  <widget class="QPushButton" name="email_make_default">
                   <property name="text">
                    <string>Make &amp;default</string>
                   </property>
                  </widget>
                 </item>
                 <item>
                  <widget class="QToolButton" name="email_remove">
                   <property name="text">
                    <string>&amp;Remove email</string>
                   </property>
                   <property name="icon">
                    <iconset resource="../../../../../resources/images.qrc">
                     <normaloff>:/images/minus.svg</normaloff>:/images/minus.svg</iconset>
                   </property>
                   <property name="iconSize">
                    <size>
                     <width>24</width>
                     <height>24</height>
                    </size>
                   </property>
                   <property name="toolButtonStyle">
                    <enum>Qt::ToolButtonTextUnderIcon</enum>
                   </property>
                  </widget>
                 </item>
                </layout>
               </item>
              </layout>
             </item>
             <item row="0" column="0" colspan="2">
              <widget class="QLabel" name="label_22">
               <property name="text">
                <string>calibre can send your books to you (or your reader) by email. Emails will be automatically sent for downloaded news to all email addresses that have Auto-send checked.</string>
               </property>
               <property name="wordWrap">
                <bool>true</bool>
               </property>
              </widget>
             </item>
             <item row="2" column="0" colspan="2">
              <widget class="SendEmail" name="send_email_widget" native="true"/>
             </item>
            </layout>
           </widget>
           <widget class="QWidget" name="page_7">
            <layout class="QVBoxLayout" name="verticalLayout_9">
             <item>
              <widget class="AddSave" name="add_save"/>
             </item>
            </layout>
           </widget>
           <widget class="QWidget" name="page_2">
            <layout class="QGridLayout" name="gridLayout_3">
             <item row="0" column="0">
              <widget class="QTabWidget" name="tabWidget">
               <property name="currentIndex">
                <number>0</number>
               </property>
               <widget class="QWidget" name="tab">
                <attribute name="title">
                 <string>&amp;Miscellaneous</string>
                </attribute>
                <layout class="QGridLayout" name="gridLayout_9">
                 <item row="0" column="0">
                  <widget class="QLabel" name="label_5">
                   <property name="text">
                    <string>&amp;Maximum number of waiting worker processes (needs restart):</string>
                   </property>
                   <property name="buddy">
                    <cstring>opt_worker_limit</cstring>
                   </property>
                  </widget>
                 </item>
                 <item row="0" column="1">
                  <widget class="QSpinBox" name="opt_worker_limit">
                   <property name="minimum">
                    <number>2</number>
                   </property>
                   <property name="maximum">
                    <number>10000</number>
                   </property>
                   <property name="singleStep">
                    <number>2</number>
                   </property>
                  </widget>
                 </item>
                 <item row="1" column="0">
                  <widget class="QCheckBox" name="opt_enforce_cpu_limit">
                   <property name="text">
                    <string>Limit the max. simultaneous jobs to the available CPU &amp;cores</string>
                   </property>
                  </widget>
                 </item>
                 <item row="2" column="0">
                  <spacer name="verticalSpacer_4">
                   <property name="orientation">
                    <enum>Qt::Vertical</enum>
                   </property>
                   <property name="sizeHint" stdset="0">
                    <size>
                     <width>20</width>
                     <height>79</height>
                    </size>
                   </property>
                  </spacer>
                 </item>
                 <item row="3" column="0" colspan="2">
                  <widget class="QPushButton" name="device_detection_button">
                   <property name="text">
                    <string>Debug &amp;device detection</string>
                   </property>
                  </widget>
                 </item>
                 <item row="4" column="0">
                  <spacer name="verticalSpacer_6">
                   <property name="orientation">
                    <enum>Qt::Vertical</enum>
                   </property>
                   <property name="sizeHint" stdset="0">
                    <size>
                     <width>20</width>
                     <height>80</height>
                    </size>
                   </property>
                  </spacer>
                 </item>
                 <item row="5" column="0" colspan="2">
                  <widget class="QPushButton" name="compact_button">
                   <property name="text">
                    <string>&amp;Check database integrity</string>
                   </property>
                  </widget>
                 </item>
                 <item row="6" column="0">
                  <spacer name="verticalSpacer_7">
                   <property name="orientation">
                    <enum>Qt::Vertical</enum>
                   </property>
                   <property name="sizeHint" stdset="0">
                    <size>
                     <width>20</width>
                     <height>79</height>
                    </size>
                   </property>
                  </spacer>
                 </item>
                 <item row="7" column="0" colspan="2">
                  <widget class="QPushButton" name="button_open_config_dir">
                   <property name="text">
                    <string>Open calibre &amp;configuration directory</string>
                   </property>
                  </widget>
                 </item>
                 <item row="8" column="0">
                  <spacer name="verticalSpacer_8">
                   <property name="orientation">
                    <enum>Qt::Vertical</enum>
                   </property>
                   <property name="sizeHint" stdset="0">
                    <size>
                     <width>20</width>
                     <height>80</height>
                    </size>
                   </property>
                  </spacer>
                 </item>
                 <item row="9" column="0" colspan="2">
                  <widget class="QPushButton" name="button_osx_symlinks">
                   <property name="text">
                    <string>&amp;Install command line tools</string>
                   </property>
                  </widget>
                 </item>
                 <item row="10" column="0">
                  <spacer name="verticalSpacer_9">
                   <property name="orientation">
                    <enum>Qt::Vertical</enum>
                   </property>
                   <property name="sizeHint" stdset="0">
                    <size>
                     <width>20</width>
                     <height>79</height>
                    </size>
                   </property>
                  </spacer>
                 </item>
                </layout>
               </widget>
               <widget class="QWidget" name="tab_2">
                <attribute name="title">
                 <string>&amp;Tweaks</string>
                </attribute>
                <layout class="QVBoxLayout" name="verticalLayout_4">
                 <item>
                  <widget class="QLabel" name="label_18">
                   <property name="text">
                    <string>Values for the tweaks are shown below. Edit them to change the behavior of calibre</string>
                   </property>
                   <property name="wordWrap">
                    <bool>true</bool>
                   </property>
                  </widget>
                 </item>
                 <item>
                  <widget class="QGroupBox" name="groupBox_6">
                   <property name="title">
                    <string>All available tweaks</string>
                   </property>
                   <layout class="QGridLayout" name="gridLayout_11">
                    <item row="0" column="0">
                     <widget class="QPlainTextEdit" name="default_tweaks">
                      <property name="readOnly">
                       <bool>true</bool>
                      </property>
                     </widget>
                    </item>
                   </layout>
                  </widget>
                 </item>
                 <item>
                  <widget class="QGroupBox" name="groupBox_7">
                   <property name="title">
                    <string>&amp;Current tweaks</string>
                   </property>
                   <layout class="QGridLayout" name="gridLayout_10">
                    <item row="0" column="0">
                     <widget class="QPlainTextEdit" name="current_tweaks"/>
                    </item>
                   </layout>
                  </widget>
                 </item>
                 <item>
                  <widget class="QPushButton" name="restore_tweaks_to_default_button">
                   <property name="text">
                    <string>&amp;Restore to defaults</string>
                   </property>
                  </widget>
                 </item>
                </layout>
               </widget>
              </widget>
             </item>
            </layout>
           </widget>
           <widget class="QWidget" name="page_4">
            <layout class="QVBoxLayout" name="verticalLayout_2">
             <item>
              <widget class="QLabel" name="label_9">
               <property name="text">
                <string>calibre contains a network server that allows you to access your book collection using a browser from anywhere in the world. Any changes to the settings will only take effect after a server restart.</string>
               </property>
               <property name="wordWrap">
                <bool>true</bool>
               </property>
              </widget>
             </item>
             <item>
              <layout class="QGridLayout" name="gridLayout_5">
               <item row="0" column="0">
                <widget class="QLabel" name="label_10">
                 <property name="text">
                  <string>Server &amp;port:</string>
                 </property>
                 <property name="buddy">
                  <cstring>port</cstring>
                 </property>
                </widget>
               </item>
               <item row="0" column="1">
                <widget class="QSpinBox" name="port">
                 <property name="maximum">
                  <number>65535</number>
                 </property>
                 <property name="value">
                  <number>8080</number>
                 </property>
                </widget>
               </item>
               <item row="1" column="0">
                <widget class="QLabel" name="label_11">
                 <property name="text">
                  <string>&amp;Username:</string>
                 </property>
                 <property name="buddy">
                  <cstring>username</cstring>
                 </property>
                </widget>
               </item>
               <item row="1" column="1">
                <widget class="QLineEdit" name="username"/>
               </item>
               <item row="2" column="0">
                <widget class="QLabel" name="label_12">
                 <property name="text">
                  <string>&amp;Password:</string>
                 </property>
                 <property name="buddy">
                  <cstring>password</cstring>
                 </property>
                </widget>
               </item>
               <item row="2" column="1">
                <widget class="QLineEdit" name="password">
                 <property name="toolTip">
                  <string>If you leave the password blank, anyone will be able to access your book collection using the web interface.</string>
                 </property>
                </widget>
               </item>
               <item row="4" column="1">
                <widget class="QLineEdit" name="max_cover_size">
                 <property name="toolTip">
                  <string>The maximum size (widthxheight) for displayed covers. Larger covers are resized. </string>
                 </property>
                 <property name="text">
                  <string/>
                 </property>
                </widget>
               </item>
               <item row="4" column="0">
                <widget class="QLabel" name="label_3">
                 <property name="text">
                  <string>Max. &amp;cover size:</string>
                 </property>
                 <property name="buddy">
                  <cstring>max_cover_size</cstring>
                 </property>
                </widget>
               </item>
               <item row="3" column="1">
                <widget class="QCheckBox" name="show_server_password">
                 <property name="text">
                  <string>&amp;Show password</string>
                 </property>
                </widget>
               </item>
               <item row="5" column="0">
                <widget class="QLabel" name="label_15">
                 <property name="text">
                  <string>Max. &amp;OPDS items per query:</string>
                 </property>
                 <property name="buddy">
                  <cstring>opt_max_opds_items</cstring>
                 </property>
                </widget>
               </item>
               <item row="5" column="1">
                <widget class="QSpinBox" name="opt_max_opds_items">
                 <property name="minimum">
                  <number>10</number>
                 </property>
                 <property name="maximum">
                  <number>10000</number>
                 </property>
                </widget>
               </item>
               <item row="6" column="1">
                <widget class="QSpinBox" name="opt_max_opds_ungrouped_items">
                 <property name="minimum">
                  <number>25</number>
                 </property>
                 <property name="maximum">
                  <number>1000000</number>
                 </property>
                </widget>
               </item>
               <item row="6" column="0">
                <widget class="QLabel" name="label_16">
                 <property name="text">
                  <string>Max. OPDS &amp;ungrouped items:</string>
                 </property>
                 <property name="buddy">
                  <cstring>opt_max_opds_ungrouped_items</cstring>
                 </property>
                </widget>
               </item>
               <item row="7" column="0">
                <widget class="QLabel" name="label_164">
                 <property name="text">
                  <string>Restriction (saved search) to apply:</string>
                 </property>
                </widget>
               </item>
               <item row="7" column="1">
                <widget class="QComboBox" name="opt_cs_restriction">
                 <property name="toolTip">
                  <string>This restriction (based on a saved search) will restrict the books the content server makes available to those matching the search. This setting is per library (i.e. you can have a different restriction per library).</string>
                 </property>
                 <property name="sizeAdjustPolicy">
                  <enum>QComboBox::AdjustToMinimumContentsLengthWithIcon</enum>
                 </property>
                 <property name="minimumContentsLength">
                  <number>20</number>
                 </property>
                </widget>
               </item>
              </layout>
             </item>
             <item>
              <layout class="QHBoxLayout" name="horizontalLayout_2">
               <item>
                <widget class="QPushButton" name="start">
                 <property name="text">
                  <string>&amp;Start Server</string>
                 </property>
                </widget>
               </item>
               <item>
                <widget class="QPushButton" name="stop">
                 <property name="text">
                  <string>St&amp;op Server</string>
                 </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>
               <item>
                <widget class="QPushButton" name="test">
                 <property name="text">
                  <string>&amp;Test Server</string>
                 </property>
                </widget>
               </item>
              </layout>
             </item>
             <item>
              <widget class="QCheckBox" name="auto_launch">
               <property name="text">
                <string>Run server &amp;automatically on startup</string>
               </property>
              </widget>
             </item>
             <item>
              <widget class="QPushButton" name="view_logs">
               <property name="text">
                <string>View &amp;server logs</string>
               </property>
              </widget>
             </item>
             <item>
              <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>
             <item>
              <widget class="QLabel" name="label_13">
               <property name="text">
                <string>&lt;p&gt;Remember to leave calibre running as the server only runs as long as calibre is running.
&lt;p&gt;Stanza should see your calibre collection automatically. If not, try adding the URL http://myhostname:8080 as a new catalog in the Stanza reader on your iPhone. Here myhostname should be the fully qualified hostname or the IP address of the computer calibre is running on.</string>
               </property>
               <property name="wordWrap">
                <bool>true</bool>
               </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="page_5">
            <layout class="QVBoxLayout" name="verticalLayout_6">
             <item>
              <widget class="QLabel" name="label_8">
               <property name="text">
                <string>Here you can customize the behavior of Calibre by controlling what plugins it uses.</string>
               </property>
               <property name="wordWrap">
                <bool>true</bool>
               </property>
              </widget>
             </item>
             <item>
              <widget class="QTreeView" name="plugin_view">
               <property name="alternatingRowColors">
                <bool>true</bool>
               </property>
               <property name="iconSize">
                <size>
                 <width>32</width>
                 <height>32</height>
                </size>
               </property>
               <property name="animated">
                <bool>true</bool>
               </property>
               <property name="wordWrap">
                <bool>true</bool>
               </property>
               <property name="headerHidden">
                <bool>true</bool>
               </property>
              </widget>
             </item>
             <item>
              <layout class="QHBoxLayout" name="horizontalLayout_6">
               <item>
                <widget class="QPushButton" name="toggle_plugin">
                 <property name="text">
                  <string>Enable/&amp;Disable plugin</string>
                 </property>
                </widget>
               </item>
               <item>
                <widget class="QPushButton" name="customize_plugin">
                 <property name="text">
                  <string>&amp;Customize plugin</string>
                 </property>
                </widget>
               </item>
               <item>
                <widget class="QPushButton" name="remove_plugin">
                 <property name="text">
                  <string>&amp;Remove plugin</string>
                 </property>
                </widget>
               </item>
              </layout>
             </item>
             <item>
              <widget class="QGroupBox" name="groupBox_4">
               <property name="title">
                <string>Add new plugin</string>
               </property>
               <layout class="QVBoxLayout" name="verticalLayout_5">
                <item>
                 <layout class="QHBoxLayout" name="horizontalLayout_5">
                  <item>
                   <widget class="QLabel" name="label_14">
                    <property name="text">
                     <string>Plugin &amp;file:</string>
                    </property>
                    <property name="buddy">
                     <cstring>plugin_path</cstring>
                    </property>
                   </widget>
                  </item>
                  <item>
                   <widget class="QLineEdit" name="plugin_path"/>
                  </item>
                  <item>
                   <widget class="QToolButton" name="button_plugin_browse">
                    <property name="text">
                     <string>...</string>
                    </property>
                    <property name="icon">
                     <iconset resource="../../../../../resources/images.qrc">
                      <normaloff>:/images/document_open.svg</normaloff>:/images/document_open.svg</iconset>
                    </property>
                   </widget>
                  </item>
                 </layout>
                </item>
                <item>
                 <layout class="QHBoxLayout" name="horizontalLayout_4">
                  <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>
                  <item>
                   <widget class="QPushButton" name="button_plugin_add">
                    <property name="text">
                     <string>&amp;Add</string>
                    </property>
                   </widget>
                  </item>
                 </layout>
                </item>
               </layout>
              </widget>
             </item>
            </layout>
           </widget>
          </widget>
         </item>
        </layout>
       </widget>
      </widget>
     </item>
    </layout>
   </item>
   <item row="2" column="0">
    <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>
 <customwidgets>
  <customwidget>
   <class>SendEmail</class>
   <extends>QWidget</extends>
   <header>calibre/gui2/wizard/send_email.h</header>
   <container>1</container>
  </customwidget>
  <customwidget>
   <class>AddSave</class>
   <extends>QTabWidget</extends>
   <header>calibre/gui2/dialogs/config/add_save.h</header>
   <container>1</container>
  </customwidget>
 </customwidgets>
 <resources>
  <include location="../../../../../resources/images.qrc"/>
 </resources>
 <connections>
  <connection>
   <sender>buttonBox</sender>
   <signal>accepted()</signal>
   <receiver>Dialog</receiver>
   <slot>accept()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>239</x>
     <y>558</y>
    </hint>
    <hint type="destinationlabel">
     <x>157</x>
     <y>274</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>buttonBox</sender>
   <signal>rejected()</signal>
   <receiver>Dialog</receiver>
   <slot>reject()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>307</x>
     <y>558</y>
    </hint>
    <hint type="destinationlabel">
     <x>286</x>
     <y>274</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>
