how to make a registry of scale filters
Casper Boemann
cbr at boemann.dk
Sat Jul 2 01:00:58 CEST 2005
On Saturday 02 July 2005 00:54, Boudewijn Rempt wrote:
> On Fri, 1 Jul 2005, Casper Boemann wrote:
> > I want to make a registry of scaling filters
> >
> > Now the list is fixed at compiletime, but it would still be nice to have
> > a registry of sorts which could provide a list of names.
> >
> > The list of names would be used for the comboboxes
> >
> > any hints and ideas on how to do this?
>
> Okay... It's not hard, it's just that you need to decide whether all your
> current filters will fit in one plugin, or whether you want a plugin
> per filter. Since these are not KisView dependent, model them on
> the colormodels. A singleton registry based on Cyrille's generic
> registry class, templated to KisScalingFilter; identified by a
> KisID -- with an id for internal use and a name for comboboxes. That's
> it, basically.
thanks, though I don't intend to make it a plugin.
--
best regards / venlig hilsen
Casper Boemann
More information about the kimageshop
mailing list