![]() |
#1 |
Jeffrey A. Carver
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
|
Minor Calibre issues
I thought I'd just put these all together in case they've already been addressed somehow:
1. I still find that when I add books to the Calibre library in Windows XP, the adding books dialogue box often fails to close afterward, and won't go away unless I restart Calibre. (I know there was a fix on this a few versions back. Not sure if the fix worked, then got messed up in a newer release.) 2. When I open the Viewer on a LRF file, the viewer window almost always opens with the bottom of the window down behind my Quicklaunch bar, requiring me to move it up. When I do readjust it, the display doesn't properly resize to fit the viewer window, but generally has a vertical scroll bar for each given page, requiring up and down scrolling on each page. (Sort of like a PDF with fixed pages.) Doesn't seem to happen with the EPUB viewer. 3. Don't know how doable this is, but for those of us who like to keep the latest version of Calibre, it would be really nice if we could click an update button from within the program, and have it handle the download and install process. Thanks, as always. Now that I use Calibre, I couldn't manage without it. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,957
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
1. Hmm, I can't reproduce this on my windows machines, so it's hard for me to debug.
2. That because LRF, like PDF is a fixed size format (a screen size is defined inside the LRF file). Since the calibre viewer tries to be an accurate simulation of the SONY reader, it respects that size. 3. This is too much work for me ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Jeffrey A. Carver
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
|
Quote:
2. I didn't know that about LRF. Learn something every day. 3. I thought that might be the case. But I figured I'd ask. ![]() |
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
I have the same problem with the Add Books dialog never disappering (on XP Pro +SP3). I wonder if Kovid's version of Windows is different in any way?
Looking at the Calibre source it I notice some strange anomalies between what I see and what I would expect to see: - When adding multiple books a message is displayed in the dialog about "Reading Metadata" for every book except the last. The source implies there should be one even for the last file. - Then after a few seconds the dialog back is cleared and goes to pure white (except for the title bar). There should be messages about adding the books to the database. - After a delay, the main window becomes active again. At this point the Adding Books dialog should disappear but does not. I must admit, though, that looking at the source that I do not see how the progress.Hide() statement at the end of the block that should remove the dialog box is not working as expected. As Kovid cannot reproduce this and I can do it reliably, I am going to play with tweaks at the source level to see if I can change this behavior, and also to confirm that the statements are being executed as expected from my reading of the source. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
I added some msgbox() calls (using easygui) around the various calls to update the progress dialog. When these were in place the dialog updated as expected, and then hid itself at the end as expected. I am sure this is a clue to the problem on Windows although I am not sure yet what it means
![]() It is almost as though the dialog is not getting a chance to process events and update itself at the appropriate points. I will continue to investigate further. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,957
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#8 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,957
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
I added calls to QApplication.processEvents() either side of the various actions on the progress object, and then everything worked as expected including all messages displaying correctly, and the dialog hiding itself at the end.
I almost certainly have far more calls than I need, so I will start removing them gradually to see what the minimum set is to get correct behavior, and then let you have the patch when I get to the minimum set. That should be easier in the short term than worrying about any refactoring. I wonder why it works OK on your machine and not mine? Perhaps you have a faster machine or a multi-core processor so that changes the event handling timing significantly? |
![]() |
![]() |
![]() |
#10 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,957
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,957
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Oh and if you're doing this for add books, could you also do it for save books
|
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
No problem.
|
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,957
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Thanks
|
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Attached is the diff for the minimum set of changes that seemed to make the add books dialog update itself as expected and remove itself at the end.
I looked at the save books option, but the dialogs seemed to display fine and hide at the end, so have not suggested any changes in that area. |
![]() |
![]() |
![]() |
#15 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,957
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Thanks, applied.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PP - Minor Issues | Xerxes | Astak EZReader | 52 | 11-07-2009 10:12 PM |
Calibre Issues | pghaworth | Calibre | 21 | 04-17-2009 02:11 PM |
Cybook with Calibre, minor problems | taspool | Bookeen | 14 | 02-22-2009 06:43 AM |
Calibre : minor suggestions | carpii | Calibre | 14 | 12-16-2008 07:47 PM |
Minor errors on calibre web site! | itimpi | Calibre | 17 | 11-23-2008 05:01 PM |