Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 11-05-2023, 05:25 AM   #76
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 441
Karma: 145424
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by BetterRed View Post
Doh, I assumed a ✔ in Manage Categories was a signal that a note for the item existed, for some explicable reason it didn't twig that I could tab to the cell and press F2 to enter/edit the item's note (just as I can for a link)
For info, a first implementation used buttons that was more explicite button, but drop du to perfomance issue.

To Kovid, that was possible to implemente a unique button as a cell (button of we modified properties dynamically according to the note it represents), or that is still to much bad regardless the perfomance?
Attached Thumbnails
Click image for larger version

Name:	Capture d’écran 2023-11-05 112220.png
Views:	397
Size:	3.2 KB
ID:	204572  
un_pogaz is offline  
Old 11-05-2023, 06:30 AM   #77
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by un_pogaz View Post
To Kovid, that was possible to implemente a unique button as a cell (button of we modified properties dynamically according to the note it represents), or that is still to much bad regardless the perfomance?
There were two performance problems:
  • creating many thousand pushbuttons in Qt is slow. Each cellWidget had 3. A user-provided test library had 36,000 author rows, or 100,000 buttons.
  • cellWidgets are themselves very slow. I had read about that problem when doing the initial implementation but didn't test with a library big enough to run into the problem. Doing the beta fixed that oversight.
The performance problems can in theory be eliminated by using a styledItemDelegate instead of cellWidgets and drawing the buttons instead of creating button widgets. However, that seems to require writing the delegate in C++, which requires rebuilding calibre's binary for every test. This wasn't something I wanted to try.

Kovid's "checkbox" solution is performant, purely in python, and easy to understand. With a context menu offering create/edit, delete, import, and export (which exists) it works well enough.
chaley is offline  
Old 11-05-2023, 07:23 AM   #78
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,396
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yeah i dont think using a cell widget is workable with large libraries. The "right" way to fix this if not use QTableItems and instead use a proper model with caching. And then use a styled delegate that draws its buttons based on the data in the model for the current cell. And then it will have to handle mouse events and so on, its a lot of work. I think the checkmark is a reasonable compromise. One can add a tooltip to it saying press f2 to edit or whatever.

@charles: I think a styled delegate would be doable in python but given that it has to handle events and state and so on it will be a lot of work
kovidgoyal is offline  
Old 11-05-2023, 07:56 AM   #79
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
One can add a tooltip to it saying press f2 to edit or whatever.
Tooltips in QTableWidgets don't work unless one implements mouse tracking. Switching to model/view would fix that, but ...

Another way to "fix" this is to use an "is editable" icon, perhaps edit_input.png. It could go on non-edited cells, just as the "Edited" (quill) icon goes on edited cells. Something like this:
Click image for larger version

Name:	Clipboard02.jpg
Views:	415
Size:	36.6 KB
ID:	204583

I don't feel strongly one way or the other.
chaley is offline  
Old 11-05-2023, 11:14 AM   #80
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,396
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
isnt turning on mouse tracking just a one line change? I'm not very fond of the icon it really clutters up the table since its there on every cell.
kovidgoyal is offline  
Old 11-05-2023, 11:18 AM   #81
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
isnt turning on mouse tracking just a one line change?
TBH I don't know. I thought I would also need to detect that the mouse is hovering in the table cell, which isn't quite so easy.
Quote:
I'm not very fond of the icon it really clutters up the table since its there on every cell.
I agree. Personally I would leave it as it is.
chaley is offline  
Old 11-05-2023, 11:29 AM   #82
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,396
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It should just require calling self.setMouseTracking() but the bad part is that since we arent using a model we would have to call settooltip on every cell which is a huge amount of largely useless CPU work.
kovidgoyal is offline  
Old 11-05-2023, 12:35 PM   #83
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
Suggestion: instead of presenting a list of category item values in the Manage categories drop down, could a checkbox option be added at the top of the Category editor (xxxxxx) dialogue — "Only show items for the selected book(s)". If multiple books is a bridge too far, make it 'selected book' and disable the option if multiple books are selected.
I thought about this for a while, trying and failing to figure out why it would be better than showing the items in Manage categories. Then it hit me -- if you are using the cover grid then there is no way to select the column and therefore no way to see the item values in the menu. Adding the selected books restriction into the dialogs works around that problem.

