]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/InsetParamsDialog.h
Use <cstdint> instead of <boost/cstdint.hpp>
[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 <QPushButton>
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 resetDialog();
42         void on_buttonBox_clicked(QAbstractButton *);
43         void on_immediateApplyCB_stateChanged(int state);
44         void on_synchronizedCB_stateChanged(int state);
45
46 private:
47         /// \name DialogView inherited methods
48         //@{
49         void updateView();
50         void dispatchParams() {}
51         bool isBufferDependent() const { return true; }
52         bool canApply() const { return true; }
53         bool initialiseParams(std::string const &);
54         //@}
55         ///
56         void newInset();
57         ///
58         bool newInsetAllowed() const;
59         ///
60         void updateView(bool update_widget);
61         ///
62         docstring checkWidgets(bool immediate);
63         ///
64         QPushButton * newPB;
65         /// pimpl
66         struct Private;
67         Private * d;
68 };
69
70 } // namespace frontend
71 } // namespace lyx
72
73 #endif // INSET_PARAMS_DIALOG_H