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 void closeEvent (QCloseEvent * e);
54 void keyPressEvent (QKeyEvent * event);
55 void findText(QString const & text);
59 void on_okPB_clicked();
60 void on_cancelPB_clicked();
61 void on_restorePB_clicked();
62 void on_applyPB_clicked();
63 void on_addPB_clicked();
64 void on_deletePB_clicked();
65 void on_upPB_clicked();
66 void on_downPB_clicked();
67 void on_findLE_textChanged(const QString & text);
68 void on_caseCB_stateChanged(int);
69 void on_regexCB_stateChanged(int);
70 void on_selectedLV_clicked(const QModelIndex &);
71 void selectedChanged(const QModelIndex &, const QModelIndex &);
72 void on_availableLV_clicked(const QModelIndex &);
73 void on_availableLV_activated(const QModelIndex &);
74 void on_availableLV_entered(const QModelIndex &);
75 void availableChanged(const QModelIndex &, const QModelIndex &);
76 virtual void changed();
77 /// check whether key is already selected
78 bool isSelected(const QModelIndex &);
80 void updateInfo(const QModelIndex &);
83 /// enable/disable buttons
86 /// fill the styles combo
89 /// set the styles combo
92 /// last used citation style
99 } // namespace frontend
102 #endif // QCITATIOINDIALOG_H