]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBibtex.h
QDialogButtonBox for the remaining dialogs.
[lyx.git] / src / frontends / qt4 / GuiBibtex.h
index 1234703183cf5ba033167c74df73b65afa08d4a3..4dbe107fa6233e66841175d9de77ab053f96146e 100644 (file)
 #ifndef GUIBIBTEX_H
 #define GUIBIBTEX_H
 
-#include "GuiCommand.h"
+#include "GuiDialog.h"
 #include "ButtonController.h"
 #include "ui_BibtexUi.h"
 #include "ui_BibtexAddUi.h"
 
+#include "insets/InsetCommandParams.h"
+
 
 namespace lyx {
 namespace frontend {
@@ -29,11 +31,12 @@ public:
        {
                Ui::BibtexAddUi::setupUi(this);
                QDialog::setModal(true);
+               setWindowModality(Qt::WindowModal);
        }
 };
 
 
-class GuiBibtex : public GuiCommand, public Ui::BibtexUi
+class GuiBibtex : public GuiDialog, public Ui::BibtexUi
 {
        Q_OBJECT
 
@@ -41,6 +44,7 @@ public:
        explicit GuiBibtex(GuiView & lv);
 
 private Q_SLOTS:
+       void addBBClicked(QAbstractButton * button);
        void change_adaptor();
        void browsePressed();
        void browseBibPressed();
@@ -52,6 +56,7 @@ private Q_SLOTS:
        void databaseChanged();
        void availableChanged();
        void bibEDChanged();
+       void rescanClicked();
 
 private:
        ///
@@ -76,9 +81,23 @@ private:
        bool usingBibtopic() const;
        /// should we put the bibliography to the TOC?
        bool bibtotoc() const;
+       /// do we use biblatex?
+       bool usingBiblatex() const;
        /// which stylefile do we use?
        QString styleFile() const;
 
+       ///
+       bool initialiseParams(std::string const & data);
+       /// clean-up on hide.
+       void clearParams() { params_.clear(); }
+       /// clean-up on hide.
+       void dispatchParams();
+       ///
+       bool isBufferDependent() const { return true; }
+
+private:
+       ///
+       InsetCommandParams params_;
        ///
        GuiBibtexAddDialog * add_;
        ///