]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCitation.h
Lots and lots of little trivial bits.
[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 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "Qt2Base.h"
21
22 class QListBox;
23 class ControlCitation;
24 class QCitationDialog;
25
26
27 class QCitation : public Qt2CB<ControlCitation, Qt2DB<QCitationDialog> >
28 {
29         friend class QCitationDialog;
30
31 public:
32         ///
33         QCitation();
34
35 private:
36         ///
37         enum State {
38                 ///
39                 ON,
40                 ///
41                 OFF
42         };
43
44         /// Set the Params variable for the Controller.
45         virtual void apply();
46         /// Build the dialog.
47         virtual void build_dialog();
48         /// Hide the dialog.
49         virtual void hide();
50         /// Update dialog before/whilst showing it.
51         virtual void update_contents();
52
53         /// fill the styles combo
54         void fillStyles();
55
56         /// set the styles combo
57         void updateStyle();
58
59         void updateBrowser(QListBox *, std::vector<string> const &) const;
60         ///
61         void setBibButtons(State) const;
62         ///
63         void setCiteButtons(State) const;
64
65         ///
66         std::vector<string> citekeys;
67         ///
68         std::vector<string> bibkeys;
69 };
70
71 #endif // QCITATION_H