]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QBibitem.h
Wrap most of the frontend code up inside namespace lyx::frontend.
[lyx.git] / src / frontends / qt2 / QBibitem.h
1 // -*- C++ -*-
2 /**
3  * \file QBibitem.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QBIBITEM_H
13 #define QBIBITEM_H
14
15 #include "QDialogView.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 class ControlCommand;
21 class QBibitemDialog;
22
23 class QBibitem
24         : public QController<ControlCommand, QView<QBibitemDialog> >
25 {
26 public:
27         friend class QBibitemDialog;
28
29         QBibitem(Dialog &);
30 protected:
31         virtual bool isValid();
32 private:
33         /// Apply changes
34         virtual void apply();
35         /// update
36         virtual void update_contents();
37         /// build the dialog
38         virtual void build_dialog();
39 };
40
41 } // namespace frontend
42 } // namespace lyx
43
44 #endif // QBIBITEM_H