]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiCitation.h
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiCitation.h
index 5a72e02dcf2e7c03e8278f382cbf8ac3306141e5..428ea50a97de293a584d5e3f13dd4eafade126d2 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "insets/InsetCommandParams.h"
 
+#include "BiblioInfo.h"
 #include "Citation.h"
 
 #include <QAbstractListModel>
@@ -46,10 +47,10 @@ public:
        GuiCitation(GuiView & lv);
 
 private Q_SLOTS:
-       void on_okPB_clicked();
-       void on_cancelPB_clicked();
-       void on_restorePB_clicked();
-       void on_applyPB_clicked();
+       void on_buttonBox_accepted();
+       void on_buttonBox_rejected();
+       void on_buttonBox_clicked(QAbstractButton *);
+       void on_literalCB_clicked();
        void filterPressed();
        void filterChanged(const QString & text);
        void on_fieldsCO_currentIndexChanged(int index);
@@ -77,7 +78,7 @@ private:
        void clearParams();
        void dispatchParams();
        bool isBufferDependent() const { return true; }
-       void saveSession() const;
+       void saveSession(QSettings & settings) const;
        void restoreSession();
        /** Disconnect from the inset when the Apply button is pressed.
         *  Allows easy insertion of multiple citations.
@@ -140,8 +141,9 @@ private:
                bool reset = false //< whether to reset and search all keys
                );
 
-       /// List of example cite strings
-       QStringList citationStyles(BiblioInfo const & bi, size_t max_size);
+       /// List of example cite strings and their correlating lyx name
+       BiblioInfo::CiteStringMap citationStyles(BiblioInfo const & bi,
+                                                               size_t max_size);
 
        /// Set the Params variable for the Controller.
        void applyParams(int const choice, bool const full, bool const force,
@@ -179,7 +181,7 @@ private:
        QAction * instant_;
 
        /// last used citation style
-       int style_;
+       QString style_;
        ///
        GuiSelectionManager * selectionManager;
        /// available keys.