2012-12-11 15:35:47 +01:00
|
|
|
|
|
|
|
#include "reportsubview.hpp"
|
|
|
|
|
2014-12-06 13:01:55 +01:00
|
|
|
#include "reporttable.hpp"
|
2013-09-22 13:54:01 +02:00
|
|
|
|
2012-12-11 15:35:47 +01:00
|
|
|
CSVTools::ReportSubView::ReportSubView (const CSMWorld::UniversalId& id, CSMDoc::Document& document)
|
2014-12-06 13:01:55 +01:00
|
|
|
: CSVDoc::SubView (id)
|
2012-12-11 15:35:47 +01:00
|
|
|
{
|
2015-03-30 12:52:08 +02:00
|
|
|
setWidget (mTable = new ReportTable (document, id, false, this));
|
2013-09-22 13:54:01 +02:00
|
|
|
|
2014-12-06 13:01:55 +01:00
|
|
|
connect (mTable, SIGNAL (editRequest (const CSMWorld::UniversalId&, const std::string&)),
|
|
|
|
SIGNAL (focusId (const CSMWorld::UniversalId&, const std::string&)));
|
2012-12-11 15:35:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CSVTools::ReportSubView::setEditLock (bool locked)
|
|
|
|
{
|
|
|
|
// ignored. We don't change document state anyway.
|
2012-12-12 22:36:20 +01:00
|
|
|
}
|
|
|
|
|
2014-12-06 13:01:55 +01:00
|
|
|
void CSVTools::ReportSubView::updateUserSetting (const QString &name, const QStringList &list)
|
2012-12-12 22:36:20 +01:00
|
|
|
{
|
2014-12-06 13:01:55 +01:00
|
|
|
mTable->updateUserSetting (name, list);
|
2014-04-22 22:19:53 -05:00
|
|
|
}
|