]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiCitation.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiCitation.h
index 9d392e5086f27b2c5ef6200e3a4b74023c4dc485..f8029ece78554dbd69a5b640cdb16c90636eb87e 100644 (file)
@@ -20,7 +20,6 @@
 #include "ui_CitationUi.h"
 #include "support/docstring.h"
 #include "BiblioInfo.h"
-#include "ControlCommand.h"
 
 #include <QKeyEvent>
 #include <QStringList>
@@ -35,24 +34,18 @@ class GuiCitation : public GuiCommand, public Ui::CitationUi
 
 public:
        ///
-       GuiCitation(LyXView & lv);
+       GuiCitation(GuiView & lv);
 
        ///
        void applyView();
-       /// Hide the dialog from sight
-       void hideView();
-       /// Redraw the dialog (e.g. if the colors have been remapped).
-       void redrawView() {}
-       /// Create the dialog if necessary, update it and display it.
-       void showView();
-       /// \return true if the dialog is visible.
-       bool isVisibleView() const;
 
 public Q_SLOTS:
        /// Update the display of the dialog whilst it is still visible.
        void updateView();
 
 private:
+       ///
+       void showEvent(QShowEvent * e);
        ///
        void closeEvent(QCloseEvent * e);
        /// prepares a call to GuiCitation::searchKeys when we
@@ -72,6 +65,7 @@ private Q_SLOTS:
        void on_findLE_textChanged(const QString & text);
        void on_fieldsCO_currentIndexChanged(int index);
        void on_entriesCO_currentIndexChanged(int index);
+       void on_citationStyleCO_currentIndexChanged(int index);
        void on_caseCB_stateChanged(int);
        void on_regexCB_stateChanged(int);
        void changed();
@@ -91,6 +85,8 @@ private:
        void fillEntries();
        /// set the styles combo
        void updateStyle();
+       /// set the formatting widgets
+       void updateFormatting(biblio::CiteStyle currentStyle);
        /// last used citation style
        int style_;