+ if (!enable)
+ // In the opposite case, updateView() will be called anyway.
+ widget_->updateViewNow();
+}
+
+
+void GuiToc::closeEvent(QCloseEvent * /*event*/)
+{
+ is_closing_ = true;
+ static_cast<GuiView *>(parent())->updateToolbars();
+ is_closing_ = false;
+}
+
+
+void GuiToc::doDispatch(Cursor & cur, FuncRequest const & cmd)
+{
+ widget_->doDispatch(cur, cmd);
+}
+
+
+bool GuiToc::getStatus(Cursor & cur, FuncRequest const & cmd,
+ FuncStatus & status) const
+{
+ return widget_->getStatus(cur, cmd, status);