From kde-panel-devel Mon Jun 29 14:45:25 2009 From: =?ISO-8859-1?Q?Ana_Cec=EDlia_Martins_Barbosa?= Date: Mon, 29 Jun 2009 14:45:25 +0000 To: kde-panel-devel Subject: Re: applet browser window: the widgets Message-Id: X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=124628678302841 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0148604802==" --===============0148604802== Content-Type: multipart/alternative; boundary=0016e64402b49086b7046d7dbdcf --0016e64402b49086b7046d7dbdcf Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit :) i can see the point of that. > however, we already have Plasma::SvgWidget that does exactly what that is. > > recommendation: drop StandardCustomWidget. use Plasma::SvgWidget. Didn't know! My mistake. Or did I know?! there is ManageWidgetsPushButton, which subclass StandardCustomWidget. just > use Plasma::PushButton instead. it can do everything you need and will fit > into the rest of plasma much better. Yeah, I did that cause I wanted the button to have the same svg background as everybody else - so I did this ManageWidgetsPushButton that subclasses StandardCustomWidget and put a KPushButton in there. I tried to make the button transparent, but didn't succeed... =/ Does the Plasma::PushButton uses the svg background or is it just going to look a bit different from everyone else? That's ok! But we actually still don't know where to put this tricky button, right?! AppletsListSearch should just be a Plasma::LineEdit. Should _be_ or should _have_? Cause now AppletsListSearch has a AppletsList and a KLineEdit. Did you see that?! It comes all together: the search box and the list... I'll change the K for a Plasma:: on the KLineEdit then :) FilteringList should probably be a Plasma::TreeView. it takes a model, too > :) Well, it isn't but it has one! It subclasses StandardCustomWidget, to have the svg background, and inside it, it has a Plasma::TreeView, taking the model and everything (pretty useful, btw :). AppletsList (no Widget at the end of that name? :) I don't know why, actually. :P I'll put that :) --0016e64402b49086b7046d7dbdcf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable :)

i can see the point of that.
however, we already have Plasma::SvgWidget that does exactly what that is.<= br>
recommendation: drop StandardCustomWidget. use Plasma::SvgWidget.

Didn't know! My mistake.
Or did I know?!

=
there is ManageWidgetsPushButton, which subclass StandardCustomWidget. just=
use Plasma::PushButton instead. it can do everything you need and will fit<= br> into the rest of plasma much better.

Yeah, I did that = cause I wanted the button to have the same svg background as everybody else= - so I did this ManageWidgetsPushButton that subclasses StandardCustomWidg= et and put a KPushButton in there. I tried to make the button transparent, = but didn't succeed... =3D/
Does the Plasma::PushButton uses the svg background or is it just going to = look a bit different from everyone else? That's ok! But we actually sti= ll don't know where to put this tricky button, right?!

AppletsListSearch should just be a Plasma::LineEdit.

S= hould _be_ or should _have_? Cause now AppletsListSearch has a AppletsList = and a KLineEdit. Did you see that?! It comes all together: the search box a= nd the list...
I'll change the K for a Plasma:: on the KLineEdit then :)

FilteringList should probably be a Plasma::TreeView. it takes a model, too = :)

Well, it isn't but it has one!=A0 It subclasses= StandardCustomWidget, to have the svg background, and inside it, it has a = Plasma::TreeView, taking the model and everything (pretty useful, btw :).
AppletsList (no Widget at the end of that name? :)

I d= on't know why, actually. :P
I'll put that :)


<= /div>
--0016e64402b49086b7046d7dbdcf-- --===============0148604802== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============0148604802==--