<?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>788</width>
    <height>663</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>&amp;Stored Templates</string>
      </attribute>
      <layout class="QGridLayout" name="gridLayout">
       <item row="0" column="0">
        <widget class="QPushButton" name="st_show_hide_help_button">
         <property name="text">
          <string>Hide help</string>
         </property>
        </widget>
       </item>
       <item row="0" column="1" colspan="1" rowspan="2">
        <widget class="QTextBrowser" name="st_textBrowser">
        </widget>
       </item>
       <item row="2" column="1" stretch="1">
        <widget class="EmbeddedTemplateDialog" name="template_editor"/>
       </item>
       <item row="2" column="0">
        <layout class="QVBoxLayout" name="st_button_layout">
         <item>
          <widget class="QPushButton" name="st_clear_button">
           <property name="text">
            <string>&amp;Clear</string>
           </property>
           <property name="toolTip">
            <string>Clear the name, template, and documentation boxes</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="st_delete_button">
           <property name="text">
            <string>D&amp;elete</string>
           </property>
           <property name="toolTip">
            <string>&lt;p&gt;Delete the current stored template. The name is cleared. The template
and documentation are not cleared to make it easier to store the template under a new name&lt;/p&gt;</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="st_replace_button">
           <property name="text">
            <string>&amp;Replace</string>
           </property>
           <property name="toolTip">
            <string>Replace the template and documentation for the template with the given name.</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="st_create_button">
           <property name="text">
            <string>C&amp;reate</string>
           </property>
           <property name="toolTip">
            <string>&lt;p&gt;Create a new stored template with the given name. You must enter the template
text before pushing this button.&lt;/p&gt;</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="st_import_button">
           <property name="text">
            <string>Im&amp;port</string>
           </property>
           <property name="toolTip">
            <string>&lt;p&gt;Import a stored template from a file created by the Export
function. The import includes the name, the template, and the documentation.&lt;/p&gt;&lt;p&gt;
If a stored template with the imported name already exists then you are asked if you want to replace its
program and documentation with what is in the file.&lt;/p&gt;&lt;p&gt;
After the import, press the Create or Replace button as appropriate to save the changes.&lt;/p&gt;</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="st_export_button">
           <property name="text">
            <string>E&amp;xport</string>
           </property>
           <property name="toolTip">
            <string>&lt;p&gt;Export the current stored template to a file. The file contains
the name, the template, and the documentation.&lt;/p&gt;</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="st_doc_edit_button">
           <property name="text">
            <string>Edit docs</string>
           </property>
           <property name="toolTip">
            <string>Open an editor for function documentation</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QPushButton" name="st_test_template_button">
           <property name="text">
            <string>Test</string>
           </property>
           <property name="toolTip">
            <string>Open a template tester dialog to use a template to test stored templates</string>
           </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>10</height>
            </size>
           </property>
          </spacer>
         </item>
        </layout>
       </item>
      </layout>
     </widget>
     <widget class="QWidget" name="tab">
      <attribute name="title">
       <string>&amp;Template functions</string>
      </attribute>
      <layout class="QGridLayout" name="gridLayout">
       <item row="1" column="0">
        <layout class="QGridLayout" name="gridLayout_3">
         <item row="0" column="0">
          <widget class="QPushButton" name="show_hide_help_button">
           <property name="text">
            <string>Hide help</string>
           </property>
          </widget>
         </item>
         <item row="0" column="1" colspan="2" rowspan="2">
          <widget class="QTextBrowser" name="textBrowser"/>
         </item>
         <item row="3" column="1">
          <widget class="QCheckBox" name="show_only_user_defined">
           <property name="text">
            <string>Show &amp;only user defined template functions</string>
           </property>
           <property name="toolTip">
            <string>&lt;p&gt;If checked the 'Function' box will show only user defined
