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() {}
41 virtual int newView();
42 virtual LyXView& view(int id);
43 virtual int newWorkArea(unsigned int width, unsigned int height, int view_id);
44 virtual WorkArea& workArea(int id);
45 virtual bool closeAll();
49 void unregisterView(GuiView * view);
55 /// Multiple views container.
57 * Warning: This must not be a smart pointer as the destruction of the
58 * object is handled by Qt when the view is closed
59 * \sa Qt::WA_DeleteOnClose attribute.
61 std::map<int, GuiView *> views_;
63 /// Multiple workareas container.
65 * Warning: This must not be a smart pointer as the destruction of the
66 * object is handled by Qt when its parent view is closed.
68 std::map<int, GuiWorkArea *> work_areas_;
75 } // namespace frontend