[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Review Request 112888: Roughly port icon applet to plasma2
From: "Bhushan Shah" <bhush94 () gmail ! com>
Date: 2013-09-23 12:32:50
Message-ID: 20130923123250.6829.79079 () vidsolbach ! de
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
> On Sept. 23, 2013, 9:47 a.m., Sebastian Kügler wrote:
> > plasma/generic/applets/icon/plugin/icon_p.h, line 31
> > <http://git.reviewboard.kde.org/r/112888/diff/1/?file=191268#file191268line31>
> >
> > Why Q_INVOKABLE, and not Q_PROPERTIES here? (For all three accessors). That would \
> > seem more declarative.
> > This would also make the "remote" case easier, when you have to stat a remote \
> > file asynchronously and only know details after the network request.
>
> Bhushan Shah wrote:
> Passing url is my main problem here..
>
> Sebastian Kügler wrote:
> I'd add a writable property url, which then updates all the other properties via \
> property bindings.
But I don't have url at the time of applet creation.. keeping it for later..
- Bhushan
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112888/#review40507
-----------------------------------------------------------
On Sept. 23, 2013, 8:26 a.m., Bhushan Shah wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/112888/
> -----------------------------------------------------------
>
> (Updated Sept. 23, 2013, 8:26 a.m.)
>
>
> Review request for Plasma, Marco Martin and Sebastian Kügler.
>
>
> Description
> -------
>
> Port Icon applet to plasma2
>
> Some issues..
>
> -> Can be resized to 1x1.
> -> Still doesn't work for folder, and external URLs.
> -> Configuration dialog
>
>
> Diffs
> -----
>
> plasma/generic/applets/CMakeLists.txt 4ace449
> plasma/generic/applets/icon/CMakeLists.txt 1094666
> plasma/generic/applets/icon/icon.h 45fa07c
> plasma/generic/applets/icon/icon.cpp 8288850
> plasma/generic/applets/icon/package/contents/config/main.xml PRE-CREATION
> plasma/generic/applets/icon/package/contents/ui/main.qml PRE-CREATION
> plasma/generic/applets/icon/package/metadata.desktop PRE-CREATION
> plasma/generic/applets/icon/plasma-applet-icon.desktop 8275ddd
> plasma/generic/applets/icon/plugin/icon_p.h PRE-CREATION
> plasma/generic/applets/icon/plugin/icon_p.cpp PRE-CREATION
> plasma/generic/applets/icon/plugin/iconplugin.h PRE-CREATION
> plasma/generic/applets/icon/plugin/iconplugin.cpp PRE-CREATION
> plasma/generic/applets/icon/plugin/qmldir PRE-CREATION
>
> Diff: http://git.reviewboard.kde.org/r/112888/diff/
>
>
> Testing
> -------
>
> 1) Compiles
> 2) Installs
> 3) Loads
>
> -> Dropping application icon from KickOff - creates icon
> -> Dropping files from Dolphin, both executable and normal files - creates icon
> -> Dropping folder from Dolphin - creates icon applet but neither icon nor text \
> because folder handling is not added yet.
> 4) Opens URL - Clicking on the icon applet opens url with kfmclient
>
>
> File Attachments
> ----------------
>
> icons in panel
> http://git.reviewboard.kde.org/media/uploaded/files/2013/09/23/snapshot1.png
> icons as launcher
> http://git.reviewboard.kde.org/media/uploaded/files/2013/09/23/snapshot2.png
> files
> http://git.reviewboard.kde.org/media/uploaded/files/2013/09/23/snapshot3.png
> folders
> http://git.reviewboard.kde.org/media/uploaded/files/2013/09/23/snapshot4.png
>
>
> Thanks,
>
> Bhushan Shah
>
>
[Attachment #5 (text/html)]
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;"> <tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/112888/">http://git.reviewboard.kde.org/r/112888/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <p style="margin-top: 0;">On September 23rd, 2013, 9:47 a.m. UTC, \
<b>Sebastian Kügler</b> wrote:</p> <blockquote style="margin-left: 1em; \
border-left: 2px solid #d0d0d0; padding-left: 10px;">
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;"> <thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;"> <a \
href="http://git.reviewboard.kde.org/r/112888/diff/1/?file=191268#file191268line31" \
style="color: black; font-weight: bold; text-decoration: \
underline;">plasma/generic/applets/icon/plugin/icon_p.h</a> <span \
style="font-weight: normal;">
(Diff revision 1)
</span>
</th>
</tr>
</thead>
<tbody>
<tr>
<th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2"></font></th> <td bgcolor="#c5ffc4" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td> <th \
bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">31</font></th> <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span \
class="n">Q_INVOKABLE</span> <span class="n">QString</span> <span \
class="n">getGenericName</span><span class="p">(</span><span class="k">const</span> \
<span class="n">QUrl</span><span class="o">&</span> <span \
class="n">url</span><span class="p">)</span> <span class="k">const</span><span \
class="p">;</span></pre></td> </tr>
</tbody>
</table>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Why Q_INVOKABLE, and not \
Q_PROPERTIES here? (For all three accessors). That would seem more declarative.
This would also make the "remote" case easier, when you have to stat a \
remote file asynchronously and only know details after the network request.</pre> \
</blockquote>
<p>On September 23rd, 2013, 12:02 p.m. UTC, <b>Bhushan Shah</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Passing url is my main \
problem here..</pre> </blockquote>
<p>On September 23rd, 2013, 12:21 p.m. UTC, <b>Sebastian Kügler</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I'd add a writable \
property url, which then updates all the other properties via property bindings. \
</pre> </blockquote>
</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">But I \
don't have url at the time of applet creation.. keeping it for later..</pre> <br \
/>
<p>- Bhushan</p>
<br />
<p>On September 23rd, 2013, 8:26 a.m. UTC, Bhushan Shah wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;"> <tr>
<td>
<div>Review request for Plasma, Marco Martin and Sebastian Kügler.</div>
<div>By Bhushan Shah.</div>
<p style="color: grey;"><i>Updated Sept. 23, 2013, 8:26 a.m.</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Port Icon applet to plasma2
Some issues..
-> Can be resized to 1x1.
-> Still doesn't work for folder, and external URLs.
-> Configuration dialog</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">1) Compiles 2) Installs
3) Loads
-> Dropping application icon from KickOff - creates icon
-> Dropping files from Dolphin, both executable and normal files - creates icon
-> Dropping folder from Dolphin - creates icon applet but neither icon nor text \
because folder handling is not added yet.
4) Opens URL - Clicking on the icon applet opens url with kfmclient</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>plasma/generic/applets/CMakeLists.txt <span style="color: \
grey">(4ace449)</span></li>
<li>plasma/generic/applets/icon/CMakeLists.txt <span style="color: \
grey">(1094666)</span></li>
<li>plasma/generic/applets/icon/icon.h <span style="color: \
grey">(45fa07c)</span></li>
<li>plasma/generic/applets/icon/icon.cpp <span style="color: \
grey">(8288850)</span></li>
<li>plasma/generic/applets/icon/package/contents/config/main.xml <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>plasma/generic/applets/icon/package/contents/ui/main.qml <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>plasma/generic/applets/icon/package/metadata.desktop <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>plasma/generic/applets/icon/plasma-applet-icon.desktop <span style="color: \
grey">(8275ddd)</span></li>
<li>plasma/generic/applets/icon/plugin/icon_p.h <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>plasma/generic/applets/icon/plugin/icon_p.cpp <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>plasma/generic/applets/icon/plugin/iconplugin.h <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>plasma/generic/applets/icon/plugin/iconplugin.cpp <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>plasma/generic/applets/icon/plugin/qmldir <span style="color: \
grey">(PRE-CREATION)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/112888/diff/" style="margin-left: \
3em;">View Diff</a></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">File Attachments \
</h1>
<ul>
<li><a href="http://git.reviewboard.kde.org/media/uploaded/files/2013/09/23/snapshot1.png">icons \
in panel</a></li>
<li><a href="http://git.reviewboard.kde.org/media/uploaded/files/2013/09/23/snapshot2.png">icons \
as launcher</a></li>
<li><a href="http://git.reviewboard.kde.org/media/uploaded/files/2013/09/23/snapshot3.png">files</a></li>
<li><a href="http://git.reviewboard.kde.org/media/uploaded/files/2013/09/23/snapshot4.png">folders</a></li>
</ul>
</td>
</tr>
</table>
</div>
</body>
</html>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic