virtual void showDialog(std::string const & name,
std::string const & data, Inset * inset = 0) = 0;
- /// This function is called when some dialogs needs to be updated.
+ /// This function is called when some dialogs needs to be reset.
/** \param name == "citation", "bibtex" etc; an identifier used
- to update the contents of a particular dialog with \param data.
+ to reset the contents of a particular dialog with \param data.
See the comments to 'show', above.
*/
virtual void updateDialog(std::string const & name,
}
-void Dialog::updateData(string const & data)
-{
- if (!initialiseParams(data)) {
- LYXERR0("Dialog \"" << fromqstr(name())
- << "\" could not be initialized");
- return;
- }
-
- if (lyxview_->buffer())
- updateView();
- else
- enableView(false);
-}
-
-
void Dialog::showView()
{
// Make sure the dialog controls are correctly enabled/disabled with
/// \param data is a string encoding of the data to be displayed.
/// It is passed to the Controller to be translated into a useable form.
virtual void showData(std::string const & data);
- virtual void updateData(std::string const & data);
//@}
/** Check whether we may apply our data.
Dialog * const dialog = it->second.get();
if (dialog->isVisibleView())
- dialog->updateData(data);
+ dialog->initialiseParams(data);
}
std::string const & data, Inset * inset = 0);
/** \param name == "citation", "bibtex" etc; an identifier used
- to update the contents of a particular dialog with \param data.
+ to reset the contents of a particular dialog with \param data.
See the comments to 'show', above.
*/
void updateDialog(std::string const & name, std::string const & data);