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 /// An InsetParamsDialog wraps an InsetParamsWidget, which is what
29 /// will contain all the specific dialog parts for a given inset.
30 /// This class manages the OK, etc, buttons and immediate apply
32 class InsetParamsDialog : public DialogView, public Ui::InsetParamsUi
36 InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget);
40 void setInsetParamsWidget(InsetParamsWidget * widget);
43 void onWidget_changed();
46 void on_buttonBox_clicked(QAbstractButton *);
47 void on_immediateApplyCB_stateChanged(int state);
48 void on_synchronizedCB_stateChanged(int state);
51 /// \name DialogView inherited methods
54 void dispatchParams() {}
55 bool isBufferDependent() const { return true; }
56 bool canApply() const { return true; }
57 bool initialiseParams(std::string const &);
62 bool newInsetAllowed() const;
64 void updateView(bool update_widget);
66 docstring checkWidgets(bool immediate);
74 } // namespace frontend
77 #endif // INSET_PARAMS_DIALOG_H