<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 21, 2013 at 3:00 AM, Aaron J. Seigo <span dir="ltr"><<a href="mailto:aseigo@kde.org" target="_blank">aseigo@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Wednesday, March 20, 2013 23:29:51 amanjot singh wrote:<br>
> It isn't fully developed yet, so I wanted to submit a proposal for the same<br>
> to make it a fully functional and a usable widget.<br>
<br>
</div>What are the use cases you have in mind for this widget?<br></blockquote><div><br></div><div>The main use case would be the "Create new.." facility that you mentioned later in your mail, allowing users to create files without having to open the base application program and following the usual steps.</div>
<div>It can also act as a template manager for applications that don't provide one.</div><div>As of now I can think of only these two use cases.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Also, have you worked on this, or other KDE software, since SoK? </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
> The main goal would be improvement of the user interface, the widget uses a<br>
> file dialog, instead a list of available templates would be developed<br>
> showing their title, author, date of creation and other information.<br>
<br>
</div>The existing widget is very pretty, and a nice list that appears when an item<br>
is selected would be an improvement, yes. Have you given thoughts as to how<br>
this might look?<br>
<br></blockquote><div><br></div><div>Yes, I have been working on this throughout the year. I was trying to replace the file dialog with a list of templates with information about them extracted from the meta.xml file in the template archive. This included making a new model-view architecture, using tree view for the list etc. This all is included in the "experiment" branch of my repository.</div>
<div><br></div>
<div>I have successfully created the list and the UI, but it comes in a plasma-enclosed window of some sort and it's look is inconsistent with the look of the main widget. I searched for a solution, someone suggested to turn the "windowIsDecorated" to false. But that made the list stick to the main widget and immovable.</div>
<div><br></div><div style>So as of now I'm trying to make the list appear in a Plasma::Dialog (like the spell check widget) rather than being displayed independently inside a plasma enclosed window, as it matches more with the appearance of the main widget. But that is turning out to be a pain because I'm having some implementation issues with the model and the dialog appears all solid and gray in color, unlike the spell-check widget. Though I copied the code for the plasma::dialog from the source code of the spell-check widget.</div>
<div style><br></div><div style>The widget, according to me, should be consistent in look and feel, the list would be displayed after one clicked the corresponding button, with buttons for opening and closing a particular template and the list respectively. The list should be movable since if otherwise if the user clicked different buttons in the main widget, different lists would pop up, immovably stuck to the widget and it would all be a mess.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, your current widget uses QGraphicsView widgets, which makes sense for<br>
when it was written. Have you done any work with QML yet, as that is what have<br>
been moving to.<br>
<div></div></blockquote><div><br></div><div style>Um, nope I haven't done any work with QML, I have been developing in C++. I guess I could learn that.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> </div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
> Another thing that would be added is a preview button that shows the<br>
> preview or thumbnail of the files in the list.<br>
<br>
</div>this can probably be done by default witha button.<br></blockquote><div><br></div><div style>Yes, that would be useful. But I haven't found any such functionality in any plasma-widget, so I tried making buttons for each template and display the thumbnails in the template archive. But it wasn't that successful, would have to work on it again.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
> A standardization of the folder where LibreOffice stores templates would<br>
> have to made for the widget to work properly on every system.<br>
<br>
</div>afaik it exists: $PREFIX/share/templates<br>
<div><br>
> After this is developed, the widget will be extended to work with multiple<br>
> application programs, allowing the user to create and open files and<br>
> templates of the types not supported or not present in LibreOffice.<br>
</div><div>> Would like to ponder on any more suggestions on the development of the<br>
> widget and comments on my direction of development. :)<br>
<br>
</div>We have need for something similar in Plasma Active .. a "Create New..." app<br>
that would offer such templates. It would need to support all the applications<br>
that can create documents on the system, even if they don't have templates,<br>
but it's easy enough to extend the extant design with.<br>
<span><font color="#888888"><br></font></span></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><font color="#888888">--<br>
Aaron J. Seigo</font></span><br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
<br></blockquote></div><br></div><div class="gmail_extra"><br></div></div>