Console: rename PascalCase named methods to camelCase
This commit is contained in:
@@ -108,7 +108,7 @@ bool DrawProjGroupItem::showLock() const
|
||||
|
||||
App::DocumentObjectExecReturn *DrawProjGroupItem::execute()
|
||||
{
|
||||
// Base::Console().Message("DPGI::execute() - %s / %s\n", getNameInDocument(), Label.getValue());
|
||||
// Base::Console().message("DPGI::execute() - %s / %s\n", getNameInDocument(), Label.getValue());
|
||||
if (!keepUpdated()) {
|
||||
return DrawView::execute();
|
||||
}
|
||||
@@ -135,7 +135,7 @@ App::DocumentObjectExecReturn *DrawProjGroupItem::execute()
|
||||
|
||||
void DrawProjGroupItem::postHlrTasks()
|
||||
{
|
||||
// Base::Console().Message("DPGI::postHlrTasks() - %s\n", getNameInDocument());
|
||||
// Base::Console().message("DPGI::postHlrTasks() - %s\n", getNameInDocument());
|
||||
DrawViewPart::postHlrTasks();
|
||||
|
||||
DrawProjGroup* pGroup = getPGroup();
|
||||
@@ -154,7 +154,7 @@ void DrawProjGroupItem::autoPosition()
|
||||
if (!pGroup) {
|
||||
return;
|
||||
}
|
||||
// Base::Console().Message("DPGI::autoPosition(%s)\n", Label.getValue());
|
||||
// Base::Console().message("DPGI::autoPosition(%s)\n", Label.getValue());
|
||||
if (LockPosition.getValue()) {
|
||||
return;
|
||||
}
|
||||
@@ -171,7 +171,7 @@ void DrawProjGroupItem::autoPosition()
|
||||
|
||||
void DrawProjGroupItem::onDocumentRestored()
|
||||
{
|
||||
// Base::Console().Message("DPGI::onDocumentRestored() - %s\n", getNameInDocument());
|
||||
// Base::Console().message("DPGI::onDocumentRestored() - %s\n", getNameInDocument());
|
||||
DrawView::onDocumentRestored();
|
||||
App::DocumentObjectExecReturn* rc = DrawProjGroupItem::execute();
|
||||
if (rc) {
|
||||
@@ -191,7 +191,7 @@ bool DrawProjGroupItem::isAnchor() const
|
||||
|
||||
Base::Vector3d DrawProjGroupItem::getXDirection() const
|
||||
{
|
||||
// Base::Console().Message("DPGI::getXDirection() - %s\n", Label.getValue());
|
||||
// Base::Console().message("DPGI::getXDirection() - %s\n", Label.getValue());
|
||||
Base::Vector3d result(1.0, 0.0, 0.0); //default X
|
||||
App::Property* prop = getPropertyByName("XDirection");
|
||||
if (prop) {
|
||||
@@ -210,14 +210,14 @@ Base::Vector3d DrawProjGroupItem::getXDirection() const
|
||||
}
|
||||
}
|
||||
else { //not sure this branch can actually happen
|
||||
Base::Console().Message("DPGI::getXDirection - unexpected branch taken!\n");
|
||||
Base::Console().message("DPGI::getXDirection - unexpected branch taken!\n");
|
||||
prop = getPropertyByName("RotationVector");
|
||||
if (prop) {
|
||||
result = RotationVector.getValue();
|
||||
|
||||
}
|
||||
else {
|
||||
Base::Console().Message("DPGI::getXDirection - missing RotationVector and XDirection\n");
|
||||
Base::Console().message("DPGI::getXDirection - missing RotationVector and XDirection\n");
|
||||
}
|
||||
}
|
||||
return result;
|
||||
@@ -227,7 +227,7 @@ Base::Vector3d DrawProjGroupItem::getLegacyX(const Base::Vector3d& pt,
|
||||
const Base::Vector3d& axis,
|
||||
const bool flip) const
|
||||
{
|
||||
// Base::Console().Message("DPGI::getLegacyX() - %s\n", Label.getValue());
|
||||
// Base::Console().message("DPGI::getLegacyX() - %s\n", Label.getValue());
|
||||
App::Property* prop = getPropertyByName("RotationVector");
|
||||
if (prop) {
|
||||
Base::Vector3d result = RotationVector.getValue();
|
||||
@@ -312,7 +312,7 @@ void DrawProjGroupItem::unsetupObject()
|
||||
}
|
||||
|
||||
if (getPGroup()->getAnchor() == this && !getPGroup()->isUnsetting()) {
|
||||
Base::Console().Warning("Warning - DPG (%s/%s) may be corrupt - Anchor deleted\n",
|
||||
Base::Console().warning("Warning - DPG (%s/%s) may be corrupt - Anchor deleted\n",
|
||||
getPGroup()->getNameInDocument(), getPGroup()->Label.getValue());
|
||||
getPGroup()->Anchor.setValue(nullptr); //this catches situation where DPGI is deleted w/o DPG::removeProjection
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user