]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/InsetParamsDialog.h
Fix bug #7106: iterator out of range while copying multi-row math.
[lyx.git] / src / frontends / qt4 / InsetParamsDialog.h
1 // -*- C++ -*-
2 /**
3  * \file InsetParamsDialog.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 INSET_PARAMS_DIALOG_H
13 #define INSET_PARAMS_DIALOG_H
14
15 #include "DialogView.h"
16 #include "ui_InsetParamsUi.h"
17
18 #include "qt_i18n.h"
19
20 namespace lyx {
21
22 class Inset;
23
24 namespace frontend {
25
26 class InsetParamsWidget;
27
28 class InsetParamsDialog : public DialogView, public Ui::InsetParamsUi
29 {
30         Q_OBJECT
31 public:
32         InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget);
33         ~InsetParamsDialog();
34
35         ///
36         void setInsetParamsWidget(InsetParamsWidget * widget);
37
38 protected Q_SLOTS:
39         void onWidget_changed();
40         void applyView();
41         void on_restorePB_clicked();
42         void on_newPB_clicked();
43         void on_okPB_clicked();
44         void on_applyPB_clicked();
45         void on_closePB_clicked();
46         void on_synchronizedViewCB_stateChanged(int state);
47
48 private:
49         /// \name DialogView inherited methods
50         //@{
51         void updateView();
52         void dispatchParams() {}
53         bool isBufferDependent() const { return true; }
54         bool canApply() const { return true; }
55         bool initialiseParams(std::string const &);
56         //@}
57         ///
58         void newInset();
59         ///
60         void updateView(bool update_widget);
61         ///
62         docstring checkWidgets(bool synchronized_view);
63         /// pimpl
64         struct Private;
65         Private * d;
66 };
67
68 } // namespace frontend
69 } // namespace lyx
70
71 #endif // INSET_PARAMS_DIALOG_H