]> git.lyx.org Git - features.git/blob - src/frontends/qt4/InsetDialog.h
Add a new insetDisplayName() method that will be used for GUI purpose.
[features.git] / src / frontends / qt4 / InsetDialog.h
1 // -*- C++ -*-\r
2 /**\r
3  * \file InsetDialog.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_DIALOG_H\r
13 #define INSET_DIALOG_H\r
14 \r
15 #include "DialogView.h"\r
16 \r
17 #include "qt_i18n.h"\r
18 \r
19 namespace lyx {\r
20 \r
21 class Inset;\r
22 \r
23 namespace frontend {\r
24 \r
25 \r
26 class InsetDialog : public DialogView\r
27 {\r
28         Q_OBJECT\r
29 \r
30 public:\r
31         InsetDialog(GuiView & lv, InsetCode code, FuncCode creation_code,\r
32                 char const * name, char const * display_name);\r
33 \r
34         /// \name DialogView inherited methods\r
35         //@{\r
36         void updateView();\r
37         void dispatchParams() {}\r
38         bool isBufferDependent() const { return true; }\r
39         bool canApply() const { return true; }\r
40         //@}\r
41 \r
42 protected Q_SLOTS:\r
43         void applyView();\r
44         void on_newPB_clicked();\r
45         void on_closePB_clicked();\r
46 \r
47 protected:\r
48         ///\r
49         virtual void paramsToDialog(Inset const *) = 0;\r
50         ///\r
51         virtual docstring dialogToParams() const = 0;\r
52 \r
53 private:\r
54         /// pimpl\r
55         struct Private;\r
56         Private * d;\r
57 };\r
58 \r
59 } // namespace frontend\r
60 } // namespace lyx\r
61 \r
62 #endif // INSET_DIALOG_H\r