Angus Leeming <[EMAIL PROTECTED]> writes:

| Actually, I've been giving a little thought to updating the Paragraph dialog 
| as the user moves around the document.
| 
| If an inset dialog is open, then moving the cursor from one inset to another 
| of the same type emits a signal and the dialog updates it's contents to 
| reflect the new inset.
| 
| It strikes me that we should send the same information to the Paragraph 
| dialog. At the moment, changing paragraphs results in a call to
|       LyXView::updateLayoutChoice()
| which changes the Layout visible in the Toolbar combox. Instead of calling 
| this function, we should emit a new signal enteredParagraph(). The toolbar 
| would connect to this to update the Layout choice. The paragraph
| dialog would connect to it too.

Yes, why not. The signal should be in LyXView... but should be
emmitted from somewhere in the BufferView structure, and controlled by
cursor movement. One problem with it is that suddenly the toolbar
needs to know about "core" details.

-- 
        Lgb

Reply via email to