mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 16:23:52 +00:00
26 lines
424 B
C++
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;
|
||
|
}
|