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