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"
26 class InsetParamsWidget;
28 class InsetParamsDialog : public DialogView, public Ui::InsetParamsUi
32 InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget);
36 void setInsetParamsWidget(InsetParamsWidget * widget);
39 void onWidget_changed();
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);
50 /// \name DialogView inherited methods
53 void dispatchParams() {}
54 bool isBufferDependent() const { return true; }
55 bool canApply() const { return true; }
56 bool initialiseParams(std::string const &);
61 void updateView(bool update_widget);
63 docstring checkWidgets(bool immediate);
69 } // namespace frontend
72 #endif // INSET_PARAMS_DIALOG_H