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"
18 #include <QPushButton>
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();
42 void on_buttonBox_clicked(QAbstractButton *);
43 void on_immediateApplyCB_stateChanged(int state);
44 void on_synchronizedCB_stateChanged(int state);
47 /// \name DialogView inherited methods
50 void dispatchParams() {}
51 bool isBufferDependent() const { return true; }
52 bool canApply() const { return true; }
53 bool initialiseParams(std::string const &);
58 bool newInsetAllowed() const;
60 void updateView(bool update_widget);
62 docstring checkWidgets(bool immediate);
70 } // namespace frontend
73 #endif // INSET_PARAMS_DIALOG_H