[TD]remove obsolete log messages
This commit is contained in:
@@ -88,7 +88,7 @@ void loadTechDrawResource()
|
||||
QFontDatabase fontDB;
|
||||
int rc = fontDB.addApplicationFont(fontFile);
|
||||
if (rc) {
|
||||
Base::Console().Log("TechDraw failed to load osifont file: %d from: %s\n", rc, qPrintable(fontFile));
|
||||
Base::Console().Warning("TechDraw failed to load osifont file: %d from: %s\n", rc, qPrintable(fontFile));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -138,10 +138,6 @@ void CmdTechDrawPageDefault::activated(int iMsg)
|
||||
if (dvp) {
|
||||
dvp->show();
|
||||
}
|
||||
else {
|
||||
Base::Console().Log("INFO - Template: %s for Page: %s NOT Found\n", PageName.c_str(),
|
||||
TemplateName.c_str());
|
||||
}
|
||||
}
|
||||
else {
|
||||
QMessageBox::critical(Gui::getMainWindow(), QLatin1String("No template"),
|
||||
@@ -219,10 +215,6 @@ void CmdTechDrawPageTemplate::activated(int iMsg)
|
||||
if (dvp) {
|
||||
dvp->show();
|
||||
}
|
||||
else {
|
||||
Base::Console().Log("INFO - Template: %s for Page: %s NOT Found\n", PageName.c_str(),
|
||||
TemplateName.c_str());
|
||||
}
|
||||
}
|
||||
else {
|
||||
QMessageBox::critical(Gui::getMainWindow(), QLatin1String("No template"),
|
||||
|
||||
@@ -203,7 +203,6 @@ void CmdTechDrawGeometricHatch::activated(int iMsg)
|
||||
Gui::ViewProvider* vp = Gui::Application::Instance->getDocument(getDocument())->getViewProvider(geomhatch);
|
||||
TechDrawGui::ViewProviderGeomHatch* hvp = dynamic_cast<TechDrawGui::ViewProviderGeomHatch*>(vp);
|
||||
if (!hvp) {
|
||||
Base::Console().Log("ERROR - CommandDecorate - GeomHatch has no ViewProvider\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -380,7 +380,6 @@ std::pair<Base::Vector3d, Base::Vector3d> DrawGuiUtil::get3DDirAndRot()
|
||||
}
|
||||
}
|
||||
if (!viewer) {
|
||||
Base::Console().Log("LOG - DrawGuiUtil could not find a 3D viewer\n");
|
||||
return std::make_pair(viewDir, viewRight);
|
||||
}
|
||||
|
||||
@@ -434,9 +433,6 @@ std::pair<Base::Vector3d, Base::Vector3d> DrawGuiUtil::getProjDirFromFace(App::D
|
||||
projDir = projDir * (-1.0);
|
||||
}
|
||||
}
|
||||
else {
|
||||
Base::Console().Log("Selected Face has no normal at midpoint\n");
|
||||
}
|
||||
|
||||
dirs = std::make_pair(projDir, rotVec);
|
||||
return dirs;
|
||||
|
||||
@@ -892,9 +892,6 @@ void MDIViewPage::onSelectionChanged(const Gui::SelectionChanges& msg)
|
||||
}
|
||||
blockSceneSelection(false);
|
||||
}
|
||||
else {
|
||||
Base::Console().Log("MDIVP::onSelectionChanged - unhandled: %d\n", msg.Type);
|
||||
}
|
||||
}
|
||||
|
||||
//! maintain QGScene selected items in selection order
|
||||
|
||||
@@ -286,7 +286,6 @@ void QGIPrimPath::mousePressEvent(QGraphicsSceneMouseEvent * event)
|
||||
} else {
|
||||
// qparent->mousePressEvent(event); //protected!
|
||||
QGraphicsPathItem::mousePressEvent(event);
|
||||
Base::Console().Log("QGIPP::mousePressEvent - no QGIView parent\n");
|
||||
}
|
||||
} else {
|
||||
// Base::Console().Message("QGIPP::mousePressEvent - passing event to ancestor\n");
|
||||
|
||||
@@ -97,7 +97,6 @@ void QGIRichAnno::updateView(bool update)
|
||||
Q_UNUSED(update);
|
||||
auto annoFeat( dynamic_cast<TechDraw::DrawRichAnno*>(getViewObject()) );
|
||||
if (!annoFeat) {
|
||||
Base::Console().Log("QGIRA::updateView - no feature!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -303,8 +303,6 @@ double QGIView::getYInClip(double y)
|
||||
QGIViewClip* QGIView::getClipGroup()
|
||||
{
|
||||
if (!getViewObject()->isInClip()) {
|
||||
Base::Console().Log( "Logic Error - getClipGroup called for child "
|
||||
"(%s) not in Clip\n", getViewName() );
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -874,9 +874,6 @@ void QGIViewBalloon::drawBalloon(bool dragged)
|
||||
if (parentItem()) {
|
||||
parentItem()->update();
|
||||
}
|
||||
else {
|
||||
Base::Console().Log("INFO - QGIVB::draw - no parent to update\n");
|
||||
}
|
||||
}
|
||||
|
||||
void QGIViewBalloon::setPrettyPre(void)
|
||||
|
||||
@@ -790,9 +790,6 @@ void QGIViewDimension::draw()
|
||||
//TODO: parent redraw still required with new frame/label??
|
||||
parentItem()->update();
|
||||
}
|
||||
else {
|
||||
Base::Console().Log("INFO - QGIVD::draw - no parent to update\n");
|
||||
}
|
||||
}
|
||||
|
||||
double QGIViewDimension::getAnglePlacementFactor(double testAngle, double endAngle,
|
||||
|
||||
@@ -156,7 +156,6 @@ void QGSPage::updateTemplate(bool forceUpdate)
|
||||
App::DocumentObject *templObj = m_vpPage->getDrawPage()->Template.getValue();
|
||||
// TODO: what if template has been deleted? templObj will be NULL. segfault?
|
||||
if (!templObj) {
|
||||
Base::Console().Log("INFO - QGSPage::updateTemplate - Page: %s has NO template!!\n", m_vpPage->getDrawPage()->getNameInDocument());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -383,9 +382,6 @@ bool QGSPage::attachView(App::DocumentObject *obj)
|
||||
} else if (typeId.isDerivedFrom(TechDraw::DrawHatch::getClassTypeId()) ) {
|
||||
//Hatch is not attached like other Views (since it isn't really a View)
|
||||
return true;
|
||||
|
||||
} else {
|
||||
Base::Console().Log("Logic Error - Unknown view type in QGSPage::attachView\n");
|
||||
}
|
||||
|
||||
return (qview != nullptr);
|
||||
|
||||
@@ -382,7 +382,6 @@ void QGTracker::setPathFromPoints(std::vector<QPointF> pts)
|
||||
{
|
||||
// Base::Console().Message("QGTracker::setPathFromPoints()\n");
|
||||
if (pts.empty()) {
|
||||
Base::Console().Log("QGTracker::setPathFromPoints - no pts!\n");
|
||||
return;
|
||||
}
|
||||
prepareGeometryChange();
|
||||
@@ -399,7 +398,6 @@ void QGTracker::setSquareFromPoints(std::vector<QPointF> pts)
|
||||
{
|
||||
// Base::Console().Message("QGTracker::setSquareFromPoints()\n");
|
||||
if (pts.empty()) {
|
||||
Base::Console().Log("QGTracker::setSquareFromPoints - no pts!\n");
|
||||
return;
|
||||
}
|
||||
prepareGeometryChange();
|
||||
@@ -416,7 +414,6 @@ void QGTracker::setCircleFromPoints(std::vector<QPointF> pts)
|
||||
{
|
||||
// Base::Console().Message("QGTracker::setCircleFromPoints()\n");
|
||||
if (pts.empty()) {
|
||||
Base::Console().Log("QGTracker::setCircleFromPoints - no pts!\n");
|
||||
return;
|
||||
}
|
||||
prepareGeometryChange();
|
||||
|
||||
@@ -309,7 +309,6 @@ void TaskCenterLine::createCenterLine()
|
||||
}
|
||||
|
||||
if (!cl) {
|
||||
Base::Console().Log("TCL::createCenterLine - CenterLine creation failed!\n");
|
||||
Gui::Command::abortCommand();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -414,8 +414,6 @@ void TaskComplexSection::scaleTypeChanged(int index)
|
||||
}
|
||||
}
|
||||
else {
|
||||
Base::Console().Log(
|
||||
"Error - TaskComplexSection::scaleTypeChanged - unknown scale type: %d\n", index);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -443,9 +443,7 @@ void TaskLeaderLine::removeFeature()
|
||||
if (Gui::Command::hasPendingCommand()) {
|
||||
std::vector<std::string> undos = Gui::Application::Instance->activeDocument()->getUndoVector();
|
||||
Gui::Application::Instance->activeDocument()->undo(1);
|
||||
} else {
|
||||
Base::Console().Log("TaskLeaderLine: Edit mode - NO command is active\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -263,9 +263,6 @@ void TaskProjGroup::scaleTypeChanged(int index)
|
||||
double scale = (double) a / (double) b;
|
||||
multiView->Scale.setValue(scale);
|
||||
//unblock recompute
|
||||
} else {
|
||||
Base::Console().Log("Error - TaskProjGroup::scaleTypeChanged - unknown scale type: %d\n", index);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -549,8 +546,6 @@ bool TaskProjGroup::reject()
|
||||
// Gui::Application::Instance->activeDocument()->undo(1);
|
||||
// multiView->rebuildViewList();
|
||||
// apply();
|
||||
} else {
|
||||
Base::Console().Log("TaskProjGroup: Edit mode - NO command is active\n");
|
||||
}
|
||||
}
|
||||
Gui::Command::runCommand(Gui::Command::Gui, "Gui.ActiveDocument.resetEdit()");
|
||||
|
||||
@@ -388,8 +388,6 @@ void TaskRichAnno::removeFeature()
|
||||
if (Gui::Command::hasPendingCommand()) {
|
||||
std::vector<std::string> undos = Gui::Application::Instance->activeDocument()->getUndoVector();
|
||||
Gui::Application::Instance->activeDocument()->undo(1);
|
||||
} else {
|
||||
Base::Console().Log("TaskRichAnno: Edit mode - NO command is active\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -382,8 +382,6 @@ void TaskSectionView::scaleTypeChanged(int index)
|
||||
}
|
||||
}
|
||||
else {
|
||||
Base::Console().Log("Error - TaskSectionView::scaleTypeChanged - unknown scale type: %d\n",
|
||||
index);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,9 +119,6 @@ void ViewProviderPage::attach(App::DocumentObject* pcFeat)
|
||||
m_pageName = feature->getNameInDocument();
|
||||
m_graphicsScene->setObjectName(QString::fromLocal8Bit(m_pageName.c_str()));
|
||||
}
|
||||
else {
|
||||
Base::Console().Log("VPP::attach has no Feature!\n");
|
||||
}
|
||||
}
|
||||
|
||||
void ViewProviderPage::setDisplayMode(const char* ModeName)
|
||||
@@ -526,7 +523,6 @@ TechDraw::DrawPage* ViewProviderPage::getDrawPage() const
|
||||
{
|
||||
//during redo, pcObject can become invalid, but non-zero??
|
||||
if (!pcObject) {
|
||||
Base::Console().Log("VPP::getDrawPage - no Page Object!\n");
|
||||
return nullptr;
|
||||
}
|
||||
return dynamic_cast<TechDraw::DrawPage*>(pcObject);
|
||||
|
||||
Reference in New Issue
Block a user