mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-24 01:03:09 +02:00
...
This commit is contained in:
parent
dc5ccf1861
commit
4ca767b9fc
2 changed files with 11 additions and 3 deletions
|
|
@ -103,13 +103,21 @@ def __init__(self, parent, editing, standard_colheads, standard_colnames):
|
|||
|
||||
def shortcut_activated(self, url):
|
||||
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_heading_box.setText({
|
||||
'isbn':'ISBN',
|
||||
'formats':_('Formats'),
|
||||
'yesno':_('Yes/No'),
|
||||
'tags': _('My Tags'),
|
||||
'series': _('My Series'),
|
||||
'last_modified':_('Last Modified')}[which])
|
||||
self.composite_box.setText(
|
||||
if self.composite_box.isVisible():
|
||||
self.composite_box.setText(
|
||||
{
|
||||
'isbn': '{identifiers:select(isbn)}',
|
||||
'formats': '{formats}',
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ four values, the first of them being the empty value.</string>
|
|||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="shortcuts">
|
||||
<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 name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
|
|
|||
Loading…
Reference in a new issue