mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
commit
c13b625dd5
@ -203,9 +203,11 @@ class ITUNES(DriverBase):
|
|||||||
# 0x1294 iPhone 3GS
|
# 0x1294 iPhone 3GS
|
||||||
# 0x1297 iPhone 4
|
# 0x1297 iPhone 4
|
||||||
# 0x129a iPad
|
# 0x129a iPad
|
||||||
# 0x12a2 iPad2
|
# 0x129f iPad2 (WiFi)
|
||||||
|
# 0x12a2 iPad2 (GSM)
|
||||||
|
# 0x12a3 iPad2 (CDMA)
|
||||||
VENDOR_ID = [0x05ac]
|
VENDOR_ID = [0x05ac]
|
||||||
PRODUCT_ID = [0x1292,0x1293,0x1294,0x1297,0x1299,0x129a,0x129f,0x12a2]
|
PRODUCT_ID = [0x1292,0x1293,0x1294,0x1297,0x1299,0x129a,0x129f,0x12a2,0x12a3]
|
||||||
BCD = [0x01]
|
BCD = [0x01]
|
||||||
|
|
||||||
# Plugboard ID
|
# Plugboard ID
|
||||||
|
@ -19,17 +19,23 @@ class MessageBox(QDialog, Ui_Dialog): # {{{
|
|||||||
INFO = 2
|
INFO = 2
|
||||||
QUESTION = 3
|
QUESTION = 3
|
||||||
|
|
||||||
def __init__(self, type_, title, msg, det_msg='', show_copy_button=True,
|
def __init__(self, type_, title, msg,
|
||||||
parent=None):
|
det_msg='',
|
||||||
|
q_icon=None,
|
||||||
|
show_copy_button=True,
|
||||||
|
parent=None):
|
||||||
QDialog.__init__(self, parent)
|
QDialog.__init__(self, parent)
|
||||||
icon = {
|
if q_icon is None:
|
||||||
self.ERROR : 'error',
|
icon = {
|
||||||
self.WARNING: 'warning',
|
self.ERROR : 'error',
|
||||||
self.INFO: 'information',
|
self.WARNING: 'warning',
|
||||||
self.QUESTION: 'question',
|
self.INFO: 'information',
|
||||||
}[type_]
|
self.QUESTION: 'question',
|
||||||
icon = 'dialog_%s.png'%icon
|
}[type_]
|
||||||
self.icon = QIcon(I(icon))
|
icon = 'dialog_%s.png'%icon
|
||||||
|
self.icon = QIcon(I(icon))
|
||||||
|
else:
|
||||||
|
self.icon = q_icon
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
|
|
||||||
self.setWindowTitle(title)
|
self.setWindowTitle(title)
|
||||||
@ -44,7 +50,6 @@ class MessageBox(QDialog, Ui_Dialog): # {{{
|
|||||||
self.bb.ActionRole)
|
self.bb.ActionRole)
|
||||||
self.ctc_button.clicked.connect(self.copy_to_clipboard)
|
self.ctc_button.clicked.connect(self.copy_to_clipboard)
|
||||||
|
|
||||||
|
|
||||||
self.show_det_msg = _('Show &details')
|
self.show_det_msg = _('Show &details')
|
||||||
self.hide_det_msg = _('Hide &details')
|
self.hide_det_msg = _('Hide &details')
|
||||||
self.det_msg_toggle = self.bb.addButton(self.show_det_msg, self.bb.ActionRole)
|
self.det_msg_toggle = self.bb.addButton(self.show_det_msg, self.bb.ActionRole)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user