3 * \file GuiImplementation.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Abdelrazak Younes
10 * Full author contact details are available in file CREDITS.
16 #include "frontends/Gui.h"
29 * The GuiImplementation class is the interface to all Qt4 components.
31 class GuiImplementation : public QObject, public Gui
37 virtual ~GuiImplementation() {}
40 virtual LyXView& createRegisteredView();
41 virtual bool closeAllViews();
42 virtual bool unregisterView(int id);
44 virtual LyXView& view(int id) const;
48 /// Multiple views container.
50 * Warning: This must not be a smart pointer as the destruction of the
51 * object is handled by Qt when the view is closed
52 * \sa Qt::WA_DeleteOnClose attribute.
54 std::map<int, GuiViewBase *> views_;
57 } // namespace frontend