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
8 * \author Abdelrazak Younes
10 * Full author contact details are available in file CREDITS.
13 #ifndef QCITATIONDIALOG_H
14 #define QCITATIONDIALOG_H
17 #include "ui/CitationUi.h"
19 #include <QCloseEvent>
27 class QCitationDialog: public QDialog, public Ui::QCitationUi, public Dialog::View {
31 QCitationDialog(Dialog &, QCitation * form );
33 virtual ~QCitationDialog();
37 /// Hide the dialog from sight
40 /// Redraw the dialog (e.g. if the colors have been remapped).
43 /// Create the dialog if necessary, update it and display it.
46 /// Update the display of the dialog whilst it is still visible.
49 /// \return true if the dialog is visible.
50 bool isVisible() const;
53 bool eventFilter(QObject *, QEvent *);
56 void closeEvent (QCloseEvent * e);
57 void findText(QString const & text);
61 void on_okPB_clicked();
62 void on_cancelPB_clicked();
63 void on_restorePB_clicked();
64 void on_applyPB_clicked();
65 void on_addPB_clicked();
66 void on_deletePB_clicked();
67 void on_upPB_clicked();
68 void on_downPB_clicked();
69 void on_findLE_textChanged(const QString & text);
70 void on_caseCB_stateChanged(int);
71 void on_regexCB_stateChanged(int);
72 void on_selectedLV_clicked(const QModelIndex &);
73 void selectedChanged(const QModelIndex &, const QModelIndex &);
74 void on_availableLV_clicked(const QModelIndex &);
75 void on_availableLV_doubleClicked(const QModelIndex &);
76 void on_availableLV_entered(const QModelIndex &);
77 void availableChanged(const QModelIndex &, const QModelIndex &);
78 virtual void changed();
79 /// check whether key is already selected
80 bool isSelected(const QModelIndex &);
82 void updateInfo(const QModelIndex &);
85 /// enable/disable buttons
88 /// fill the styles combo
91 /// set the styles combo
94 /// last used citation style
100 } // namespace frontend
103 #endif // QCITATIOINDIALOG_H