mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
f0402e69c6
* Switch WorkAreaManager to std::list instead of vector. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20664 a592a061-630c-0410-9148-cb99ea01b6c8
53 lines
886 B
C++
53 lines
886 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file WorkAreaManager.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Abdelrazak Younes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef WORKAREA_MANAGER_H
|
|
#define WORKAREA_MANAGER_H
|
|
|
|
#include <list>
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class WorkArea;
|
|
|
|
/// \c WorkArea Manager.
|
|
/**
|
|
* This is a helper class designed to avoid signal/slot connections
|
|
* between a \c Buffer and the potentially multiple \c WorkArea(s)
|
|
* used to visualize this Buffer contents.
|
|
*/
|
|
class WorkAreaManager
|
|
{
|
|
public:
|
|
WorkAreaManager() {}
|
|
|
|
///
|
|
void add(WorkArea * wa);
|
|
|
|
///
|
|
void remove(WorkArea * wa);
|
|
|
|
///
|
|
void redrawAll();
|
|
|
|
///
|
|
void closeAll();
|
|
|
|
private:
|
|
std::list<WorkArea *> work_areas_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // BASE_WORKAREA_H
|