Andre Poenitz wrote:
On Wed, Apr 02, 2008 at 12:25:35PM -0400, Richard Heck wrote:
Andre Poenitz wrote:
I understand that. But all such parameters are bound to a specific Inset
instance, so why is this not
InsetBibFoo::setBibFiles(whatever);
?
Actually, the parameters need not be bound to a specific inset instance
when they are created, and very often they are not. This is one of the
things Georg most strongly insisted upon, and I expect it's really the core
reason that ICP is separated out from the insets the way it is. In the GUI,
for example, instances of InsetCommandParams are used to represent the
state of the parameters *according to the dialog*, not according to the
inset.
Note that the state of the dialog is _also_ duplicated in the individual
GUI elements, so there is no real strong reason to have yet another
copy hanging around.
It simplifies dispatch. And some other stuff.
In any case, this is not an argument for uniform inset parameters but
rather for an inset specific parameter structure...
Of course.
rh