]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiInfo.h
Update the GuiInfo dialog also when the document is read-only. A dialog that does...
[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         bool canApply() const { return true; }
37         //@}
38
39 private Q_SLOTS:
40         void on_newPB_clicked();
41         void on_closePB_clicked();
42         void on_typeCO_currentIndexChanged(int);
43         void on_nameLE_textChanged(QString const &);
44
45 private:
46         void paramsToDialog();
47         void dialogToParams();
48         QString type_;
49         QString name_;
50 };
51
52 } // namespace frontend
53 } // namespace lyx
54
55 #endif // GUI_INFO_H