Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-13-2024, 04:28 PM   #1
mrprobert
Enthusiast
mrprobert began at the beginning.
 
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".
mrprobert is offline   Reply With Quote
Old 08-13-2024, 06:11 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is offline   Reply With Quote
Old 08-13-2024, 07:14 PM   #3
mrprobert
Enthusiast
mrprobert began at the beginning.
 
Posts: 41
Karma: 46
Join Date: Mar 2017
Device: None
Yup, it's no biggie. Thanks for your explanation.
mrprobert is offline   Reply With Quote
Old 08-17-2024, 06:26 PM   #4
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
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);
It works for me.
Attached Thumbnails
Click image for larger version

Name:	sigil-validation-results-pluginname-en.png
Views:	50
Size:	37.2 KB
ID:	210233   Click image for larger version

Name:	sigil-validation-results-pluginname-pl.png
Views:	43
Size:	37.6 KB
ID:	210234  
BeckyEbook is online now   Reply With Quote
Old 08-17-2024, 08:36 PM   #5
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,156
Karma: 5450818
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
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);
It works for me.
Where exactly are you setting setWindowTitle at?
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.
KevinH is offline   Reply With Quote
Old 08-18-2024, 06:21 AM   #6
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
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);
}
BeckyEbook is online now   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 02:35 PM.


MobileRead.com is a privately owned, operated and funded community.