-
- setUpdatesEnabled(true);
- QDialog::update();
-}
-
-
-void GuiDialog::showData(string const & data)
-{
- if (controller().isBufferDependent() && !controller().isBufferAvailable())
- return;
-
- if (!controller().initialiseParams(data)) {
- lyxerr << "Dialog \"" << name_
- << "\" failed to translate the data "
- "string passed to show()" << std::endl;
- return;
- }
-
- bc().setReadOnly(controller().isBufferReadonly());
- showView();
- // The widgets may not be valid, so refresh the button controller
- bc().refresh();
-}
-
-
-void GuiDialog::updateData(string const & data)
-{
- if (controller().isBufferDependent() && !controller().isBufferAvailable())
- return;
-
- if (!controller().initialiseParams(data)) {
- lyxerr << "Dialog \"" << name_
- << "\" could not be initialized" << std::endl;
- return;
- }
-
- bc().setReadOnly(controller().isBufferReadonly());
- updateView();