mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 00:39:59 +00:00
700d55f1fb
Implemented updating editor application from preferences menu, loading settings when editor loads, adding Record Status Display prefernce. Fixed multiple bugs, made changes to CSM(V)Settings classes to make implementing new prefrences easier. Rewrote CSMSettings::UserSettings to retain last-loaded settings. Adjusted icon position in Record Status column Capitalized status text Added delegate to referenceables table
33 lines
900 B
C++
33 lines
900 B
C++
|
|
#include "tablesubview.hpp"
|
|
|
|
#include "../../model/doc/document.hpp"
|
|
|
|
#include "table.hpp"
|
|
|
|
CSVWorld::TableSubView::TableSubView (const CSMWorld::UniversalId& id, CSMDoc::Document& document,
|
|
bool createAndDelete)
|
|
: SubView (id)
|
|
{
|
|
setWidget (mTable = new Table (id, document.getData(), document.getUndoStack(), createAndDelete));
|
|
|
|
connect (mTable, SIGNAL (doubleClicked (const QModelIndex&)), this, SLOT (rowActivated (const QModelIndex&)));
|
|
}
|
|
|
|
void CSVWorld::TableSubView::setEditLock (bool locked)
|
|
{
|
|
mTable->setEditLock (locked);
|
|
}
|
|
|
|
void CSVWorld::TableSubView::rowActivated (const QModelIndex& index)
|
|
{
|
|
focusId (mTable->getUniversalId (index.row()));
|
|
}
|
|
|
|
void CSVWorld::TableSubView::updateEditorSetting(const QString &settingName, const QString &settingValue)
|
|
{
|
|
|
|
if (settingName == "Record Status Display")
|
|
mTable->updateEditorSetting(settingName, settingValue);
|
|
}
|