<div dir="ltr">Hi Sven,<div><br></div><div>This looks interesting :) From my side I'm interested in this patch because it will allow us to implement some methods that were missing in KDevelop from KTE::MainWindow. In my case, I'm talking about these two methods:</div><div><br></div><div>bool closeSplitView(KTextEditor::View *view);</div><div><div>bool viewsInSameSplitView(KTextEditor::View *view1, KTextEditor::View *view2);</div></div><div><br></div><div>I've taken a quick look at your patch and modified it a bit to see if these two methods are now available through this new MainWindowInterface class and things seem to work (at least on a very basic level :P).</div><div><br></div><div>In regards to the KTE toolview interface, I'll let the Kate guys speak here :)</div><div><br></div><div>Greetings,</div><div>Miquel</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 15, 2014 at 6:02 PM, Sven Brauch <span dir="ltr"><<a href="mailto:svenbrauch@googlemail.com" target="_blank">svenbrauch@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
I'm experimenting with implementing the KTextEditor interfaces in<br>
KDevelop so we can load all the plugins. I have a proof of concept<br>
which can load the snippets plugin and execute snippets in a view [1],<br>
[2].<br>
<br>
One thing which does not work very well is the toolview interface. The<br>
KTE interface is designed so that the plugin can say "make me a<br>
toolview and give me the widget so I can put my stuff in it". In<br>
KDevelop (or rather, sublime), you can only register a toolview<br>
factory (= factory for the widget) and sublime will instantiate the<br>
widget when required. It's not clear how to connect those two<br>
interfaces, since when creating a view, a KTE plugin immediately wants<br>
a widget to populate, but sublime doesn't give you that.<br>
<br>
In my proof of concept solution, I use a factory which has one fixed<br>
widget for each toolview, but that feels very bad.<br>
<br>
Thoughts?<br>
<br>
Greetings!<br>
Sven<br>
_____________<br>
[1] picture: <a href="https://i.imgur.com/6x9HMsP.png" target="_blank">https://i.imgur.com/6x9HMsP.png</a><br>
[2] patch attached<br>
<br>_______________________________________________<br>
KWrite-Devel mailing list<br>
<a href="mailto:KWrite-Devel@kde.org">KWrite-Devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kwrite-devel" target="_blank">https://mail.kde.org/mailman/listinfo/kwrite-devel</a><br>
<br></blockquote></div><br></div>