1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 00:39:59 +00:00
OpenMW/apps/opencs/view/doc/viewmanager.cpp
2012-11-22 13:30:02 +01:00

26 lines
424 B
C++

#include "viewmanager.hpp"
#include "view.hpp"
CSVDoc::ViewManager::ViewManager()
{
}
CSVDoc::ViewManager::~ViewManager()
{
for (std::vector<View *>::iterator iter (mViews.begin()); iter!=mViews.end(); ++iter)
delete *iter;
}
CSVDoc::View *CSVDoc::ViewManager::addView (CSMDoc::Document *document)
{
View *view = new View (document);
mViews.push_back (view);
view->show();
return view;
}