1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 12:42:11 +00:00

Chaninging variables name to follow our policy.

This commit is contained in:
Marek Kochanowicz 2014-01-27 13:13:39 +01:00
parent aa6d1ff4c3
commit 71d6364754
7 changed files with 11 additions and 11 deletions

View File

@ -81,11 +81,11 @@ void CSVWorld::CellCreator::valueChanged (int index)
update();
}
void CSVWorld::CellCreator::cloneMode(const std::string& originid,
void CSVWorld::CellCreator::cloneMode(const std::string& originId,
const CSMWorld::UniversalId::Type type)
{
CSVWorld::GenericCreator::cloneMode(originid, type);
if (*(originid.begin()) == '#') //if originid points to the exterior cell
CSVWorld::GenericCreator::cloneMode(originId, type);
if (*(originId.begin()) == '#') //if originid points to the exterior cell
{
setType(1); //enable x and y controls
mType->setCurrentIndex(1);

View File

@ -31,7 +31,7 @@ namespace CSVWorld
virtual void toggleWidgets(bool active = true);
virtual void cloneMode(const std::string& originid,
virtual void cloneMode(const std::string& originId,
const CSMWorld::UniversalId::Type type);
private slots:

View File

@ -25,7 +25,7 @@ namespace CSVWorld
virtual void reset() = 0;
virtual void cloneMode(const std::string& originid,
virtual void cloneMode(const std::string& originId,
const CSMWorld::UniversalId::Type type) = 0;
virtual void setEditLock (bool locked) = 0;

View File

@ -149,11 +149,11 @@ void CSVWorld::GenericCreator::create()
}
}
void CSVWorld::GenericCreator::cloneMode(const std::string& originid,
void CSVWorld::GenericCreator::cloneMode(const std::string& originId,
const CSMWorld::UniversalId::Type type)
{
mCloneMode = true;
mClonedId = originid;
mClonedId = originId;
mClonedType = type;
}

View File

@ -66,7 +66,7 @@ namespace CSVWorld
virtual void toggleWidgets (bool active = true);
virtual void cloneMode(const std::string& originid,
virtual void cloneMode(const std::string& originId,
const CSMWorld::UniversalId::Type type);
virtual std::string getErrors() const;

View File

@ -85,9 +85,9 @@ void CSVWorld::ReferenceCreator::toggleWidgets(bool active)
mCell->setEnabled(active);
}
void CSVWorld::ReferenceCreator::cloneMode(const std::string& originid,
void CSVWorld::ReferenceCreator::cloneMode(const std::string& originId,
const CSMWorld::UniversalId::Type type)
{
CSVWorld::GenericCreator::cloneMode(originid, type);
CSVWorld::GenericCreator::cloneMode(originId, type);
cellChanged(); //otherwise ok button will remain disabled
}

View File

@ -25,7 +25,7 @@ namespace CSVWorld
ReferenceCreator (CSMWorld::Data& data, QUndoStack& undoStack,
const CSMWorld::UniversalId& id);
virtual void cloneMode(const std::string& originid,
virtual void cloneMode(const std::string& originId,
const CSMWorld::UniversalId::Type type);
virtual void reset();