On Fri, May 23, 2014 at 6:01 PM, Richard Heck <rgh...@lyx.org> wrote:
> On 05/23/2014 05:49 PM, Scott Kostyshak wrote:
>>>
>>> Which it should as a result of
>>> resetting the
>>> cursor since e.g. the TOC needs updating to reflect the new position.
>>> Indeed, not all dialogs
>>> need updating, but we don't have such fine-grained information.
>>
>> Is there an example of a dialog that needs to be updated even when the
>> cursor does not change paragraphs? Even if not, there might be one in
>> the future though. Would a virtual in the Dialog class make sense? The
>> virtual could return an enum that says under which circumstance
>> updateView should be called.
>
>
> The TOC is an example. We reset which is the "active" item.
>
> It wouldn't be hard to add members to DispatchResult that would tell us what
> sort of thing
> has happened. The main issue is how to get the information to the dialogs
> about whether the
> paragraph has changed, or whatever. If you look at updateDialogs, it just
> cycles through the
> dialogs and updates them all. So it needs that information, and we have to
> figure out how to
> get it to it.

OK, thanks for the info, Richard.

Scott

Reply via email to