<br><br><div><span class="gmail_quote">On 7/16/07, <b class="gmail_sendername">Aaron J. Seigo</b> &lt;<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
On Monday 16 July 2007, Leo Franchi wrote:<br><br>comments/thoughts follow; it&#39;s a pretty big patch so i have a number of<br>comments, hope you don&#39;t mind:<br><br>- sticking to the coding style is appreciated; it&#39;s already messy in a few
<br>places due to the many hands effect =) e.g. there&#39;s no spaces between ()s and<br>the contents, so QString( &quot;text/x-plasmoidservicename&quot; ) should just be<br>QString(&quot;text/x-plasmoidservicename&quot;) .. minor nitpick, really, and i won&#39;t
<br>shoot anyone if there a few extra spaces here and there, but it would be nice<br>to follow things as closely as possible.</blockquote><div><br>sorry&nbsp;about&nbsp;that.&nbsp;i&nbsp;tried&nbsp;to&nbsp;figure&nbsp;out&nbsp;if&nbsp;there&nbsp;was&nbsp;a&nbsp;consistent&nbsp;coding&nbsp;convention&nbsp;(especially&nbsp;for&nbsp;spaces&nbsp;inside&nbsp;parenthesis)&nbsp;but&nbsp;it&nbsp;seemed&nbsp;like&nbsp;it&nbsp;was&nbsp;pretty&nbsp;even&nbsp;between
<br>spaces-between-parens&nbsp;and&nbsp;no&nbsp;spaces.&nbsp;as&nbsp;Amarok&nbsp;code&nbsp;uses&nbsp;spaces,&nbsp;that&nbsp;was&nbsp;my&nbsp;default.&nbsp;anyway,&nbsp;i&nbsp;will fix&nbsp;up&nbsp;these&nbsp;typographical&nbsp;things&nbsp;:)&nbsp;</div><br><br><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
- instead of ThemePath perhaps ThemePrefix?<br><br>- why do you need the list of loaded applets from Corona (loadedApplets())?<br>(not saying it&#39;s not valid, just wondering what the use case is)</blockquote><div><br>this&nbsp;is&nbsp;so&nbsp;there&nbsp;is&nbsp;a&nbsp;way&nbsp;to&nbsp;clear&nbsp;the&nbsp;corona.&nbsp;as&nbsp;applets&nbsp;are&nbsp;started&nbsp;by&nbsp;the&nbsp;user,&nbsp;currently&nbsp;from&nbsp;the&nbsp;controlbox,&nbsp;the&nbsp;contextscene&nbsp;(corona&nbsp;subclass)&nbsp;needs&nbsp;to&nbsp;know&nbsp;what&nbsp;is&nbsp;on
<br>the&nbsp;corona&nbsp;itself&nbsp;so&nbsp;it&nbsp;can&nbsp;a)&nbsp;save&nbsp;the&nbsp;state&nbsp;b)&nbsp;clear&nbsp;it&nbsp;c)&nbsp;set&nbsp;next&nbsp;state.&nbsp;as&nbsp;the&nbsp;user&nbsp;plays&nbsp;a&nbsp;track,&nbsp;for&nbsp;example,&nbsp;the&nbsp;corona&nbsp;should&nbsp;clear&nbsp;the&nbsp;&quot;home&quot;&nbsp;state&nbsp;and&nbsp;display&nbsp;context-<br>relative&nbsp;information.&nbsp;this&nbsp;is&nbsp;all&nbsp;done&nbsp;in&nbsp;the&nbsp;subclassed&nbsp;ContextScene, but as the applet list is in the dptr, it needs access to it. 
</div><br><br><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
<br>i wonder if it doesn&#39;t make sense to just use one setter for all of these. we<br>could easily have a single setter/getter pair in plasma.cpp for a static<br>QString in the Plasma namespace that sets/gets the prefix. this can then be
<br>used whereever we do KTrader lookups, etc..<br><br>so in plasma we&#39;d use Plasma (making Plasma/Applet, Plasma/DataEngine,<br>Plasma_foorc) and in amarok you might use Amarok (making Amarok/Applet and<br>amarok_foorc). the two static strings can be kept (in the Private class) but
<br>having just one method for this would be nice. this would bring the number of<br>calls to set up libplasma for use in other apps from 5 down to 2 (one for the<br>theme prefix and one for the applet prefix). if we use this same approach for
<br>the drag-and-drop mimetype, we could even get rid of one more setter.<br><br>the downside to this approach is that, while simpler to use, it means that<br>it&#39;s an all-or-nothing approach ... it wouldn&#39;t be possible to use
<br>DataEngines for plasma in amarok and vice versa as a side effect of setting<br>up separate applets.<br><br>hm ... for that matter, i&#39;m really not sure why we need to namespace<br>DataEngines at all? they are only requested by applets so the user never sees
<br>them; we just need to be sure to avoid name collissions which should be<br>pretty easy to do. that removes the whole &quot;namespacing applets affects<br>dataengines&quot; issue with the above approach.</blockquote><br>
<blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
we&#39;d probably want to add some convenience methods to Plasma:: as well for<br>the &quot;final&quot; products (applet service type, drag and drop mimetype, etc)<br><br>- in theme.cpp there is this:<br><br>-&nbsp;&nbsp;&nbsp;&nbsp;KConfig config( &quot;plasmarc&quot; );
<br>-&nbsp;&nbsp;&nbsp;&nbsp;KConfigGroup group( &amp;config, &quot;Theme&quot; );<br>+&nbsp;&nbsp;&nbsp;&nbsp;KConfigGroup group = KGlobal::config()-&gt;group( &quot;Theme&quot; );<br><br>this will break krunner which shares the theming with plasma to create a
<br>consistent look, which is really the whole point of desktoptheme. =)<br><br>perhaps this should be re-thought a bit.... if we have the prefix setter, we<br>could put the theme setting in its own group Theme-$Prefix? this would work
<br>for the time being until someone comes up with a good reason for why they<br>need their own svg theme but not applets, or vice versa&nbsp;</blockquote><br>ok, i don&#39;t really know much about krunner so i had no idea of the repercussions of that change :)
<br><br><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
- speaking of Plasma::Theme i don&#39;t know if changing from desktoptheme/ is<br>really necessary. as long as the theme setting can be changed independantly,<br>there&#39;s no reason other theme sets couldn&#39;t be stored in desktoptheme/ as
<br>well, perhaps prefixed if need be with amarok- (or whatever). another setter<br>and qstring member killed!</blockquote><div><br>also&nbsp;a&nbsp;good&nbsp;idea&nbsp;:)<br><br>tomorrow&nbsp;i&#39;ll&nbsp;fix&nbsp;up&nbsp;the&nbsp;patch&nbsp;and&nbsp;look&nbsp;to&nbsp;doing&nbsp;things&nbsp;how&nbsp;you&nbsp;have&nbsp;suggested.
<br><br>leo&nbsp;</div><br><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
--<br>Aaron J. Seigo<br>humru othro a kohnu se<br>GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA&nbsp;&nbsp;EE75 D6B7 2EB1 A7F1 DB43<br><br>Full time KDE developer sponsored by Trolltech (<a href="http://www.trolltech.com">http://www.trolltech.com
</a>)<br><br>_______________________________________________<br>Amarok-devel mailing list<br><a href="mailto:Amarok-devel@kde.org">Amarok-devel@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/amarok-devel">https://mail.kde.org/mailman/listinfo/amarok-devel
</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>______________________________________________________<br>Leo Franchi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:angel666@myrealbox.com">angel666@myrealbox.com</a>
<br>4305 Charlemagne Ct&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:lfranchi@gmail.com">lfranchi@gmail.com</a> <br>Austin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cell: (650) 704 3680<br>TX, USA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;home: (650) 329 0125