]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiInfo.h
If we are in a closeEvent, we don't want to close all buffers, because these may...
[lyx.git] / src / frontends / qt4 / GuiInfo.h
1 // -*- C++ -*-
2 /**
3  * \file GuiInfo.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Abdelrazak Younes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUI_INFO_H
13 #define GUI_INFO_H
14
15 #include "DialogView.h"
16 #include "ui_InfoUi.h"
17
18 namespace lyx {
19
20 namespace frontend {
21
22 class GuiInfo : public DialogView, public Ui::InfoUi
23 {
24         Q_OBJECT
25
26 public:
27         GuiInfo(GuiView & lv);
28
29         /// Dialog inherited methods
30         //@{
31         void applyView();
32         void updateView();
33         void dispatchParams() {}
34         void enableView(bool enable);
35         bool isBufferDependent() const { return true; }
36         //@}
37
38 private Q_SLOTS:
39         void on_newPB_clicked();
40         void on_closePB_clicked();
41         void on_typeCO_currentIndexChanged(int);
42         void on_nameLE_textChanged(QString const &);
43
44 private:
45         void paramsToDialog();
46         void dialogToParams();
47         QString type_;
48         QString name_;
49 };
50
51 } // namespace frontend
52 } // namespace lyx
53
54 #endif // GUI_INFO_H