]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiBibitem.h
more
[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 Angus Leeming
8  * \author John Levon
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUIBIBITEM_H
14 #define GUIBIBITEM_H
15
16 #include "GuiDialog.h"
17 #include "ui_BibitemUi.h"
18
19 #include "frontends/Dialog.h"
20
21 #include "insets/InsetCommandParams.h"
22
23 namespace lyx {
24 namespace frontend {
25
26 class GuiBibitem : public GuiDialog, public Ui::BibitemUi, public Controller
27 {
28         Q_OBJECT
29
30 public:
31         GuiBibitem(LyXView & lv);
32
33 private Q_SLOTS:
34         void change_adaptor();
35
36 private:
37         ///
38         void closeEvent(QCloseEvent * e);
39         /// parent controller
40         Controller & controller() { return *this; }
41
42 private:
43         ///
44         bool isValid();
45         /// Apply changes
46         void applyView();
47         /// update
48         void updateContents();
49         ///
50         bool initialiseParams(std::string const & data);
51         /// clean-up on hide.
52         void clearParams() { params_.clear(); }
53         /// clean-up on hide.
54         void dispatchParams();
55         ///
56         bool isBufferDependent() const { return true; }
57
58 private:
59         ///
60         InsetCommandParams params_;
61 };
62
63 } // namespace frontend
64 } // namespace lyx
65
66 #endif // GUIBIBITEM_H