Re: [anjuta-devel] Improvements in project manager



Hi Johannes,


Le 30/12/2011 23:18, Johannes Schmid a écrit :
1. Implement everything in the project manager plugin
You could implement the widget in libanjuta and add it to the glade
widgets that we already install. This way you can easily include it in
the builder file using the anjuta catalog. Many git widgets work that
way.

No, that's the drawback of this solution. The implementation of the widget need some knowledge of the project model object, to know what is the name of each project item or the corresponding icon.

If the the code in libanjuta knows by example that there is a name column in the project model. All project manager plugin need to have such column and it becomes part of the API.

It's more flexible if the project manager provide only a widget allowing to choose the target. The widget doesn't have to use a GtkTreeModel at all.


An intermediate solution could be to implement a generic widget with enough setting to accommodate various case. The widget could use callback to get project name and icon by example.


Regards,

Sébastien



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]