> Pavel Sanda <sa...@lyx.org> writes: > > this belongs to those 'another proposals'. you need to fetch the list of > > groups. in case user clicks on some group you need to fetch all parameters > > for > > this group. all this without direct access to buffer, so new lfun machinery > > would be needed around. > > The dialog class gives you access to the buffer. I am not sure what kind > of machinery you want.
i had the feeling that we try to avoid direct touching of kernel from gui, thats why everything in dialogs is passed through lfuns. i wasn't even aware be have direct buffer() inside dialog class and it looks like design flaw. > I see it as simple as (see in InsetGraphics.h) > graphics::getGraphicsGroups(buffer(), list); > > But I may miss something. it will work, but it would be bit schizophrenic how we get info for the dialog fields :) another possibility was to make groups its own object/dialog, but its bit late in this phase; i have been asking these questions when it was in design/implementation. pavel