View Single Post
Old 12-10-2017, 12:20 PM   #237
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,893
Karma: 6120478
Join Date: Nov 2009
Device: many
The plugin runner actually builds a sigil.cfg file that the plugin launcher code parses to get appdir, dictionary and other paths for the wrapper code that are then added to the plugin interface. The correct way to handle this is to change MainWindow.cpp to add a routine to access m_CurrentFilePath, and use that new interface in PluginRunner to add this new path to the sigil.cfg and then add associated interface routines to the launcher/wrapper and then plugin type specific codes.

This involves quite a bit of work. So please explain why it is needed? Is this just to seed a possible name for output plugins? Why would an edit plugin need to know the name of the epub file as it can not be changed without messing up Sigil. Ditto for a validation plugin?
And input plugins are to load other files anyway so the current filename does not make much sense to me there either.

Kevin

Last edited by KevinH; 12-10-2017 at 12:24 PM.
KevinH is offline   Reply With Quote