]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiBibitem.h
move our stuff off the Q* namespace
[lyx.git] / src / frontends / qt4 / GuiBibitem.h
1 // -*- C++ -*-
2 /**
3  * \file GuiBibitem.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_CONTROLLER_H
13 #define QBIBITEM_CONTROLLER_H
14
15 #include "GuiDialogView.h"
16
17 #include "ui_BibitemUi.h"
18
19 #include <QDialog>
20 #include <QCloseEvent>
21
22
23 namespace lyx {
24 namespace frontend {
25
26 class GuiBibitem;
27
28 class GuiBibitemDialog : public QDialog, public Ui::BibitemUi {
29         Q_OBJECT
30 public:
31
32         GuiBibitemDialog(GuiBibitem * form);
33 protected Q_SLOTS:
34         virtual void change_adaptor();
35 protected:
36         virtual void closeEvent(QCloseEvent * e);
37 private:
38         GuiBibitem * form_;
39 };
40
41
42 class ControlCommand;
43
44 class GuiBibitem
45         : public QController<ControlCommand, GuiView<GuiBibitemDialog> >
46 {
47 public:
48         friend class GuiBibitemDialog;
49
50         GuiBibitem(Dialog &);
51
52 protected:
53         virtual bool isValid();
54 private:
55         /// Apply changes
56         virtual void apply();
57         /// update
58         virtual void update_contents();
59         /// build the dialog
60         virtual void build_dialog();
61 };
62
63 } // namespace frontend
64 } // namespace lyx
65
66 #endif // QBIBITEM_H