latest updates

This commit is contained in:
GRiker 2010-01-27 10:02:15 -07:00
commit b8dd9df2a4
5 changed files with 30 additions and 9 deletions

View File

@ -154,7 +154,7 @@ class ECLICTO(EB600):
name = 'eClicto Device Interface' name = 'eClicto Device Interface'
gui_name = 'eClicto' gui_name = 'eClicto'
FORMATS = ['epub', 'pdf', 'txt'] FORMATS = ['epub', 'pdf', 'htm', 'html', 'txt']
VENDOR_NAME = 'ECLICTO' VENDOR_NAME = 'ECLICTO'
WINDOWS_MAIN_MEM = 'EBOOK' WINDOWS_MAIN_MEM = 'EBOOK'

View File

@ -23,7 +23,7 @@ class N516(USBMS):
VENDOR_ID = [0x0525] VENDOR_ID = [0x0525]
PRODUCT_ID = [0xa4a5] PRODUCT_ID = [0xa4a5]
BCD = [0x323] BCD = [0x323, 0x326]
VENDOR_NAME = 'INGENIC' VENDOR_NAME = 'INGENIC'
WINDOWS_MAIN_MEM = '_FILE-STOR_GADGE' WINDOWS_MAIN_MEM = '_FILE-STOR_GADGE'

View File

@ -170,6 +170,10 @@ class Column(object):
return self.elements[idx-1] return self.elements[idx-1]
class Box(list):
def __init__(self, type='p'):
self.type = type
class Region(object): class Region(object):
@ -222,6 +226,10 @@ class Region(object):
for x in self.columns: for x in self.columns:
self.elements.extend(x) self.elements.extend(x)
# Find block quotes
indented = [i for (i, x) in enumerate(self.elements) if x.indent_fraction >= 0.2]
class Page(object): class Page(object):

View File

@ -85,8 +85,21 @@ class QtNotifier(Notifier):
def __call__(self, body, summary=None, replaces_id=None, timeout=0): def __call__(self, body, summary=None, replaces_id=None, timeout=0):
timeout, body, summary = self.get_msg_parms(timeout, body, summary) timeout, body, summary = self.get_msg_parms(timeout, body, summary)
if self.systray is not None: if self.systray is not None:
self.systray.showMessage(summary, body, self.systray.Information, try:
timeout) hide = False
try:
if not isinstance(body, unicode):
body = body.decode('utf-8')
if isosx and not self.systray.isVisible():
self.systray.show()
hide = True
self.systray.showMessage(summary, body, self.systray.Information,
timeout)
finally:
if hide:
self.systray.hide()
except:
pass
class GrowlNotifier(Notifier): class GrowlNotifier(Notifier):
@ -127,10 +140,10 @@ def get_notifier(systray=None):
ans = FDONotifier() ans = FDONotifier()
if not ans.ok: if not ans.ok:
ans = None ans = None
if isosx: #if isosx:
ans = GrowlNotifier() # ans = GrowlNotifier()
if not ans.ok: # if not ans.ok:
ans = None # ans = None
if ans is None: if ans is None:
ans = QtNotifier(systray) ans = QtNotifier(systray)
if not ans.ok: if not ans.ok:

View File

@ -357,7 +357,7 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
cm.addAction(_('Bulk convert')) cm.addAction(_('Bulk convert'))
cm.addSeparator() cm.addSeparator()
ac = cm.addAction( ac = cm.addAction(
_('Create catalog')) _('Create catalog of books in your calibre library'))
ac.triggered.connect(self.generate_catalog) ac.triggered.connect(self.generate_catalog)
self.action_convert.setMenu(cm) self.action_convert.setMenu(cm)
self._convert_single_hook = partial(self.convert_ebook, bulk=False) self._convert_single_hook = partial(self.convert_ebook, bulk=False)