Re: integrating plasma into kdevelop's dashboard

2010-07-28 Thread Aaron J. Seigo
On July 28, 2010, Aleix Pol wrote: > I thought I could use that data engine approach but looks like that all > projects would have to share the same DataEngine instance so I still need > to tell them separately what project do they have to target somehow. what you want is a mapping between a conta

Re: integrating plasma into kdevelop's dashboard

2010-07-28 Thread Aleix Pol
On Wed, Jul 28, 2010 at 5:14 AM, Aaron J. Seigo wrote: > On July 27, 2010, Aleix Pol wrote: > > I've been looking into it and it's fine to use DataEngines. I have the > > exact same problem though. I can create a kdevelop DataEngine with a > > project DataContainer, but this is still created in t

Re: integrating plasma into kdevelop's dashboard

2010-07-27 Thread Aaron J. Seigo
On July 27, 2010, Aleix Pol wrote: > I've been looking into it and it's fine to use DataEngines. I have the > exact same problem though. I can create a kdevelop DataEngine with a > project DataContainer, but this is still created in the PluginLoader and I > can't have a reference to the Project. h

Re: integrating plasma into kdevelop's dashboard

2010-07-27 Thread Ryan Rix
On Tue 27 July 2010 18:13:07 Aleix Pol wrote: > On Wed, Jul 28, 2010 at 1:14 AM, Aaron J. Seigo wrote: > > On July 27, 2010, Aleix Pol wrote: > > > But I need to know it before, to be able to create the items > > > accordingly. > > > > it sounds like you are implementing something "incorrectly" h

Re: integrating plasma into kdevelop's dashboard

2010-07-27 Thread Aleix Pol
On Wed, Jul 28, 2010 at 1:14 AM, Aaron J. Seigo wrote: > On July 27, 2010, Aleix Pol wrote: > > But I need to know it before, to be able to create the items accordingly. > > it sounds like you are implementing something "incorrectly" here. > > the only thing PluginLoader should need to do is retu

Re: integrating plasma into kdevelop's dashboard

2010-07-27 Thread Aaron J. Seigo
On July 27, 2010, Aleix Pol wrote: > But I need to know it before, to be able to create the items accordingly. it sounds like you are implementing something "incorrectly" here. the only thing PluginLoader should need to do is return the right kind of object. from that point forward, it's up to t

Re: integrating plasma into kdevelop's dashboard

2010-07-27 Thread Aleix Pol
On Wed, Jul 28, 2010 at 12:14 AM, Marco Martin wrote: > On Wednesday 28 July 2010, Aleix Pol wrote: > > > > > > > > new Applet instance > in > > > > > > internalLoadApplet reimplementation? > > > > > > > > > you mean > connecting to > > > containment::appletAdded()? or the other way around? > > >

Re: integrating plasma into kdevelop's dashboard

2010-07-27 Thread Marco Martin
On Wednesday 28 July 2010, Aleix Pol wrote: > > > > > new Applet instance in > > > > internalLoadApplet reimplementation? > > > > > > you mean connecting to > > containment::appletAdded()? or the other way around? > > I mean knowing from the pluginloader what container is going to receive the

Re: integrating plasma into kdevelop's dashboard

2010-07-27 Thread Aleix Pol
On Tue, Jul 27, 2010 at 11:52 PM, Marco Martin wrote: > On Tuesday 27 July 2010, Aleix Pol wrote: > > > > > Here I guess that the > problem would be that when restoring I wouldn't > > > > get that argument and > I would be lost again. > > > > > > yes. personally, i'd suggest you provide a > built

Re: integrating plasma into kdevelop's dashboard

2010-07-27 Thread Marco Martin
On Tuesday 27 July 2010, Aleix Pol wrote: > > > Here I guess that the problem would be that when restoring I wouldn't > > > get that argument and I would be lost again. > > > > yes. personally, i'd suggest you provide a built-in dataengine that the > > applets can connect to. set the project id i

Re: integrating plasma into kdevelop's dashboard

2010-07-27 Thread Aleix Pol
On Tue, Jul 27, 2010 at 10:51 PM, Aaron J. Seigo wrote: > On July 27, 2010, Aleix Pol wrote: > > On Tue, Jul 27, 2010 at 10:06 PM, Aaron J. Seigo wrote: > > > On July 27, 2010, Aleix Pol wrote: > > > > For the moment I'm implementing it passing the project identifier as > > > > the first argumen

Re: integrating plasma into kdevelop's dashboard

2010-07-27 Thread Aaron J. Seigo
On July 27, 2010, Aleix Pol wrote: > On Tue, Jul 27, 2010 at 10:06 PM, Aaron J. Seigo wrote: > > On July 27, 2010, Aleix Pol wrote: > > > For the moment I'm implementing it passing the project identifier as > > > the first argument when loading hte plasmoid. That works just fine for > > > my plugi

Re: integrating plasma into kdevelop's dashboard

2010-07-27 Thread Aleix Pol
On Tue, Jul 27, 2010 at 10:06 PM, Aaron J. Seigo wrote: > On July 27, 2010, Aleix Pol wrote: > > For the moment I'm implementing it passing the project identifier as the > > first argument when loading hte plasmoid. That works just fine for my > > plugins but I can't filter that to the rest of pl

Re: integrating plasma into kdevelop's dashboard

2010-07-27 Thread Aaron J. Seigo
On July 27, 2010, Aleix Pol wrote: > For the moment I'm implementing it passing the project identifier as the > first argument when loading hte plasmoid. That works just fine for my > plugins but I can't filter that to the rest of plugins. It would be better > if I could receive ::loadApplet myself