]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/QCitationDialog.h
Improvements to the citation dialog UI. It is now possible to search particular field...
[lyx.git] / src / frontends / qt4 / QCitationDialog.h
index 17875a7d96ef226eafa1c72e36dfef4c63fc9e0b..04469b9a320c4bab9366115a85ac5ff28b6bcd05 100644 (file)
@@ -54,7 +54,13 @@ public:
 
 protected:
        void closeEvent (QCloseEvent * e);
-       void findText(QString const & text);
+       /// prepares a call to QCitation::searchKeys when we
+       /// are ready to search the BibTeX entries
+       void findText(QString const & text, bool reset = false);
+       /// check whether key is already selected
+       bool isSelected(const QModelIndex &);
+       /// update the display of BibTeX information
+       void updateInfo(QListView const * const);
 
 protected Q_SLOTS:
        void cleanUp();
@@ -67,6 +73,8 @@ protected Q_SLOTS:
        void on_upPB_clicked();
        void on_downPB_clicked();
        void on_findLE_textChanged(const QString & text);
+       void on_fieldsCO_currentIndexChanged(int index);
+       void on_entriesCO_currentIndexChanged(int index);
        void on_caseCB_stateChanged(int);
        void on_regexCB_stateChanged(int);
        void on_selectedLV_clicked(const QModelIndex &);
@@ -75,23 +83,26 @@ protected Q_SLOTS:
        void on_availableLV_doubleClicked(const QModelIndex &);
        void availableChanged(const QModelIndex &, const QModelIndex &);
        virtual void changed();
-       /// check whether key is already selected
-       bool isSelected(const QModelIndex &);
-       /// update infobox
-       void updateInfo(const QModelIndex &);
 
 private:
        /// enable/disable buttons
        void setButtons();
-
        /// fill the styles combo
        void fillStyles();
-
+       /// fill the fields combo
+       void fillFields();
+       /// fill the entries combo
+       void fillEntries();
        /// set the styles combo
        void updateStyle();
-       
+       /// performs a limited update, suitable for internal call
+       void updateDialog();
        /// last used citation style
        int style_;
+       /// which of available and selected is "focused", in the sense
+       /// of which one should be used for updating the info via updateInfo().
+       /// true, obviously, if it is availableLV.
+       bool availableFocused_;
        
        QCitation * form_;
 };