// Save toolbars configuration
if (isFullScreen()) {
d.toolbars_->toggleFullScreen(!isFullScreen());
- updateToolbars();
+ updateDialogs();
}
// Make sure the timer time out will not trigger a statusbar update.
d.toolbars_->update(math, table, review, mathmacrotemplate);
} else
d.toolbars_->update(false, false, false, false);
-
- // update read-only status of open dialogs.
- checkStatus();
}
d.current_work_area_->startBlinkingCursor();
// Take this occasion to update the other GUI elements.
- updateLayoutList();
- updateToolbars();
- updateStatusBar();
+ updateDialogs();
}
for(; it != end; ++it) {
Dialog * dialog = it->second.get();
- if (!dialog->isVisibleView())
- continue;
- if (dialog->isBufferDependent()) {
- if (buffer())
- dialog->updateView();
- else
- dialog->enableView(false);
- } else {
- // A bit clunky, but the dialog will request
- // that the kernel provides it with the necessary
- // data.
- dialog->updateDialog();
- }
+ if (dialog && dialog->isVisibleView())
+ dialog->checkStatus();
}
updateToolbars();
updateLayoutList();
}
-void GuiView::checkStatus()
-{
- map<string, DialogPtr>::const_iterator it = d.dialogs_.begin();
- map<string, DialogPtr>::const_iterator end = d.dialogs_.end();
-
- for(; it != end; ++it) {
- Dialog * const dialog = it->second.get();
- if (dialog && dialog->isVisibleView())
- dialog->checkStatus();
- }
-}
-
-
-
// will be replaced by a proper factory...
Dialog * createGuiAbout(GuiView & lv);
Dialog * createGuiBibitem(GuiView & lv);
///
void resetDialogs();
- /** Check the status of all visible dialogs and disable or reenable
+ /// Hide all visible dialogs
+ void hideAll() const;
+
+ /// Update all visible dialogs.
+ /**
+ * Check the status of all visible dialogs and disable or reenable
* them as appropriate.
*
* Disabling is needed for example when a dialog is open and the
* cursor moves to a position where the corresponding inset is not
* allowed.
*/
- void checkStatus();
-
- /// Hide all visible dialogs
- void hideAll() const;
-
- // Update all visible dialogs.
void updateDialogs();
/** \param name == "bibtex", "citation" etc; an identifier used to
// Skip these when selecting
if (cmd.action != LFUN_MOUSE_MOTION) {
completer_->updateVisibility(false, false);
- lyx_view_->updateLayoutList();
- lyx_view_->updateToolbars();
+ lyx_view_->updateDialogs();
}
// GUI tweaks except with mouse motion with no button pressed.