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() {}
39 virtual LyXView& createRegisteredView();
40 virtual bool closeAllViews();
41 virtual bool unregisterView(int id);
43 virtual LyXView& view(int id) const;
47 /// Multiple views container.
49 * Warning: This must not be a smart pointer as the destruction of the
50 * object is handled by Qt when the view is closed
51 * \sa Qt::WA_DeleteOnClose attribute.
53 std::map<int, GuiViewBase *> views_;
56 } // namespace frontend