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 <QDockWidget>
23 /// Dock Widget container for LyX dialogs.
25 * This template class that encapsulates a given Widget inside a
26 * QDockWidget and presents a Dialog interface
27 * FIXME: create a DockView.cpp file
29 class DockView : public QDockWidget, public Dialog
34 DockView(GuiView & parent, ///< the main window where to dock.
35 QString const & name, ///< dialog identifier.
36 QString const & title, ///< dialog title.
37 Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of
40 Qt::WindowFlags flags = 0);
42 virtual ~DockView() {}
44 QWidget * asQWidget() override { return this; }
45 QWidget const * asQWidget() const override { return this; }
47 /// We don't want to restore geometry session for dock widgets.
48 void restoreSession() override {}
50 void keyPressEvent(QKeyEvent * ev) override;
52 /// Dialog inherited methods
54 void applyView() override {}
55 bool isClosing() const override { return false; }
56 bool needBufferOpen() const override { return false; }
60 void onBufferViewChanged() override {}
63 } // namespace frontend