[OT] plugins and QDockWidget

Alexander Dymo dymo at ukrpost.ua
Sat Mar 24 22:13:54 UTC 2007


On Saturday 24 March 2007 23:44, kitts wrote:
> Going by what i have seen as a kdev3 user, each plugin has at most one
> toolview. 
Well, not really. Debugger plugin has 5 or more actually.
KDev3 plugin could add as many as it wanted. The problem is that 
user could not add more.
For example, konsole plugin added one konsole toolview. But it was not
possible for application or user to add one more konsole toolview.

> Something like designer would require more than one toolview. In 
> kdev4, thanks to the factory approach, there can be more than one toolview
> for a plugin but as i understand, 
I'd say not only "more than one toolview", but also 
"more than one same toolview"

> the creation of the second toolview is 
> user invoked and not a decision made by the plugin itself. 
Yes.

> Furthermore it is assumed that the toolview would be similar each time 
created. Taking the designer example again, which toolview is to be created?
When you add a factory, you add a "type of toolview".
So when one given factory is used, you end up creating similar toolviews
(e.g. konsoles).

If the plugin has another toolview, it needs to add another factory.

> > PS: currently UiController in KDevelop does not expose hiding/showing the
> > toolviews for plugins. But that's easy to implement.
> A good addition? :-)
Yep :)




More information about the KDevelop-devel mailing list