]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/InsetParamsDialog.h
Fix the tab ordering of GuiDocument components.
[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_immediateApplyCB_stateChanged(int state);
47         void on_synchronizedCB_stateChanged(int state);
48
49 private:
50         /// \name DialogView inherited methods
51         //@{
52         void updateView();
53         void dispatchParams() {}
54         bool isBufferDependent() const { return true; }
55         bool canApply() const { return true; }
56         bool initialiseParams(std::string const &);
57         //@}
58         ///
59         void newInset();
60         ///
61         void updateView(bool update_widget);
62         ///
63         docstring checkWidgets(bool immediate);
64         /// pimpl
65         struct Private;
66         Private * d;
67 };
68
69 } // namespace frontend
70 } // namespace lyx
71
72 #endif // INSET_PARAMS_DIALOG_H