Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-10-2020, 08:15 AM   #1
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 800
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Info On Clips Toolbar 2

I have been playing with my clips and the two Clips Toolbars.

The first clips toolbar works like it says in the manual. It will hold 20 clips and if necessary overflow to a supplementary toolbar accessed by a tool in the bottom left hand corner of the bar.

The second Clips toolbar for some reason seems only accept nine items. The nine items seems a bit odd to me.

It is not a problem. It just means I have to work one way rather than another. But I am just curious as I would have expected both Clip Bars to have similar features.
Thasaidon is offline   Reply With Quote
Old 10-10-2020, 08:52 AM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
Should be able yo put first 20 in Clips1 and second 20 in clips 2 with no overload. If that doesn't work then it is a bug.
KevinH is online now   Reply With Quote
Advert
Old 10-10-2020, 02:08 PM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You would need a total of 40 clips to see the second toolbar hold 20 items, I would think.
DiapDealer is online now   Reply With Quote
Old 10-10-2020, 09:23 PM   #4
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 800
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Quote:
Originally Posted by DiapDealer View Post
You would need a total of 40 clips to see the second toolbar hold 20 items, I would think.
Absolutely True

I have a list of thirty clips. The first 20 clips show on the first Clip Bar.. Because of the clip names I use, some spill over to the supplementary toolbar.

Of the remaining 10 clips only 9 appear on the second toolbar.

I checked further. I have no groups so I added a dummy clip at the bottom of the Clip Editor.

The Clip which previously was not being displayed on the second Clip Bar was now being shown The second Clip bar was now showing 10 Clips.

The problem seems to be to do with the last clip in the Clip Editor not showing and not the number of clips the second Clip bar can display.
Thasaidon is offline   Reply With Quote
Old 10-11-2020, 10:26 AM   #5
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
I took a look at the code in ClipEditorModel that looks up the proper clip entry by clip number and the existing code is very convoluted (to say the least) and it increments the row pointer before completing all of the tests so I think there is an off by one here that only occurs for the very last row of the clipeditor model.

I will try to rewrite this to see if it helps.
KevinH is online now   Reply With Quote
Advert
Old 10-11-2020, 08:55 PM   #6
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 800
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Quote:
Originally Posted by KevinH View Post
I took a look at the code in ClipEditorModel that looks up the proper clip entry by clip number and the existing code is very convoluted (to say the least) ....

I will try to rewrite this to see if it helps.
Thank you.

Very convoluted code is rarely a good idea. It makes maintenance difficult. I know

To finish off the second toolbar will display 20 clips. I created a load of dummy clips last night to confirm this.
Thasaidon is offline   Reply With Quote
Old 10-13-2020, 11:33 AM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
Okay just pushed to master a fix for a rare off by one condition that calculated the ClipEditorModelItem from the clip number when the one wanted was in the very last row of the model.

This fix should appear in the upcoming release.
KevinH is online now   Reply With Quote
Old 10-13-2020, 09:23 PM   #8
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 800
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Quote:
Originally Posted by KevinH View Post
Okay just pushed to master a fix for a rare off by one condition that calculated the ClipEditorModelItem from the clip number when the one wanted was in the very last row of the model.

This fix should appear in the upcoming release.
Thank you.

And another bug bites the dust.
Thasaidon is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sticky second row of main toolbar or move second toolbar to top? Zealousky Calibre 6 04-20-2021 11:58 PM
Clips JimmyG Sigil 2 11-16-2012 12:21 PM
Touch Two clips enough? Red Alert Barnes & Noble NOOK 9 07-08-2011 05:23 PM
LrfAppender: IE toolbar similar to "Toolbar for Librie" mumurik LRF 1 10-13-2009 04:01 AM
LrfAppender: IE toolbar similar to "Toolbar for Librie" mumurik Sony Reader Dev Corner 1 10-06-2009 03:33 AM


All times are GMT -4. The time now is 08:47 AM.


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