mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-23 08:39:07 +00:00
59 lines
1.0 KiB
C
59 lines
1.0 KiB
C
|
// -*- C++ -*-
|
||
|
/**
|
||
|
* \file GuiImplementation.h
|
||
|
* This file is part of LyX, the document processor.
|
||
|
* Licence details can be found in the file COPYING.
|
||
|
*
|
||
|
* \author John Levon
|
||
|
* \author Abdelrazak Younes
|
||
|
*
|
||
|
* Full author contact details are available in file CREDITS.
|
||
|
*/
|
||
|
|
||
|
#ifndef GUI_IMPLEMENTATION_H
|
||
|
#define GUI_IMPLEMENTATION_H
|
||
|
|
||
|
#include "frontends/Gui.h"
|
||
|
#include "GuiClipboard.h"
|
||
|
|
||
|
#include <boost/shared_ptr.hpp>
|
||
|
|
||
|
#include <map>
|
||
|
|
||
|
namespace lyx {
|
||
|
namespace frontend {
|
||
|
|
||
|
class GuiWorkArea;
|
||
|
class QtView;
|
||
|
|
||
|
/**
|
||
|
* The GuiImplementation class is the interface to all Qt4 components.
|
||
|
*/
|
||
|
class GuiImplementation: public Gui
|
||
|
{
|
||
|
public:
|
||
|
GuiImplementation(QtView & owner);
|
||
|
virtual ~GuiImplementation() {}
|
||
|
|
||
|
Clipboard& clipboard();
|
||
|
|
||
|
int newWorkArea(int w, int h);
|
||
|
WorkArea& workArea(int id);
|
||
|
void destroyWorkArea(int id);
|
||
|
|
||
|
private:
|
||
|
///
|
||
|
GuiClipboard clipboard_;
|
||
|
///
|
||
|
std::map<int, boost::shared_ptr<GuiWorkArea> > work_areas_;
|
||
|
///
|
||
|
QtView & owner_;
|
||
|
///
|
||
|
size_t max_id_;
|
||
|
};
|
||
|
|
||
|
} // namespace frontend
|
||
|
} // namespace lyx
|
||
|
|
||
|
#endif // GUI_IMPLEMENTATION_H
|