![]() |
#16 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,765
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Snooped a bit more in Qt's online docs ....
In Sigil, a ContentTab inherits from QWidget and according to the docs, if we overload this QWidget routine and ignore the event (controllable by setting a variable) it will not be able to be dragged. Quote:
Code:
void QWidget::dragEnterEvent(QDragEnterEvent * event); And then every time a new tab becomes the current tab, we enable it and disable all of the others, so that only a current tab will be draggable (at least in theory!). So it should be doable. KevinH |
|
![]() |
![]() |
![]() |
#17 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sounds good in theory.
![]() So long as it's not too invasive to implement. I know there's tons of places where we're closing tabs before running procedures and then reopening them. |
![]() |
![]() |
![]() |
#18 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,765
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Let's try the "force the drag to be current" approach first to see if it does the trick.
|
![]() |
![]() |
![]() |
#19 |
Klak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
|
shortcuts rulez, imho.
|
![]() |
![]() |
![]() |
#20 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Code:
setAcceptDrops(true); setChangeCurrentOnDrag(true); Do you see any of the odd behavior RE inactive tabs on Mac? |
|
![]() |
![]() |
![]() |
#21 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,765
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Sorry not at a dev machine right now and leaving for class in a few minutes. Will check tonight and get back to you.
|
![]() |
![]() |
![]() |
#22 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
No problem. There's a mac build out there where I added the properties if you want see if there's any different behavior for macOS with them enabled, but I've since reverted the change.
|
![]() |
![]() |
![]() |
#23 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,730
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
The OPs issue isn't repositioning the horizontal tabs in the CV window. He is having difficulty moving .html files [up and down] in Book Browser in 1.1.0.
Are they the same thing internally? BR |
![]() |
![]() |
![]() |
#24 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
We're off on a bit of a tangent right now, yes. But as I mentioned in post #6, the dragDistance setting is an app-level setting. Making the drag distance smaller for Book View will come at the expense of making tab reordering more finicky.
|
![]() |
![]() |
![]() |
#25 |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Windows 10 Pro. 1909 64 bit (HP computer) Thanks. That helped, but it's still a little dicey and much diceier than on older Sigil versions.
|
![]() |
![]() |
![]() |
#26 | |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Quote:
|
|
![]() |
![]() |
![]() |
#27 |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
|
![]() |
![]() |
![]() |
#28 | |
Zealot
![]() Posts: 100
Karma: 10
Join Date: Aug 2019
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#29 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I fear the conversation has introduced some confusion. Moving multiple files in book browser has nothing to do with what Kevin and I are talking about. Nothing will change with how moving files in book browser works (except for hopefully getting a little easier). The ability to reorder multiple open tabs tabs has never been supported in Sigil.
Last edited by DiapDealer; 02-12-2020 at 09:04 PM. |
![]() |
![]() |
![]() |
#30 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,765
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Just finished building the version before your revert and I could not perceive any differences at all.
Do you want me try coding up the disable/enable movement by a ContentTab to see if that is workable? KevinH |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hacks Kindle browser to read html files | l1n1234 | Amazon Kindle | 23 | 01-28-2012 11:00 PM |
PRS-950 Can PRS-950 web browser view local HTML files? | roc | Sony Reader | 3 | 04-02-2011 10:58 AM |
Browser doesn't load local HTML files? | kenjennings | enTourage Archive | 1 | 02-19-2011 09:52 AM |
Difficulty with conversion of HTML | ficbot | Calibre | 8 | 03-23-2009 09:34 AM |