]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCitation.h
ws cleanup
[lyx.git] / src / frontends / qt2 / QCitation.h
1 // -*- C++ -*-
2 /**
3  * \file QCitation.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author Angus Leeming <a.leeming@ic.ac.uk>
8  * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
9  */
10
11 #ifndef QCITATION_H
12 #define QCITATION_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 class QListBox;
19
20 #include "Qt2Base.h"
21
22 class ControlCitation;
23 class QCitationDialog;
24
25 class QCitation : public Qt2CB<ControlCitation, Qt2DB<QCitationDialog> >
26 {
27         friend class QCitationDialog;
28
29 public:
30         ///
31         QCitation(ControlCitation &);
32
33 private:
34         ///
35         enum State {
36                 ///
37                 ON,
38                 ///
39                 OFF
40         };
41
42         /// Set the Params variable for the Controller.
43         virtual void apply();
44         /// Build the dialog.
45         virtual void build_dialog();
46         /// Hide the dialog.
47         virtual void hide();
48         /// Update dialog before/whilst showing it.
49         virtual void update_contents();
50
51         /// fill the styles combo
52         void fillStyles();
53
54         /// set the styles combo
55         void updateStyle();
56
57         void updateBrowser(QListBox *, std::vector<string> const &) const;
58         ///
59         void setBibButtons(State) const;
60         ///
61         void setCiteButtons(State) const;
62
63         ///
64         std::vector<string> citekeys;
65         ///
66         std::vector<string> bibkeys;
67 };
68
69 #endif // QCITATION_H