GuiListings.h
GuiLog.h
GuiMathMatrix.h
- GuiNomencl.h
+ GuiNomenclature.h
GuiNote.h
GuiPainter.h
GuiParagraph.h
GuiListings.cpp
GuiLog.cpp
GuiMathMatrix.cpp
- GuiNomencl.cpp
+ GuiNomenclature.cpp
GuiNote.cpp
GuiPainter.cpp
GuiParagraph.cpp
+++ /dev/null
-/**
- * \file GuiNomencl.cpp
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- * \author O. U. Baran
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#include <config.h>
-
-#include "GuiNomencl.h"
-
-#include "qt_helpers.h"
-
-#include "insets/InsetNomencl.h"
-
-using namespace std;
-
-namespace lyx {
-namespace frontend {
-
-GuiNomenclature::GuiNomenclature(QWidget * parent) : InsetParamsWidget(parent)
-{
- setupUi(this);
- connect(symbolED, SIGNAL(textChanged(QString)),
- this, SIGNAL(changed()));
- connect(descriptionTE, SIGNAL(textChanged()),
- this, SIGNAL(changed()));
-
- setFocusProxy(descriptionTE);
-}
-
-
-void GuiNomenclature::paramsToDialog(Inset const * inset)
-{
- InsetNomencl const * nomencl = static_cast<InsetNomencl const *>(inset);
- InsetCommandParams const & params = nomencl->params();
-
- prefixED->setText(toqstr(params["prefix"]));
- symbolED->setText(toqstr(params["symbol"]));
- QString description = toqstr(params["description"]);
- description.replace("\\\\","\n");
- descriptionTE->setPlainText(description);
- descriptionTE->setFocus();
-}
-
-
-docstring GuiNomenclature::dialogToParams() const
-{
- InsetCommandParams params(insetCode());
- params["prefix"] = qstring_to_ucs4(prefixED->text());
- params["symbol"] = qstring_to_ucs4(symbolED->text());
- QString description = descriptionTE->toPlainText();
- description.replace('\n',"\\\\");
- params["description"] = qstring_to_ucs4(description);
- return from_ascii(InsetNomencl::params2string("nomenclature", params));
-}
-
-
-bool GuiNomenclature::checkWidgets() const
-{
- if (!InsetParamsWidget::checkWidgets())
- return false;
- QString const description = descriptionTE->toPlainText();
- return !symbolED->text().isEmpty() && !description.isEmpty();
-}
-
-} // namespace frontend
-} // namespace lyx
-
-#include "moc_GuiNomencl.cpp"
+++ /dev/null
-// -*- C++ -*-
-/**
- * \file GuiNomenclature.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- * \author Kalle Dalheimer
- * \author O. U. Baran
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef GUINOMENCLATURE_H
-#define GUINOMENCLATURE_H
-
-#include "ui_NomenclUi.h"
-
-#include "InsetParamsWidget.h"
-
-namespace lyx {
-namespace frontend {
-
-class GuiNomenclature : public InsetParamsWidget, public Ui::NomenclUi
-{
- Q_OBJECT
-
-public:
- GuiNomenclature(QWidget * parent = 0);
-
-private:
- /// \name InsetParamsWidget inherited methods
- //@{
- InsetCode insetCode() const { return NOMENCL_CODE; }
- FuncCode creationCode() const { return LFUN_INSET_INSERT; }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets() const;
- //@}
-};
-
-} // namespace frontend
-} // namespace lyx
-
-#endif // GUINOMENCLATURE_H
--- /dev/null
+/**
+ * \file GuiNomencl.cpp
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author John Levon
+ * \author O. U. Baran
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
+#include <config.h>
+
+#include "GuiNomencl.h"
+
+#include "qt_helpers.h"
+
+#include "insets/InsetNomencl.h"
+
+using namespace std;
+
+namespace lyx {
+namespace frontend {
+
+GuiNomenclature::GuiNomenclature(QWidget * parent) : InsetParamsWidget(parent)
+{
+ setupUi(this);
+ connect(symbolED, SIGNAL(textChanged(QString)),
+ this, SIGNAL(changed()));
+ connect(descriptionTE, SIGNAL(textChanged()),
+ this, SIGNAL(changed()));
+
+ setFocusProxy(descriptionTE);
+}
+
+
+void GuiNomenclature::paramsToDialog(Inset const * inset)
+{
+ InsetNomencl const * nomencl = static_cast<InsetNomencl const *>(inset);
+ InsetCommandParams const & params = nomencl->params();
+
+ prefixED->setText(toqstr(params["prefix"]));
+ symbolED->setText(toqstr(params["symbol"]));
+ QString description = toqstr(params["description"]);
+ description.replace("\\\\","\n");
+ descriptionTE->setPlainText(description);
+ descriptionTE->setFocus();
+}
+
+
+docstring GuiNomenclature::dialogToParams() const
+{
+ InsetCommandParams params(insetCode());
+ params["prefix"] = qstring_to_ucs4(prefixED->text());
+ params["symbol"] = qstring_to_ucs4(symbolED->text());
+ QString description = descriptionTE->toPlainText();
+ description.replace('\n',"\\\\");
+ params["description"] = qstring_to_ucs4(description);
+ return from_ascii(InsetNomencl::params2string("nomenclature", params));
+}
+
+
+bool GuiNomenclature::checkWidgets() const
+{
+ if (!InsetParamsWidget::checkWidgets())
+ return false;
+ QString const description = descriptionTE->toPlainText();
+ return !symbolED->text().isEmpty() && !description.isEmpty();
+}
+
+} // namespace frontend
+} // namespace lyx
+
+#include "moc_GuiNomencl.cpp"
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file GuiNomenclature.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author John Levon
+ * \author Kalle Dalheimer
+ * \author O. U. Baran
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
+#ifndef GUINOMENCLATURE_H
+#define GUINOMENCLATURE_H
+
+#include "ui_NomenclUi.h"
+
+#include "InsetParamsWidget.h"
+
+namespace lyx {
+namespace frontend {
+
+class GuiNomenclature : public InsetParamsWidget, public Ui::NomenclUi
+{
+ Q_OBJECT
+
+public:
+ GuiNomenclature(QWidget * parent = 0);
+
+private:
+ /// \name InsetParamsWidget inherited methods
+ //@{
+ InsetCode insetCode() const { return NOMENCL_CODE; }
+ FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+ void paramsToDialog(Inset const *);
+ docstring dialogToParams() const;
+ bool checkWidgets() const;
+ //@}
+};
+
+} // namespace frontend
+} // namespace lyx
+
+#endif // GUINOMENCLATURE_H
GuiListings.cpp \
GuiLog.cpp \
GuiMathMatrix.cpp \
- GuiNomencl.cpp \
+ GuiNomenclature.cpp \
GuiNote.cpp \
GuiPainter.cpp \
GuiParagraph.cpp \
GuiListings.h \
GuiLog.h \
GuiMathMatrix.h \
- GuiNomencl.h \
+ GuiNomenclature.h \
GuiNote.h \
GuiParagraph.h \
GuiPhantom.h \