mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge from trunk
This commit is contained in:
commit
461656a511
File diff suppressed because it is too large
Load Diff
@ -127,10 +127,16 @@ def available_width():
|
||||
desktop = QCoreApplication.instance().desktop()
|
||||
return desktop.availableGeometry().width()
|
||||
|
||||
try:
|
||||
is_widescreen = float(available_width())/available_height() > 1.4
|
||||
except:
|
||||
is_widescreen = True
|
||||
_is_widescreen = None
|
||||
|
||||
def is_widescreen():
|
||||
global _is_widescreen
|
||||
if _is_widescreen is None:
|
||||
try:
|
||||
_is_widescreen = float(available_width())/available_height() > 1.4
|
||||
except:
|
||||
_is_widescreen = False
|
||||
return _is_widescreen
|
||||
|
||||
def extension(path):
|
||||
return os.path.splitext(path)[1][1:].lower()
|
||||
|
@ -290,14 +290,15 @@ class LibraryWidget(Splitter): # {{{
|
||||
|
||||
def __init__(self, parent):
|
||||
orientation = Qt.Vertical if config['gui_layout'] == 'narrow' and \
|
||||
not is_widescreen else Qt.Horizontal
|
||||
not is_widescreen() else Qt.Horizontal
|
||||
#orientation = Qt.Vertical
|
||||
idx = 0 if orientation == Qt.Vertical else 1
|
||||
size = 300 if orientation == Qt.Vertical else 550
|
||||
Splitter.__init__(self, 'cover_browser_splitter', _('Cover Browser'),
|
||||
I('cover_flow.svg'),
|
||||
orientation=orientation, parent=parent,
|
||||
connect_button=not config['separate_cover_flow'],
|
||||
side_index=idx, initial_side_size=400, initial_show=False)
|
||||
side_index=idx, initial_side_size=size, initial_show=False)
|
||||
parent.library_view = BooksView(parent)
|
||||
parent.library_view.setObjectName('library_view')
|
||||
self.addWidget(parent.library_view)
|
||||
|
@ -229,9 +229,9 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
|
||||
self.connect(self.action_previous_page, SIGNAL('triggered(bool)'),
|
||||
lambda x:self.view.previous_page())
|
||||
self.connect(self.action_find_next, SIGNAL('triggered(bool)'),
|
||||
lambda x:self.find(self.search.smart_text, True, repeat=True))
|
||||
lambda x:self.find(self.search.smart_text, repeat=True))
|
||||
self.connect(self.action_find_previous, SIGNAL('triggered(bool)'),
|
||||
lambda x:self.find(self.search.smart_text, True,
|
||||
lambda x:self.find(self.search.smart_text,
|
||||
repeat=True, backwards=True))
|
||||
|
||||
self.connect(self.action_full_screen, SIGNAL('triggered(bool)'),
|
||||
|
@ -83,7 +83,7 @@ class CSV_XML(CatalogPlugin):
|
||||
|
||||
if not len(data):
|
||||
log.error("\nNo matching database entries for search criteria '%s'" % opts.search_text)
|
||||
raise SystemExit(1)
|
||||
#raise SystemExit(1)
|
||||
|
||||
# Get the requested output fields as a list
|
||||
fields = self.get_output_fields(opts)
|
||||
|
@ -159,7 +159,8 @@ Alternative for the iPad
|
||||
|
||||
As of |app| version 0.7.0, you can plugin your iPad into the computer using its charging cable, and |app| will detect it and show you a list of books on the iPad. You can then use the Send to device button to send books directly to iBooks on the iPad.
|
||||
|
||||
This method only works on Windows XP and higher and OS X 10.5 and higher. Linux is not supported (iTunes is not available in linux) and OS X 10.4 is not supported.
|
||||
This method only works on Windows XP and higher and OS X 10.5 and higher. Linux is not supported (iTunes is not available in linux) and OS X 10.4 is not supported. For more details, see
|
||||
`this forum post http://www.mobileread.com/forums/showpost.php?p=944079&postcount=1`_.
|
||||
|
||||
How do I use |app| with my Android phone?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
Loading…
x
Reference in New Issue
Block a user