<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Aug 2, 2014 at 4:34 PM, Denis Steckelmacher <span dir="ltr"><<a href="mailto:steckdenis@yahoo.fr" target="_blank">steckdenis@yahoo.fr</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>
My GSoC project for this year consists of implementing a QML/Javascript language plugin for KDevelop. I've worked on the plugin for several months and it is starting to be in a usable state. It recognizes the whole QML and Javascript syntax and understands many things, like QML module imports, directory imports (import "../dir" as MyDir), and even the import of binary QML modules installed in $KDE4_LIB_DIR/imports (provided that you have "qmlplugindump", "qmlplugindump-qt5" or "qml1plugindump" installed in your PATH).<br>


<br>
While the plugin may not recognize QML modules installed in unusual locations (QML does not provide any standard include path, everything is application-specific I think), it may already be useful for some people.<br></blockquote>

<div><br></div><div>For starters, we should get QML plugins to generate automatically the plugin dump. Those could even be generated by cmake and distributed by distributions, rather than generated at runtime.</div><div>
<br>
</div><div>FWIW, I haven't been able to get KDevelop to find one of those imports, even though qmlscene gets to find them, so there's probably space for improvement there.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
The GSoC coding period ends in two weeks, and during this time, I invite those interested to install the plugin (repository: kde:kdev-qmljs, branch master, requires KDevelop and KDevPlatform 4.7 or master), to test it and to reply to this email (or ping me on #kdevelop, nickname steckdenis) if you think that a feature is missing or could be improved. Here is a list of the planned features and the reason why they don't already exist:<br>


<br>
* Helper widget* for choosing a font family: the plugin is based on Qt4 that does not offer QtQuick.Controls, so advanced helper widgets are impossible to implement for now. The plugin will be ported to Qt5 and KF5 during the Randa meeting.<br>


* Helper widget for previewing an animation (and choosing its easing type, duration, etc): same reason as above<br>
* QML previewer: would add a dependency on QtCreator (qmlpuppet is the tool, shipped with QtCreator, that allows to preview QML widgets), and would be very complicated to implement.<br></blockquote><div><br></div><div>That wouldn't help much for plasma, plasmoids need a big infrastructure to get them running. At the moment the plasmoidviewer is the only way to run a plasmoid that is not the full plasmashell, and it's quite close to it.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks for any feedback,<br>
Denis<br>
<br>
*Helper widget: if you put your cursor on an QML property like "color:", "width:" or "family:", a widget appears in a tool-tip.</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

This widget can be a color picker, a preview of the font size or family you have chosen, etc.<br></blockquote><div><br></div><div>I've been using this plugin for months, those helpers look quite cool but they're not very useful in practice, I've thought of discussing to remove those. We can discuss that in Randa anyway.</div>

<div><br></div><div>Keep up the good work!</div><div><br></div><div>Cheers!</div><div>Aleix </div></div></div></div>