guiFactory() in KTextEditor::MainWindow
christoph at cullmann.io
Tue Jan 7 13:27:03 GMT 2020
On 2020-01-06 22:07, Thomas Friedrichsmeier wrote:
> On Mon, 06 Jan 2020 19:50:17 +0100
> Christoph Cullmann <christoph at cullmann.io> wrote:
>> For KF6, we might want to improve the interfaces more e.g. to easier
>> to expose stuff like projects to the plugins. Perhaps that might be
>> an other
>> place to cooperate.
> I'll be happy to chime in with ideas when I have some.
>> For the proposed extension/change: Perhaps we should do it the other
>> way around:
>> 1) Deprecate KTextEditor::MainWindow::guiFactory()
>> 2) Let the host application add the plugin views to it's GUI by
>> "requiring" that they
>> inherit from the KXMLGUIClient
>> That would give you flexibility and would move the tedious task of
>> plug in/out the UI
>> to the host application away from all plugins.
> This does make a lot of sense, indeed. Yet, I was looking for a
> solution that could be implemented right now (not sure on the KF6
> timeline, and a bit afraid that I won't remember to come back to it
> at the right moment).
Ok, that is right, one could try to add a "compatible" add/removeClient
hack now that either calls a matching slot if existing or just passes
it on to the GUI factory.
For the other way around I see no compatible way, you are right.
Perhaps others have better ideas?
Ignorance is bliss...
https://cullmann.io | https://kate-editor.org
More information about the KWrite-Devel