Review Request: custom toolbox support

Marco Martin notmart at gmail.com
Sat Oct 17 14:21:29 CEST 2009



> On 2009-10-16 17:29:58, Aaron Seigo wrote:
> > the internal toolbox should just move to the properties system as well, and then we don't need two pointers, two code paths, etc.
> > 
> > the only trick will be hooking up "addToolBoxAction" properly. options are: we export a basic ToolBox class (which probably makes sense), do something like use invokeMethod (ugh!) or keep the multiple code paths.
> > 
> > i don't like how this new method makes some things (e.g. addToolBoxAction) not work as expected .. so .. maybe it's time for a really simple ToolBox QGraphicsWidget? :)
> > 
> > perhaps a setToolBoxWidget(Plasma::ToolBox *) and a corresponding toolBoxWidget()? toolBoxItem would then be deprecated and return the widget (which would get demoted to a QGraphicsItem * in the process, but whatever :)
> > 
> > thoughts?
> 
> Marco Martin wrote:
>     yeah, can try to convert it.
>     i remember i tried to convert the current toolbox to qgw once upon a time and it was really a pain to the point that i think it's easier to scrap it and start from scratch, thing that should probably be done anyways, i'm only concerned for the quantity of time needed right now.
>     we could proceed as following:
>     -export a Plasma::Toolbox, still don't use it for the internal one
>     -keep the two code paths
>     -then rewrite the existing ones in a second time (i would like to do so also after a simple overview gets in, because i don't really want to port that "toolbar mode" thing :D)
> 
> Aaron Seigo wrote:
>     It already is a QGraphicsWidget in trunk/ :)

extralol, i did totally missed this change, this makes things way easier :p


- Marco


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/1861/#review2669
-----------------------------------------------------------


On 2009-10-16 14:01:57, Marco Martin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/1861/
> -----------------------------------------------------------
> 
> (Updated 2009-10-16 14:01:57)
> 
> 
> Review request for Plasma.
> 
> 
> Summary
> -------
> 
> this adds a setToolboxItem function.
> it makes possible for the openToolBox() function to work if the containment totally manages the toolbox by itself.
> it uses a "showing" property that custom toolboxes should implement to show/hide the toolbox
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdelibs/plasma/private/containment_p.h 1036057 
>   /trunk/KDE/kdelibs/plasma/containment.h 1036057 
>   /trunk/KDE/kdelibs/plasma/containment.cpp 1036057 
> 
> Diff: http://reviewboard.kde.org/r/1861/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Marco
> 
>



More information about the Plasma-devel mailing list