|
|
#16 | |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,933
Karma: 34252880
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
ps: I don't use it often enough to have warranted making a request for a context menu. BR Last edited by BetterRed; Yesterday at 04:51 PM. |
|
|
|
|
|
|
#17 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,257
Karma: 7640672
Join Date: Nov 2009
Device: many
|
Since no text input is needed in that dialog, I mapped pushbuttons to the keyboard as shown below (think Down, Up, First, Last).
Code:
bool EditRO::eventFilter(QObject *obj, QEvent *event)
{
if (obj == ui.ROList) {
if (event->type() == QEvent::KeyPress) {
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
int key = keyEvent->key();
if (key == Qt::Key_D) {
MoveDown();
return true;
} else if (key == Qt::Key_U) {
MoveUp();
return true;
} else if (key == Qt::Key_F) {
ToTop();
return true;
} else if (key == Qt::Key_L) {
ToBottom();
return true;
}
}
}
// pass the event on to the parent class
return QDialog::eventFilter(obj, event);
}
|
|
|
|
|
|
#18 | |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 462
Karma: 100100
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Quote:
The context menu referred to by Kevin is the Book Browser context menu. When you select 'Change Reading Order', the resulting dialog just has a couple of buttons and up/down arrows - no context menu. |
|
|
|
|
|
|
#19 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,257
Karma: 7640672
Join Date: Nov 2009
Device: many
|
And the Change Reading Order dialog uses a simple key to button mapping (as described above) to allow quick keyboard only use - so no need to Tab around to a button and back.
|
|
|
|
|
|
#20 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,933
Karma: 34252880
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
For my very occasional use, tabs and spaces are easier, I also use them to move around and select the controls in other Sigil tools, e.g. Find and replace, Reports. Because I use Metadata editor several times a week I use its context menu.
Curious: why is the Change Reading Order modal dialogue window a detached child of the Main window, on Windows 10 it creates a separate taskbar item. The very similar Metadata Edit modal dialogue window is an attached child of the Main window hence it's not shown on the taskbar. See attached screen shots. BR Last edited by BetterRed; Today at 04:43 PM. |
|
|
|
|
|
#21 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,257
Karma: 7640672
Join Date: Nov 2009
Device: many
|
Not adding an unneeded context menu for such a simple dialog, feel free to use Tab but using the specified keys is much faster.
It is modal as you need to specify the order before anything else can happed. It is not a QDockWidget. Will look into how it is parented. Last edited by KevinH; Today at 05:26 PM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Preference settings always ignored | rmtew | Conversion | 2 | 11-11-2013 03:45 PM |
| preference scope | BetterRed | Calibre | 2 | 10-01-2013 05:25 AM |
| No Preference or Help Button on Calibre (v. 0.8.41) | Toffee | Devices | 2 | 03-05-2012 09:39 AM |
| Publishers Preference Poll | CJJ | General Discussions | 24 | 02-12-2012 02:29 PM |
| view preference | cybmole | Calibre | 2 | 01-25-2011 04:26 PM |