3 * \file InsetParamsDialog.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Abdelrazak Younes
9 * Full author contact details are available in file CREDITS.
12 #ifndef INSET_PARAMS_DIALOG_H
13 #define INSET_PARAMS_DIALOG_H
15 #include "DialogView.h"
16 #include "ui_InsetParamsUi.h"
24 class InsetParamsWidget;
26 class InsetParamsDialog : public DialogView, public Ui::InsetParamsUi
30 InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget);
34 void setInsetParamsWidget(InsetParamsWidget * widget);
37 void onWidget_changed();
39 void on_restorePB_clicked();
40 void on_newPB_clicked();
41 void on_okPB_clicked();
42 void on_applyPB_clicked();
43 void on_closePB_clicked();
44 void on_immediateApplyCB_stateChanged(int state);
45 void on_synchronizedCB_stateChanged(int state);
48 /// \name DialogView inherited methods
51 void dispatchParams() {}
52 bool isBufferDependent() const { return true; }
53 bool canApply() const { return true; }
54 bool initialiseParams(std::string const &);
59 void updateView(bool update_widget);
61 docstring checkWidgets(bool immediate);
67 } // namespace frontend
70 #endif // INSET_PARAMS_DIALOG_H