]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/InsetParamsDialog.h
Remove the magic boolean in getChildren() from the public interface.
[lyx.git] / src / frontends / qt4 / InsetParamsDialog.h
1 // -*- C++ -*-\r
2 /**\r
3  * \file InsetParamsDialog.h\r
4  * This file is part of LyX, the document processor.\r
5  * Licence details can be found in the file COPYING.\r
6  *\r
7  * \author Abdelrazak Younes\r
8  *\r
9  * Full author contact details are available in file CREDITS.\r
10  */\r
11 \r
12 #ifndef INSET_PARAMS_DIALOG_H\r
13 #define INSET_PARAMS_DIALOG_H\r
14 \r
15 #include "DialogView.h"\r
16 #include "ui_InsetParamsUi.h"\r
17 \r
18 #include "qt_i18n.h"\r
19 \r
20 namespace lyx {\r
21 \r
22 class Inset;\r
23 \r
24 namespace frontend {\r
25 \r
26 class InsetParamsWidget;\r
27 \r
28 class InsetParamsDialog : public DialogView, public Ui::InsetParamsUi\r
29 {\r
30         Q_OBJECT\r
31 public:\r
32         InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget);\r
33         ~InsetParamsDialog();\r
34 \r
35         ///\r
36         void setInsetParamsWidget(InsetParamsWidget * widget);\r
37 \r
38 protected Q_SLOTS:\r
39         void onWidget_changed();\r
40         void applyView();\r
41         void on_restorePB_clicked();\r
42         void on_newPB_clicked();\r
43         void on_okPB_clicked();\r
44         void on_applyPB_clicked();\r
45         void on_closePB_clicked();\r
46         void on_synchronizedViewCB_stateChanged(int state);\r
47 \r
48 private:\r
49         /// \name DialogView inherited methods\r
50         //@{\r
51         void updateView();\r
52         void dispatchParams() {}\r
53         bool isBufferDependent() const { return true; }\r
54         bool canApply() const { return true; }\r
55         bool initialiseParams(std::string const &);\r
56         //@}\r
57         ///\r
58         void newInset();\r
59         ///\r
60         void updateView(bool update_widget);\r
61         ///\r
62         docstring checkWidgets(bool synchronized_view);\r
63         /// pimpl\r
64         struct Private;\r
65         Private * d;\r
66 };\r
67 \r
68 } // namespace frontend\r
69 } // namespace lyx\r
70 \r
71 #endif // INSET_PARAMS_DIALOG_H\r