mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Stored templates preferences:
- Add some tooltips - Improve button alignment.
This commit is contained in:
parent
801a4c1b16
commit
e52ba6a93c
@ -221,7 +221,10 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
||||
self.st_previous_text = ''
|
||||
self.st_first_time = False
|
||||
|
||||
self.st_button_layout.insertSpacing(0, 90)
|
||||
# Attempt to properly align the buttons with the template edit widget
|
||||
self.st_button_layout.insertSpacing(0, 70)
|
||||
self.st_button_layout.insertSpacing(self.st_button_layout.indexOf(self.st_doc_edit_button), 60)
|
||||
self.st_button_layout.insertSpacing(self.st_button_layout.indexOf(self.st_test_template_button), 50)
|
||||
self.template_editor.new_doc.setFixedHeight(50)
|
||||
|
||||
# get field metadata and selected books
|
||||
|
@ -45,6 +45,9 @@
|
||||
<property name="text">
|
||||
<string>&Clear</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Clear the name, template, and documentation boxes</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@ -52,6 +55,10 @@
|
||||
<property name="text">
|
||||
<string>D&elete</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string><p>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</p></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@ -59,6 +66,9 @@
|
||||
<property name="text">
|
||||
<string>&Replace</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Replace the template and documentation for the template with the given name.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@ -66,6 +76,10 @@
|
||||
<property name="text">
|
||||
<string>C&reate</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string><p>Create a new stored template with the given name. You must enter the template
|
||||
text before pushing this button.</p></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@ -73,6 +87,13 @@
|
||||
<property name="text">
|
||||
<string>Im&port</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string><p>Import a stored template from a file created by the Export
|
||||
function. The import includes the name, the template, and the documentation.</p><p>
|
||||
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.</p><p>
|
||||
After the import, press the Create or Replace button as appropriate to save the changes.</p></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@ -80,21 +101,12 @@
|
||||
<property name="text">
|
||||
<string>E&xport</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string><p>Export the current stored template to a file. The file contains
|
||||
the name, the template, and the documentation.</p></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>
|
||||
<item>
|
||||
<widget class="QPushButton" name="st_doc_edit_button">
|
||||
<property name="text">
|
||||
@ -105,19 +117,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_22">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="st_test_template_button">
|
||||
<property name="text">
|
||||
@ -136,7 +135,7 @@
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>0</height>
|
||||
<height>10</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
|
Loading…
x
Reference in New Issue
Block a user