-// -*- C++ -*-\r
-/**\r
- * \file InsetParamsDialog.h\r
- * This file is part of LyX, the document processor.\r
- * Licence details can be found in the file COPYING.\r
- *\r
- * \author Abdelrazak Younes\r
- *\r
- * Full author contact details are available in file CREDITS.\r
- */\r
-\r
-#ifndef INSET_PARAMS_DIALOG_H\r
-#define INSET_PARAMS_DIALOG_H\r
-\r
-#include "DialogView.h"\r
-#include "ui_InsetParamsUi.h"\r
-\r
-#include "qt_i18n.h"\r
-\r
-namespace lyx {\r
-\r
-class Inset;\r
-\r
-namespace frontend {\r
-\r
-class InsetParamsWidget;\r
-\r
-class InsetParamsDialog : public DialogView, public Ui::InsetParamsUi\r
-{\r
- Q_OBJECT\r
-public:\r
- InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget);\r
- ~InsetParamsDialog();\r
-\r
- ///\r
- void setInsetParamsWidget(InsetParamsWidget * widget);\r
-\r
-protected Q_SLOTS:\r
- void onWidget_changed();\r
- void applyView();\r
- void on_restorePB_clicked();\r
- void on_okPB_clicked();\r
- void on_applyPB_clicked();\r
- void on_closePB_clicked();\r
- void on_synchronizedViewCB_stateChanged(int state);\r
-\r
-private:\r
- /// \name DialogView inherited methods\r
- //@{\r
- void updateView();\r
- void dispatchParams() {}\r
- bool isBufferDependent() const { return true; }\r
- bool canApply() const { return true; }\r
- //@}\r
- ///\r
- void newInset();\r
- ///\r
- docstring checkWidgets(bool synchronized_view);\r
- /// pimpl\r
- struct Private;\r
- Private * d;\r
-};\r
-\r
-} // namespace frontend\r
-} // namespace lyx\r
-\r
-#endif // INSET_PARAMS_DIALOG_H\r
+// -*- C++ -*-
+/**
+ * \file InsetParamsDialog.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Abdelrazak Younes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
+#ifndef INSET_PARAMS_DIALOG_H
+#define INSET_PARAMS_DIALOG_H
+
+#include "DialogView.h"
+#include "ui_InsetParamsUi.h"
+
+#include "qt_i18n.h"
+
+namespace lyx {
+
+class Inset;
+
+namespace frontend {
+
+class InsetParamsWidget;
+
+class InsetParamsDialog : public DialogView, public Ui::InsetParamsUi
+{
+ Q_OBJECT
+public:
+ InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget);
+ ~InsetParamsDialog();
+
+ ///
+ void setInsetParamsWidget(InsetParamsWidget * widget);
+
+protected Q_SLOTS:
+ void onWidget_changed();
+ void applyView();
+ void on_restorePB_clicked();
+ void on_newPB_clicked();
+ void on_okPB_clicked();
+ void on_applyPB_clicked();
+ void on_closePB_clicked();
+ void on_immediateApplyCB_stateChanged(int state);
+ void on_synchronizedCB_stateChanged(int state);
+
+private:
+ /// \name DialogView inherited methods
+ //@{
+ void updateView();
+ void dispatchParams() {}
+ bool isBufferDependent() const { return true; }
+ bool canApply() const { return true; }
+ bool initialiseParams(std::string const &);
+ //@}
+ ///
+ void newInset();
+ ///
+ void updateView(bool update_widget);
+ ///
+ docstring checkWidgets(bool immediate);
+ /// pimpl
+ struct Private;
+ Private * d;
+};
+
+} // namespace frontend
+} // namespace lyx
+
+#endif // INSET_PARAMS_DIALOG_H