mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add output profile and welcome wizard entries for upcoming Kindle Voyage
This commit is contained in:
parent
01f0c98607
commit
a5712acdca
@ -683,6 +683,19 @@ class KindlePaperWhiteOutput(KindleOutput):
|
|||||||
dpi = 212.0
|
dpi = 212.0
|
||||||
comic_screen_size = screen_size
|
comic_screen_size = screen_size
|
||||||
|
|
||||||
|
class KindleVoyageOutput(KindleOutput):
|
||||||
|
|
||||||
|
name = 'Kindle Voyage'
|
||||||
|
short_name = 'kindle_voyage'
|
||||||
|
description = _('This profile is intended for the Amazon Kindle Voyage')
|
||||||
|
|
||||||
|
# Screen size is currently just the spec size, actual renderable area will
|
||||||
|
# depend on someone with the device doing tests.
|
||||||
|
screen_size = (1080, 1430)
|
||||||
|
dpi = 300.0
|
||||||
|
comic_screen_size = screen_size
|
||||||
|
|
||||||
|
|
||||||
class KindleFireOutput(KindleDXOutput):
|
class KindleFireOutput(KindleDXOutput):
|
||||||
|
|
||||||
name = 'Kindle Fire'
|
name = 'Kindle Fire'
|
||||||
@ -807,6 +820,6 @@ output_profiles = [OutputProfile, SonyReaderOutput, SonyReader300Output,
|
|||||||
SonyReaderLandscapeOutput, KindleDXOutput, IlliadOutput, NookHD,
|
SonyReaderLandscapeOutput, KindleDXOutput, IlliadOutput, NookHD,
|
||||||
IRexDR1000Output, IRexDR800Output, JetBook5Output, NookOutput,
|
IRexDR1000Output, IRexDR800Output, JetBook5Output, NookOutput,
|
||||||
BambookOutput, NookColorOutput, PocketBook900Output, PocketBookPro912Output,
|
BambookOutput, NookColorOutput, PocketBook900Output, PocketBookPro912Output,
|
||||||
GenericEink, GenericEinkLarge, KindleFireOutput, KindlePaperWhiteOutput]
|
GenericEink, GenericEinkLarge, KindleFireOutput, KindlePaperWhiteOutput, KindleVoyageOutput]
|
||||||
|
|
||||||
output_profiles.sort(cmp=lambda x,y:cmp(x.name.lower(), y.name.lower()))
|
output_profiles.sort(cmp=lambda x,y:cmp(x.name.lower(), y.name.lower()))
|
||||||
|
@ -121,6 +121,11 @@ class KindlePW(Kindle):
|
|||||||
id = 'kindle_pw'
|
id = 'kindle_pw'
|
||||||
output_profile = 'kindle_pw'
|
output_profile = 'kindle_pw'
|
||||||
|
|
||||||
|
class KindleVoyage(Kindle):
|
||||||
|
name = 'Kindle Voyage'
|
||||||
|
id = 'kindle_voyage'
|
||||||
|
output_profile = 'kindle_voyage'
|
||||||
|
|
||||||
class Sony505(Device):
|
class Sony505(Device):
|
||||||
|
|
||||||
output_profile = 'sony'
|
output_profile = 'sony'
|
||||||
@ -567,7 +572,7 @@ class DevicePage(QWizardPage, DeviceUI):
|
|||||||
def nextId(self):
|
def nextId(self):
|
||||||
idx = list(self.device_view.selectionModel().selectedIndexes())[0]
|
idx = list(self.device_view.selectionModel().selectedIndexes())[0]
|
||||||
dev = self.dev_model.data(idx, Qt.UserRole)
|
dev = self.dev_model.data(idx, Qt.UserRole)
|
||||||
if dev in (Kindle, KindleDX, KindleFire, KindlePW):
|
if dev in (Kindle, KindleDX, KindleFire, KindlePW, KindleVoyage):
|
||||||
return KindlePage.ID
|
return KindlePage.ID
|
||||||
if dev is iPhone:
|
if dev is iPhone:
|
||||||
return StanzaPage.ID
|
return StanzaPage.ID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user