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
17 #include "ui/QCitationUi.h"
18 #include "ui/QCitationFindUi.h"
19 #include "controllers/biblio.h"
27 class InsetCommandParams;
35 class QCitationDialog: public QDialog, public Ui::QCitationUi, public Dialog::View {
39 QCitationDialog(Dialog &, QCitation * form );
41 //QCitationDialog(QCitation * form);
43 virtual ~QCitationDialog();
47 /// Hide the dialog from sight
50 /// Redraw the dialog (e.g. if the colors have been remapped).
53 /// Create the dialog if necessary, update it and display it.
56 /// Update the display of the dialog whilst it is still visible.
59 /// \return true if the dialog is visible.
60 bool isVisible() const;
64 // void on_selectedLB_currentChanged(Q3ListBoxItem*);
66 void on_okPB_clicked();
67 void on_cancelPB_clicked();
68 void on_restorePB_clicked();
69 void on_applyPB_clicked();
70 void on_addPB_clicked();
72 void on_deletePB_clicked();
73 void on_upPB_clicked();
74 void on_downPB_clicked();
75 void on_findLE_textChanged(const QString & text);
76 void on_advancedSearchPB_clicked();
78 virtual void changed();
82 /// open the find dialog if nothing selected
85 /// fill the styles combo
88 /// set the styles combo
91 /// check if apply has been pressed
95 std::vector<std::string> citekeys;
97 /// selected natbib style
101 QCitationFind * find_;
105 class QCitationFind: public QDialog, public Ui::QCitationFindUi {
109 QCitationFind(QCitation * form, QWidget * parent = 0, Qt::WFlags f = 0);
113 std::vector<std::string> const & foundCitations()
114 { return foundkeys; }
121 void on_availableLB_currentChanged(Q3ListBoxItem *);
122 void on_availableLB_selected(Q3ListBoxItem *);
123 void on_addPB_clicked();
124 virtual void previous();
128 void find(biblio::Direction dir);
131 std::vector<std::string> foundkeys;
136 } // namespace frontend
139 #endif // QCITATIOINDIALOG_H