3 * \file QCitationDialog.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Kalle Dalheimer
9 * Full author contact details are available in file CREDITS.
12 #ifndef QCITATIONDIALOG_H
13 #define QCITATIONDIALOG_H
15 #include "ui/QCitationUi.h"
16 #include "ui/QCitationFindUi.h"
17 #include "controllers/biblio.h"
25 class InsetCommandParams;
33 class QCitationDialog : public QDialog, public Ui::QCitationUi {
37 QCitationDialog(QCitation * form);
41 void update(InsetCommandParams const & params);
42 void apply(InsetCommandParams & params);
44 // virtual bool isValid();
48 // void on_selectedLB_currentChanged(Q3ListBoxItem*);
50 void on_okPB_clicked();
51 void on_cancelPB_clicked();
52 void on_restorePB_clicked();
53 void on_applyPB_clicked();
54 void on_addPB_clicked();
56 void on_deletePB_clicked();
57 void on_upPB_clicked();
58 void on_downPB_clicked();
59 void on_findLE_textChanged(const QString & text);
60 void on_advancedSearchPB_clicked();
62 virtual void changed();
66 /// open the find dialog if nothing selected
69 /// fill the styles combo
72 /// set the styles combo
75 /// check if apply has been pressed
79 std::vector<std::string> citekeys;
81 /// selected natbib style
85 QCitationFind * find_;
89 class QCitationFind: public QDialog, public Ui::QCitationFindUi {
93 QCitationFind(QCitation * form, QWidget * parent = 0, Qt::WFlags f = 0);
97 std::vector<std::string> const & foundCitations()
105 void on_availableLB_currentChanged(Q3ListBoxItem *);
106 void on_availableLB_selected(Q3ListBoxItem *);
107 void on_addPB_clicked();
108 virtual void previous();
112 void find(biblio::Direction dir);
115 std::vector<std::string> foundkeys;
120 } // namespace frontend
123 #endif // QCITATIOINDIALOG_H