mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
dc5ccf1861
commit
4ca767b9fc
@ -103,13 +103,21 @@ class CreateCustomColumn(QDialog, Ui_QCreateCustomColumn):
|
|||||||
|
|
||||||
def shortcut_activated(self, url):
|
def shortcut_activated(self, url):
|
||||||
which = unicode(url).split(':')[-1]
|
which = unicode(url).split(':')[-1]
|
||||||
self.column_type_box.setCurrentIndex(10)
|
self.column_type_box.setCurrentIndex({
|
||||||
|
'yesno': 9,
|
||||||
|
'tags' : 1,
|
||||||
|
'series': 3,
|
||||||
|
}.get(which, 10))
|
||||||
self.column_name_box.setText(which)
|
self.column_name_box.setText(which)
|
||||||
self.column_heading_box.setText({
|
self.column_heading_box.setText({
|
||||||
'isbn':'ISBN',
|
'isbn':'ISBN',
|
||||||
'formats':_('Formats'),
|
'formats':_('Formats'),
|
||||||
|
'yesno':_('Yes/No'),
|
||||||
|
'tags': _('My Tags'),
|
||||||
|
'series': _('My Series'),
|
||||||
'last_modified':_('Last Modified')}[which])
|
'last_modified':_('Last Modified')}[which])
|
||||||
self.composite_box.setText(
|
if self.composite_box.isVisible():
|
||||||
|
self.composite_box.setText(
|
||||||
{
|
{
|
||||||
'isbn': '{identifiers:select(isbn)}',
|
'isbn': '{identifiers:select(isbn)}',
|
||||||
'formats': '{formats}',
|
'formats': '{formats}',
|
||||||
|
@ -267,7 +267,7 @@ four values, the first of them being the empty value.</string>
|
|||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="shortcuts">
|
<widget class="QLabel" name="shortcuts">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Quick create: <a href="col:isbn" title="Show the books' ISBN in the column">ISBN</a>, <a href="col:formats" title="Show the books' formats in the column">Formats</a>, <a href="col:last_modified" title="Show the date the books' metadata was last modified in the column">Last Modified</a></string>
|
<string>Quick create: <a href="col:isbn" title="Show the books' ISBN in the column">ISBN</a>, <a href="col:formats" title="Show the books' formats in the column">Formats</a>, <a href="col:last_modified" title="Show the date the books' metadata was last modified in the column">Last Modified</a>, <a href="col:yesno">Yes/No</a>, <a href="col:tags">Tags</a>, <a href="col:series">Series</a></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user