]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBibtex.h
Improve wording (#10670)
[lyx.git] / src / frontends / qt4 / GuiBibtex.h
index 656741eed08f3f71016a0433f2e770bbcc087b91..2ffdbe6705622a4db9d1b06b3c63bdadebd6223e 100644 (file)
 #include "ui_BibtexUi.h"
 #include "ui_BibtexAddUi.h"
 
-#include "ControlCommand.h"
+#include "insets/InsetCommandParams.h"
 
-#include "support/docstring.h"
-
-#include <vector>
 
 namespace lyx {
-
-namespace support { class FileFilterList; }
-
 namespace frontend {
 
 class GuiBibtexAddDialog : public QDialog, public Ui::BibtexAddUi
@@ -41,12 +35,12 @@ public:
 };
 
 
-class GuiBibtex : public GuiDialog, public Ui::BibtexUi, public ControlCommand
+class GuiBibtex : public GuiDialog, public Ui::BibtexUi
 {
        Q_OBJECT
 
 public:
-       GuiBibtex(LyXView & lv);
+       explicit GuiBibtex(GuiView & lv);
 
 private Q_SLOTS:
        void change_adaptor();
@@ -55,33 +49,29 @@ private Q_SLOTS:
        void addPressed();
        void addDatabase();
        void deletePressed();
+       void upPressed();
+       void downPressed();
        void databaseChanged();
        void availableChanged();
        void bibEDChanged();
+       void rescanClicked();
 
 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;
-
+       QString browseBib(QString const & in_name) const;
        /// Browse for a .bst file
-       docstring const browseBst(docstring const & in_name) const;
-
+       QString browseBst(QString const & in_name) const;
        /// get the list of bst files
-       void getBibStyles(std::vector<std::string> & data) const;
+       QStringList bibStyles() const;
        /// get the list of bib files
-       void getBibFiles(std::vector<std::string> & data) const;
+       QStringList bibFiles() const;
        /// build filelists of all availabe bib/bst/cls/sty-files. done through
        /// kpsewhich and an external script, saved in *Files.lst
        void rescanBibStyles() const;
@@ -89,9 +79,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?
-       std::string const getStylefile() const;
+       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_;
        ///