Pavel Sanda wrote:
now we need somehow to allow the user to assign picture to the existing group
and
i'm not sure how to proceed here. i see two possibilities:
1. modify how the context menu works, so we have dynamically created and shown list
of groups for each call of context menu. choosing one group will simply add
the picture to the group and change its settings accordingly.
i have finally chosen the context menus for this.
attaching the current code diffed against trunk.
things i'd like to ask in addition:
1. undo stuff - understand i correctly that calling
view()->cursor().recordUndoFullDocument(); is enough to provide one undo
step?
i see finishUndo, recordUndo are used on some other places, whats their
relation
to recordUndoFullDocument?
2. i have problem with update flags - setting updateFlags = Update::Force |
Update::FitCursor;
is not enough to render properly scrollbar and begining of a document in
case graphics
is resized (it may be bug, see http://bugzilla.lyx.org/show_bug.cgi?id=4829
).
what should i call?
What is triggering the resize? LFUN_GRAPHICS_GROUPS_UNIFY doesn't seem to do.
If the resize happens after a conversion for example, the redraw is scheduled
to happen with a timer; possibly a scrollbar update is missing in GuiWorkArea.
Except these the work is basically finished (ok some older qt designer would be needed again;),
Good news, you can use Qt4.4 apparently.
Abdel.