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