]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCitation.h
The big renaming. Yowser.
[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         friend class QCitationDialog;
27     
28 public:
29         ///
30         QCitation(ControlCitation &);
31
32 private:
33         ///
34         enum State {
35                 ///
36                 ON,
37                 ///
38                 OFF
39         };
40
41         /// Set the Params variable for the Controller.
42         virtual void apply();
43         /// Build the dialog.
44         virtual void build();
45         /// Hide the dialog.
46         virtual void hide();
47         /// Update dialog before/whilst showing it.
48         virtual void update();
49
50         void updateBrowser(QListBox*, std::vector<string> const &) const;
51         ///
52         void setBibButtons(State) const;
53         ///
54         void setCiteButtons(State) const;
55
56         ///
57         std::vector<string> citekeys;
58         ///
59         std::vector<string> bibkeys;
60 };
61
62 #endif // QCITATION_H