1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 16:23:52 +00:00
openmw/apps/opencs/view/doc/viewmanager.cpp

26 lines
424 B
C++
Raw Normal View History

2012-11-22 12:30:02 +00:00
#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;
}