template functions. If unchecked the box will show both system and user defined
functions. Unchecking can be useful for copying source of a system function to create
a new related user defined function.&lt;/p&gt;</string>
           </property>
          </widget>
         </item>
         <item row="2" column="0">
          <widget class="QLabel" name="label_2">
           <property name="text">
            <string>F&amp;unction:</string>
           </property>
           <property name="buddy">
            <cstring>function_name</cstring>
           </property>
          </widget>
         </item>
         <item row="2" column="1">
          <widget class="QComboBox" name="function_name">
           <property name="toolTip">
            <string>Enter the name of the function to create.</string>
           </property>
           <property name="editable">
            <bool>true</bool>
           </property>
          </widget>
         </item>
         <item row="4" column="0">
          <widget class="QLabel" name="label_3">
           <property name="toolTip">
            <string/>
           </property>
           <property name="text">
            <string>Argument &amp;count:</string>
           </property>
           <property name="buddy">
            <cstring>argument_count</cstring>
           </property>
          </widget>
         </item>
         <item row="4" column="1">
          <widget class="QSpinBox" name="argument_count">
           <property name="toolTip">
            <string>Set this to -1 if the function takes a variable number of arguments</string>
           </property>
           <property name="minimum">
            <number>-1</number>
           </property>
          </widget>
         </item>
         <item row="5" column="1">
          <widget class="QTextEdit" name="documentation"/>
         </item>
         <item row="5" column="0">
          <layout class="QVBoxLayout">
           <item>
            <widget class="QLabel" name="label_4">
             <property name="text">
              <string>D&amp;ocumentation:</string>
             </property>
             <property name="alignment">
              <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
             </property>
             <property name="buddy">
              <cstring>documentation</cstring>
             </property>
            </widget>
           </item>
           <item>
            <widget class="QPushButton" name="doc_edit_button">
             <property name="text">
              <string>Edit docs</string>
             </property>
             <property name="toolTip">
              <string>Open an editor for function documentation</string>
             </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>0</height>
              </size>
             </property>
            </spacer>
           </item>
          </layout>
         </item>
         <item row="6" column="1">
          <layout class="QHBoxLayout" name="horizontalLayout_2">
           <item>
            <widget class="QPushButton" name="clear_button">
             <property name="text">
              <string>Clear</string>
             </property>
            </widget>
           </item>
           <item>
            <widget class="QPushButton" name="delete_button">
             <property name="text">
              <string>Delete</string>
             </property>
            </widget>
           </item>
           <item>
            <widget class="QPushButton" name="replace_button">
             <property name="text">
              <string>Replace</string>
             </property>
            </widget>
           </item>
           <item>
            <widget class="QPushButton" name="create_button">
             <property name="text">
              <string>C&amp;reate</string>
             </property>
            </widget>
           </item>
          </layout>
         </item>
         <item row="2" column="2">
          <widget class="QLabel" name="label_4">
           <property name="text">
            <string>P&amp;rogram code (Follow Python indenting rules):</string>
           </property>
           <property name="buddy">
            <cstring>program</cstring>
           </property>
          </widget>
         </item>
         <item row="3" column="2" rowspan="3">
          <widget class="QPlainTextEdit" name="program">
           <property name="minimumSize">
            <size>
             <width>400</width>
             <height>0</height>
            </size>
           </property>
           <property name="documentTitle">
            <string notr="true"/>
           </property>
           <property name="tabStopDistance">
            <number>30</number>
           </property>
          </widget>
         </item>
        </layout>
       </item>
      </layout>
     </widget>
    </widget>
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>EmbeddedTemplateDialog</class>
   <extends>TemplateDialog</extends>
   <header>calibre/gui2/dialogs/template_dialog.h</header>
  </customwidget>
  <customwidget>
   <class>TemplateDialog</class>
   <extends>QDialog</extends>
   <header>calibre/gui2/dialogs/template_dialog.h</header>
  </customwidget>
  <customwidget>
   <class>ScrollingTabWidget</class>
   <extends>QTabWidget</extends>
   <header>calibre/gui2/widgets2.h</header>
   <container>1</container>
  </customwidget>
 </customwidgets>
</ui>
