]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiNomencl.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiNomencl.cpp
index 02b06ec0bed05c67b6e13f06b8897546017346ef..b34ba798cd142146d63ecbfb5cdeb25f98a23cc3 100644 (file)
 
 #include "GuiNomencl.h"
 
-#include "debug.h"
 #include "qt_helpers.h"
 
+#include "support/debug.h"
+
 #include <QLabel>
 #include <QLineEdit>
 #include <QPushButton>
 #include <QTextEdit>
 #include <QWhatsThis>
-#include <QCloseEvent>
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
 
-GuiNomenclature::GuiNomenclature(LyXView & lv)
-       : GuiCommand(lv, "nomenclature")
+GuiNomenclature::GuiNomenclature(GuiView & lv)
+       : GuiCommand(lv, "nomenclature", qt_("Nomenclature"))
 {
        setupUi(this);
 
@@ -63,13 +63,6 @@ void GuiNomenclature::reject()
 }
 
 
-void GuiNomenclature::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiNomenclature::updateContents()
 {
        prefixED->setText(toqstr(params_["prefix"]));
@@ -99,7 +92,7 @@ bool GuiNomenclature::isValid()
 }
 
 
-Dialog * createGuiNomenclature(LyXView & lv)
+Dialog * createGuiNomenclature(GuiView & lv)
 {
        return new GuiNomenclature(lv);
 }