![]() |
#286 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Regarding #2 being too big a change: it isn't. All I had to do was add a bunch of labels and layouts to the .ui file. Nothing changed in the .py file for this. Of course, adding the default parameters added minimal changes to the .py file.
The attached zip contains the 3 needed files. They all go into gui2.dialogs |
![]() |
![]() |
![]() |
#287 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Here is a screen capture of the example template dialog with the extra widgets.
|
![]() |
![]() |
![]() |
#288 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I forgot to mention: code already exists to embed the template dialog inside another widget. Preferences/Template functions uses it. See gui2.preferences.template_functions.py and template_functions.ui. It uses gui2.dialogs.template_dialog.EmbeddedTemplateDialo g.
This might be more appropriate/easier to use for some of what you are doing. |
![]() |
![]() |
![]() |
#289 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
I tried out the changes and they seem to be working well from the little testing I've done
![]() ![]() Quote:
|
|
![]() |
![]() |
![]() |
#290 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I made space for 9 rows but added 6. I will add the other 3. After that you will need collapse them into sub-layouts. ![]() I will submit the changes to Kovid tomorrow morning, or later tonight if I get time before I am too tired and start making stupid mistakes. |
|
![]() |
![]() |
![]() |
#291 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Thanks again
![]() |
![]() |
![]() |
![]() |
#292 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#293 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
I've ported all three dialogs (TemplateBox, ConditionsEval, FormulaDialog) to use the updated template dialog, will wait until the updates are released.
|
![]() |
![]() |
![]() |
#294 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,000
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Is it intended that hiding a chain from the menu also makes it unavailable for keyboard shortcut?
|
![]() |
![]() |
![]() |
#295 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
The current situation is that if you set a chain condition and it evaluates to false, the chain will menu entry will be greyed out. When you try launch the chain from a keyboard shortcut it will fail silently.
In the next version, the greying out of the menu will be optional. And if you try to launch the chain from the menu or shortcut while conditions are not met, an error dialog will pop up. Last edited by capink; 01-26-2021 at 12:13 AM. |
![]() |
![]() |
![]() |
#296 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,000
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
There are no conditions attached. Just it's unchecked in the config menu as I only plan to use it via hotkey. I can leave it visible though.
|
![]() |
![]() |
![]() |
#297 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
If it is unchecked in the config menu, the chain action is not created, and cannot be used at all. For chains that are only gonna be used from shortcut, the best solution is to bury them in a submenu.
|
![]() |
![]() |
![]() |
#298 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#299 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
|
![]() |
![]() |
![]() |
#300 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
version 0.7.0
Version 0.7.0
Edit: New version requires calibre >=5.10.0 Last edited by capink; 01-26-2021 at 11:31 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Editor Plugin] Editor Chains | capink | Plugins | 106 | 06-17-2025 05:36 PM |
Action Chains Resources | capink | Plugins | 77 | 06-16-2025 12:45 PM |
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB | lrpirlet | Plugins | 2 | 08-18-2022 03:15 PM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |