]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCitation.h
Martin's changes to the Note inset.
[lyx.git] / src / frontends / qt2 / QCitation.h
1 // -*- C++ -*-
2 /**
3  * \file QCitation.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  * \author Kalle Dalheimer
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #ifndef QCITATION_H
14 #define QCITATION_H
15
16
17 #include "QDialogView.h"
18
19
20 class QListBox;
21 class ControlCitation;
22 class QCitationDialog;
23
24
25 class QCitation : public QController<ControlCitation, QView<QCitationDialog> >
26 {
27 public:
28         friend class QCitationDialog;
29         ///
30         QCitation(Dialog &);
31 private:
32
33         /// Set the Params variable for the Controller.
34         virtual void apply();
35         /// Build the dialog.
36         virtual void build_dialog();
37         /// Hide the dialog.
38         virtual void hide();
39         /// Update dialog before/whilst showing it.
40         virtual void update_contents();
41
42         /// fill the styles combo
43         void fillStyles();
44
45         /// set the styles combo
46         void updateStyle();
47
48         void updateBrowser(QListBox *, std::vector<string> const &) const;
49
50         /// selected keys
51         std::vector<string> citekeys;
52         /// available bib keys
53         std::vector<string> bibkeys;
54 };
55
56 #endif // QCITATION_H