![]() |
#1 |
Enthusiast
![]() Posts: 31
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".
|
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,974
Karma: 5449552
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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 31
Karma: 46
Join Date: Mar 2017
Device: None
|
Yup, it's no biggie. Thanks for your explanation.
|
![]() |
![]() |
![]() |
#4 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 733
Karma: 2296998
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); |
![]() |
![]() |
![]() |
#5 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,974
Karma: 5449552
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 09:51 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 733
Karma: 2296998
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); } |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
WSJ (paid) recipe - request for filename/title change | stualden | Recipes | 4 | 09-13-2019 09:53 AM |
Calibre 1.45 Request to Make Edit Title Change an Option | wired4net | Calibre | 5 | 07-21-2014 04:02 AM |
Feature Request - Change Size of Library Title Font | Noventer | Marvin | 1 | 03-13-2014 07:27 PM |
change window title in C (pure x) | brianinmaine | Kindle Developer's Corner | 1 | 10-25-2013 04:21 PM |