]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiInfo.h
More GuiInfo usability work
[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 "InsetParamsWidget.h"
16 #include "ui_InfoUi.h"
17
18 namespace lyx {
19
20 class Inset;
21
22 namespace frontend {
23
24 class GuiInfo : public InsetParamsWidget, public Ui::InfoUi
25 {
26         Q_OBJECT
27
28 protected Q_SLOTS:
29         void updateArguments(int i);
30
31 public:
32         GuiInfo(QWidget * parent = 0);
33
34 private:
35         /// \name InsetParamsWidget inherited methods
36         //@{
37         InsetCode insetCode() const { return INFO_CODE; }
38         FuncCode creationCode() const { return LFUN_INFO_INSERT; }
39         QString dialogTitle() const { return qt_("Info Inset Settings"); }
40         void paramsToDialog(Inset const *);
41         docstring dialogToParams() const;
42         bool checkWidgets(bool readonly) const;
43         //@}
44         Inset * inset_;
45 };
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #endif // GUI_INFO_H