1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/apps/opencs/view/world/tablesubview.cpp

18 lines
433 B
C++
Raw Normal View History

#include "tablesubview.hpp"
2012-12-11 13:22:43 +01:00
#include "../../model/doc/document.hpp"
#include "table.hpp"
2012-12-11 13:22:43 +01:00
CSVWorld::TableSubView::TableSubView (const CSMWorld::UniversalId& id, CSMDoc::Document& document,
bool createAndDelete)
: SubView (id)
{
2012-12-11 13:22:43 +01:00
setWidget (mTable = new Table (id, document.getData(), document.getUndoStack(), createAndDelete));
}
void CSVWorld::TableSubView::setEditLock (bool locked)
{
mTable->setEditLock (locked);
}