Alexander Klenin <[email protected]> hat am 16. März 2011 um 11:23 geschrieben:

> 2011/3/16 Mattias Gaertner <[email protected]>:
> >> Anyway, the question was also about managing package dependencies --
> >> TAChart already have, besides default TCanvas back-end,
> >> AggPas, OpenGL and Printer back-ends, and SVG is planned.
> >> Since these back-ends are useful to only a small part of users,
> >> I do not want TAChart to depend on all these packages by default.
> > One solution:
> > Write a package TAChartAggPas, that depends on AggPasLcl and
> > tachartlazaruspkg and has a unit implementing the aggpas backend for
> > TAChart.
>
> I considered that. But it will be one package per dependency -- so +3
> packages right now.
> Is it ok from user interface point of view? 
I think yes. The project requires only one dependency instead of two
(TAChart+AggPas). So this might actually be an advantage.
 
The other possibility is to use conditionals and let the project enable it via
switches. But this is less safe, aka more things can go wrong. For example the
programmer might setup the dependencies in the wrong order and will get
unit-not-found errors, which will not be helpful.

 

> Is there a notion of "package group" in the IDE?
> If not, maybe it is a good idea to create one? 
What should that be?
Packages are shown alphabetically, so if you use the same prefix they are listed
close together.
 
 
Mattias
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to