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();
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 &);
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_;
};