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
16 #include "ui/QCitationUi.h"
23 class QCitationDialog: public QDialog, public Ui::QCitationUi, public Dialog::View {
27 QCitationDialog(Dialog &, QCitation * form );
29 virtual ~QCitationDialog();
33 /// Hide the dialog from sight
36 /// Redraw the dialog (e.g. if the colors have been remapped).
39 /// Create the dialog if necessary, update it and display it.
42 /// Update the display of the dialog whilst it is still visible.
45 /// \return true if the dialog is visible.
46 bool isVisible() const;
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();
55 void on_deletePB_clicked();
56 void on_upPB_clicked();
57 void on_downPB_clicked();
58 void on_findLE_textChanged(const QString & text);
59 void on_selectedLV_clicked(const QModelIndex &);
60 void on_availableLV_clicked(const QModelIndex &);
61 void on_availableLV_activated(const QModelIndex &);
62 virtual void changed();
63 /// check whether key is already selected
64 bool isSelected(const QModelIndex &);
66 void updateInfo(const QModelIndex &);
69 /// enable/disable buttons
72 /// fill the styles combo
75 /// set the styles combo
78 /// last used citation style
85 } // namespace frontend
88 #endif // QCITATIOINDIALOG_H