This is what I submitted to Kovid, leaving Manage categories showing the items if it can.
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.jpg
Views:	411
Size:	35.5 KB
ID:	204587  
chaley is offline  
Old 11-05-2023, 05:00 PM   #84
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,767
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
This is what I submitted to Kovid, leaving Manage categories showing the items if it can.


Suggestions :
  • replace the ✔ with a pencil to match what's in Book Details;
  • put tooltips in the Category editor headers - as per the Book list.
BR

Last edited by BetterRed; 11-05-2023 at 05:08 PM.
BetterRed is offline  
Old 11-05-2023, 05:25 PM   #85
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,767
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
I thought about this for a while, trying and failing to figure out why it would be better than showing the items in Manage categories. Then it hit me -- if you are using the cover grid then there is no way to select the column and therefore no way to see the item values in the menu. Adding the selected books restriction into the dialogs works around that problem.
I don't use the cover grid.

I use the Manage [category] items dialogue (via Shift+F2 in the book list) to add new category items and apply category items to books. For me it is significantly less error prone that adding and selecting in line. I would normally know I wanted to attach a note to a category item when I added it, which is why I started this conversation there.

BR
BetterRed is offline  
Old 11-05-2023, 05:39 PM   #86
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
Suggestions :
  • replace the ✔ with a pencil to match what's in Book Details;
The check mark is a character, which permits showing both the "edited" icon and the check mark. Only one icon can be applied to a cell, so if we use the pencil icon then we can't use the edited icon. The edited icon can't replace the checkmark because a deleted note is edited with no check. I suppose that someone could invent a set of icons to indicate the 4 states (empty not edited, empty edited, exists not edited, exists edited), but that is neither something I am good at nor want to do. Perhaps someone else is willing to take it on.
Quote:
  • put tooltips in the Category editor headers - as per the Book list.
BR
Headers in the Qt table widget don't support tooltips. As Kovid said a bit back, getting tooltips really requires switching to the equivalent model/view implementation as used for the book list, which is a huge amount of work.
chaley is offline  
Old 11-05-2023, 06:29 PM   #87
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,767
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I had this in mind: ✏️ — code point: U+270F U+FE0F. But now I know the Note cells are editable, for me it's moot.

And if I could, I'd move the Count and Was columns after Link and Note - then I wouldn't have to navigate through them to get at the editable cells.

BR
BetterRed is offline  
Old 11-05-2023, 07:28 PM   #88
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,035
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Possible Qt weirdness: I noticed in various plugin dialogs that contain a table ("Edit List" in Reading List, "Show Reading Position Changes" in Kobo Utilities), the widths of the columns repeatedly get reset. I don't recall this happening before, can anyone else confirm?
ownedbycats is offline  
Old 11-06-2023, 04:09 AM   #89
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 441
Karma: 145424
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by BetterRed View Post
I had this in mind: ✏️ — code point: U+270F U+FE0F. But now I know the Note cells are editable, for me it's moot.
Oh, nice idea
*testing*
[attached image]

weellll... not really conclusive.


I still think there's a good idea there, but to get a satisfactory result, we'd have to draw our own pencil and add it to calibreSymbols.otf font. And after all, the pencil is already the symbol for note elsewhere.
But like your say, detail when we know.

Also, after a little further testing, I identified that it was the Variation Selector U+FE0F that wasn't identified (probably on Qt side), so the character U+270F was read raw ✏ (bonus ✎ U+270E, ✐ U+2710)
Attached Thumbnails
Click image for larger version

Name:	Capture d’écran 2023-11-06 094651.png
Views:	401
Size:	1.5 KB
ID:	204594  
un_pogaz is offline  
Old 11-06-2023, 04:15 AM   #90
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,396
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes it would require the special font as otherwise we hav eno idea what kind of pencil it will look like. And that font would need to be set on every notes cell. Not really worth it for pencil over checkmark.
kovidgoyal is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Odyssey Firmware beta test EowynCarter Bookeen 16 02-28-2016 07:23 AM
[Android] Calibre Companion alpha and beta test programs chaley Calibre Companion 0 02-21-2014 12:09 AM
Beta test phase for Calibre updates? rollercoaster Calibre 19 01-11-2011 02:08 AM
Copia beta test - Get Your Invite Now! Nate the great Announcements 34 11-18-2010 07:48 PM
Beta Beta Test of Major New Features Starson17 Calibre 45 05-17-2010 10:55 AM


All times are GMT -4. The time now is 08:16 PM.


MobileRead.com is a privately owned, operated and funded community.