From cd3bb52229945de239fdcb6a97b0d2045a93f366 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 11 Sep 2011 14:16:36 +0000 Subject: [PATCH] Implement GuiNomenclature::initialiseParams(), thus restoring the ability to take the symbol from an explicit or implicit selection. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39653 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiNomenclature.cpp | 10 ++++++++++ src/frontends/qt4/GuiNomenclature.h | 1 + status.20x | 3 +++ 3 files changed, 14 insertions(+) diff --git a/src/frontends/qt4/GuiNomenclature.cpp b/src/frontends/qt4/GuiNomenclature.cpp index 92250a7b27..7415f7f3df 100644 --- a/src/frontends/qt4/GuiNomenclature.cpp +++ b/src/frontends/qt4/GuiNomenclature.cpp @@ -60,6 +60,16 @@ docstring GuiNomenclature::dialogToParams() const } +bool GuiNomenclature::initialiseParams(std::string const & data) +{ + InsetCommandParams p(insetCode()); + if (!InsetCommand::string2params(data, p)) + return false; + symbolED->setText(toqstr(p["symbol"])); + return true; +} + + bool GuiNomenclature::checkWidgets() const { if (!InsetParamsWidget::checkWidgets()) diff --git a/src/frontends/qt4/GuiNomenclature.h b/src/frontends/qt4/GuiNomenclature.h index 502f8de53a..dcdd10fab3 100644 --- a/src/frontends/qt4/GuiNomenclature.h +++ b/src/frontends/qt4/GuiNomenclature.h @@ -36,6 +36,7 @@ private: void paramsToDialog(Inset const *); docstring dialogToParams() const; bool checkWidgets() const; + bool initialiseParams(std::string const &); //@} }; diff --git a/status.20x b/status.20x index 3d84b75021..537f76c062 100644 --- a/status.20x +++ b/status.20x @@ -94,6 +94,9 @@ What's new - Fixed recursive repaint problem (see bugs 7503 and 7173). +- Restore nomenclature dialog's ability to take the symbol from an exlicit + or implicit selection. + * ADVANCED FIND AND REPLACE -- 2.39.5