08-13-2024, 04:28 PM | #1 |
Enthusiast
Posts: 41
Karma: 46
Join Date: Mar 2017
Device: None
|
Request: Change to Validation Results window title
Is it possible to change the Validation Results window title to reflect the type of validation performed? I use the CSSValidator and EpubCheck plugins, and "Well-Formed Check EPUB".
|
08-13-2024, 06:11 PM | #2 |
Sigil Developer
Posts: 8,156
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Why does that matter? The Validation Results Window holds that last validation run you made no matter what validation tool you use. If in doubt, rerun it.
Given tool names will need to be translated and added to the titlebar, that is just not something I am willing to do. |
08-13-2024, 07:14 PM | #3 |
Enthusiast
Posts: 41
Karma: 46
Join Date: Mar 2017
Device: None
|
Yup, it's no biggie. Thanks for your explanation.
|
08-17-2024, 06:26 PM | #4 |
Guru
Posts: 782
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
My two cents:
I even like this idea. I guess there is no need for additional translation if you use the standard window title and just add the plugin name. Code:
setWindowTitle(tr("Validation Results") + " • " + PluginNameHere); |
08-17-2024, 08:36 PM | #5 | |
Sigil Developer
Posts: 8,156
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
Where are you getting m_pluginName from? Will your approach work with the embedded python SanityCheck since it is not a plugin? Please post a diff or PR with your changes to implement this if you have them? Thanks! Last edited by KevinH; 08-17-2024 at 10:51 PM. |
|
08-18-2024, 06:21 AM | #6 |
Guru
Posts: 782
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
Hmmm... It works for Well-Formed Check EPUB (F7) and for validation plugins.
For SanityCheck itself I haven't checked, since it's probably called every time we use Validation Results. I'll test it during normal operation for a few days and if I don't find some unpleasant side effect I'll send the diffs so you can figure out the proper naming for the voids yourself. In brief: For plugins: PluginRunner [plugin name] -> MainWindow -> ValidationResultsView For Well-Formed: MainWindow::WellFormedCheckEpub() -> ValidationResultsView Code:
void ValidationResultsView::setNewValidationTitle(const QString &text) { setWindowTitle(tr("Validation Results") + " • " + text); } |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
WSJ (paid) recipe - request for filename/title change | stualden | Recipes | 4 | 09-13-2019 10:53 AM |
Calibre 1.45 Request to Make Edit Title Change an Option | wired4net | Calibre | 5 | 07-21-2014 05:02 AM |
Feature Request - Change Size of Library Title Font | Noventer | Marvin | 1 | 03-13-2014 08:27 PM |
change window title in C (pure x) | brianinmaine | Kindle Developer's Corner | 1 | 10-25-2013 05:21 PM |