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