version 0.3.104

This commit is contained in:
Kovid Goyal 2007-08-24 04:53:07 +00:00
parent a16ecea6ee
commit 9a5021504f
5 changed files with 11 additions and 2 deletions

View File

@ -23,6 +23,7 @@ entry_points = {
'prs500 = libprs500.devices.prs500.cli.main:main', \
'lrf-meta = libprs500.ebooks.lrf.meta:main', \
'rtf-meta = libprs500.ebooks.metadata.rtf:main', \
'pdf-meta = libprs500.ebooks.metadata.pdf:main', \
'txt2lrf = libprs500.ebooks.lrf.txt.convert_from:main', \
'html2lrf = libprs500.ebooks.lrf.html.convert_from:main',\
'markdown = libprs500.ebooks.markdown.markdown:main',\

View File

@ -13,7 +13,7 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
''' E-book management software'''
__version__ = "0.3.103"
__version__ = "0.3.104"
__docformat__ = "epytext"
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
__appname__ = 'libprs500'

View File

@ -118,7 +118,7 @@ class LRFSingleDialog(QDialog, Ui_LRFSingleDialog):
def select_cover(self, checked):
files = choose_images(self, 'change cover dialog',
u'Choose cover for ' + qstring_to_unicode(self.title.text()))
u'Choose cover for ' + qstring_to_unicode(self.gui_title.text()))
if not files:
return
_file = files[0]

View File

@ -80,6 +80,12 @@ class LibraryDelegate(QItemDelegate):
traceback.print_exc(e)
painter.restore()
def createEditor(self, parent, option, index):
sb = QItemDelegate.createEditor(self, parent, option, index)
sb.setMinimum(0)
sb.setMaximum(5)
return sb
class BooksModel(QAbstractTableModel):
ROMAN = ['0', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X']

View File

@ -84,6 +84,8 @@ def setup_completion():
f.write(opts_and_exts('any2lrf', htmlop,
['htm', 'html', 'xhtml', 'xhtm', 'rar', 'zip', 'txt', 'lit', 'rtf', 'pdf']))
f.write(opts_and_exts('lrf-meta', metaop, ['lrf']))
f.write(opts_and_exts('rtf-meta', metaop, ['rtf']))
f.write(opts_and_exts('pdf-meta', metaop, ['pdf']))
f.write('''
_prs500_ls()
{