]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBibtex.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiBibtex.h
index 656741eed08f3f71016a0433f2e770bbcc087b91..9bac17bc450e00004a91fdeba778cb2d0933c99f 100644 (file)
@@ -18,8 +18,6 @@
 #include "ui_BibtexUi.h"
 #include "ui_BibtexAddUi.h"
 
-#include "ControlCommand.h"
-
 #include "support/docstring.h"
 
 #include <vector>
@@ -41,12 +39,12 @@ public:
 };
 
 
-class GuiBibtex : public GuiDialog, public Ui::BibtexUi, public ControlCommand
+class GuiBibtex : public GuiCommand, public Ui::BibtexUi
 {
        Q_OBJECT
 
 public:
-       GuiBibtex(LyXView & lv);
+       GuiBibtex(GuiView & lv);
 
 private Q_SLOTS:
        void change_adaptor();
@@ -55,22 +53,19 @@ private Q_SLOTS:
        void addPressed();
        void addDatabase();
        void deletePressed();
+       void upPressed();
+       void downPressed();
        void databaseChanged();
        void availableChanged();
        void bibEDChanged();
 
 private:
-       void closeEvent(QCloseEvent * e);
-
-private:
-       /// parent controller
-       Controller & controller() { return *this; }
        ///
-       virtual bool isValid();
+       bool isValid();
        /// Apply changes
-       virtual void applyView();
+       void applyView();
        /// update
-       virtual void updateContents();
+       void updateContents();
 
        /// Browse for a .bib file
        docstring const browseBib(docstring const & in_name) const;