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"
31 * The GuiImplementation class is the interface to all Qt4 components.
33 class GuiImplementation: public QObject, public Gui
39 virtual ~GuiImplementation() {}
42 LyXView& view(int id);
43 int newWorkArea(unsigned int width, unsigned int height, int view_id);
44 WorkArea& workArea(int id);
48 void cleanupViews(QObject * view);
54 /// Multiple views container.
56 * Warning: This must not be a smart pointer as the destruction of the
57 * object is handled by Qt when the view is closed
58 * \sa Qt::WA_DeleteOnClose attribute.
60 std::map<int, GuiView *> views_;
62 /// Multiple workareas container.
64 * Warning: This must not be a smart pointer as the destruction of the
65 * object is handled by Qt when its parent view is closed.
67 std::map<int, GuiWorkArea *> work_areas_;
74 } // namespace frontend