- if (dialog->isBufferDependent())
- dialog->hideView();
- }
-}
-
-
-void GuiView::updateBufferDependent(bool switched) const
-{
- map<string, DialogPtr>::const_iterator it = d.dialogs_.begin();
- map<string, DialogPtr>::const_iterator end = d.dialogs_.end();
-
- for(; it != end; ++it) {
- Dialog * dialog = it->second.get();
- if (!dialog->isVisibleView())
- continue;
- if (switched && dialog->isBufferDependent()) {
- if (dialog->initialiseParams(""))
- dialog->updateView();
- else
- dialog->hideView();
- } else {
- // A bit clunky, but the dialog will request
- // that the kernel provides it with the necessary
- // data.
- dialog->updateDialog();
- }
- }
-}
-
-
-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();