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.
17 #include <QCloseEvent>
23 class DialogView : public QDialog, public Dialog
28 /// \param lv is the access point for the dialog to the LyX kernel.
29 /// \param name is the identifier given to the dialog by its parent
31 /// \param title is the window title used for decoration.
32 DialogView(GuiView & lv, QString const & name, QString const & title);
34 QWidget * asQWidget() override { return this; }
35 QWidget const * asQWidget() const override { return this; }
38 /// \name Dialog inherited methods
40 void applyView() override {}
41 bool initialiseParams(std::string const & /*data*/) override { return true; }
42 void clearParams() override {}
43 bool needBufferOpen() const override { return isBufferDependent(); }
45 /// Any dialog that overrides this method should make sure to call it.
46 void closeEvent(QCloseEvent * ev) override;
47 /// Any dialog that overrides this method should make sure to call it.
48 void hideEvent(QHideEvent * ev) override;
51 void onBufferViewChanged() override {};
54 } // namespace frontend
57 #endif // DIALOGVIEW_H