]> git.lyx.org Git - features.git/commitdiff
GuiNomencl.xxx: Rename to be in line with class name.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 27 Oct 2010 20:05:38 +0000 (20:05 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 27 Oct 2010 20:05:38 +0000 (20:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35870 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/scons_manifest.py
src/frontends/qt4/GuiNomencl.cpp [deleted file]
src/frontends/qt4/GuiNomencl.h [deleted file]
src/frontends/qt4/GuiNomenclature.cpp [new file with mode: 0644]
src/frontends/qt4/GuiNomenclature.h [new file with mode: 0644]
src/frontends/qt4/Makefile.am

index 4aff506d178dc604eb086af8abcaf357926c9c4b..e3868ef828533abddd97aec87dddd117514dfa77 100644 (file)
@@ -750,7 +750,7 @@ src_frontends_qt4_header_files = Split('''
     GuiListings.h
     GuiLog.h
     GuiMathMatrix.h
-    GuiNomencl.h
+    GuiNomenclature.h
     GuiNote.h
     GuiPainter.h
     GuiParagraph.h
@@ -854,7 +854,7 @@ src_frontends_qt4_files = Split('''
     GuiListings.cpp
     GuiLog.cpp
     GuiMathMatrix.cpp
-    GuiNomencl.cpp
+    GuiNomenclature.cpp
     GuiNote.cpp
     GuiPainter.cpp
     GuiParagraph.cpp
diff --git a/src/frontends/qt4/GuiNomencl.cpp b/src/frontends/qt4/GuiNomencl.cpp
deleted file mode 100644 (file)
index 8267aab..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-/**
- * \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"
diff --git a/src/frontends/qt4/GuiNomencl.h b/src/frontends/qt4/GuiNomencl.h
deleted file mode 100644 (file)
index 502f8de..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-// -*- 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
diff --git a/src/frontends/qt4/GuiNomenclature.cpp b/src/frontends/qt4/GuiNomenclature.cpp
new file mode 100644 (file)
index 0000000..8267aab
--- /dev/null
@@ -0,0 +1,74 @@
+/**
+ * \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"
diff --git a/src/frontends/qt4/GuiNomenclature.h b/src/frontends/qt4/GuiNomenclature.h
new file mode 100644 (file)
index 0000000..502f8de
--- /dev/null
@@ -0,0 +1,45 @@
+// -*- 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
index 03d842390930a6fc1c523820d0458bb09cc94ed9..86929431d0e8a6e513e348ae9de2cd33100b885b 100644 (file)
@@ -100,7 +100,7 @@ SOURCEFILES = \
        GuiListings.cpp \
        GuiLog.cpp \
        GuiMathMatrix.cpp \
-       GuiNomencl.cpp \
+       GuiNomenclature.cpp \
        GuiNote.cpp \
        GuiPainter.cpp \
        GuiParagraph.cpp \
@@ -207,7 +207,7 @@ MOCHEADER = \
        GuiListings.h \
        GuiLog.h \
        GuiMathMatrix.h \
-       GuiNomencl.h \
+       GuiNomenclature.h \
        GuiNote.h \
        GuiParagraph.h \
        GuiPhantom.h \