]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCitation.h
ref dialog, more updates (BC stuff should now be OK along with the coming
[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         void updateBrowser(QListBox *, std::vector<string> const &) const;
52         ///
53         void setBibButtons(State) const;
54         ///
55         void setCiteButtons(State) const;
56
57         ///
58         std::vector<string> citekeys;
59         ///
60         std::vector<string> bibkeys;
61 };
62
63 #endif // QCITATION_H