From ecc61ba7845b36dab458499b04b1c5a577ee1738 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 28 Apr 2013 14:31:12 +0200 Subject: [PATCH] Fix typo --- src/Gui/SplitView3DInventor.cpp | 6 +++--- src/Gui/View3DInventor.cpp | 6 +++--- src/Gui/View3DInventorViewer.cpp | 14 +++++++------- src/Gui/View3DInventorViewer.h | 12 ++++++------ 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Gui/SplitView3DInventor.cpp b/src/Gui/SplitView3DInventor.cpp index 102cb781e..33879ffb2 100644 --- a/src/Gui/SplitView3DInventor.cpp +++ b/src/Gui/SplitView3DInventor.cpp @@ -204,7 +204,7 @@ void AbstractSplitView::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp } else if (strcmp(Reason,"Gradient") == 0) { for (std::vector::iterator it = _viewer.begin(); it != _viewer.end(); ++it) - (*it)->setGradientBackgroud((rGrp.GetBool("Gradient",true))); + (*it)->setGradientBackground((rGrp.GetBool("Gradient",true))); } else if (strcmp(Reason,"UseAntialiasing") == 0) { for (std::vector::iterator it = _viewer.begin(); it != _viewer.end(); ++it) @@ -238,9 +238,9 @@ void AbstractSplitView::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp for (std::vector::iterator it = _viewer.begin(); it != _viewer.end(); ++it) { (*it)->setBackgroundColor(SbColor(r1, g1, b1)); if (rGrp.GetBool("UseBackgroundColorMid",false) == false) - (*it)->setGradientBackgroudColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3)); + (*it)->setGradientBackgroundColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3)); else - (*it)->setGradientBackgroudColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3), SbColor(r4, g4, b4)); + (*it)->setGradientBackgroundColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3), SbColor(r4, g4, b4)); } } } diff --git a/src/Gui/View3DInventor.cpp b/src/Gui/View3DInventor.cpp index e1a44f3d7..01e5fa115 100644 --- a/src/Gui/View3DInventor.cpp +++ b/src/Gui/View3DInventor.cpp @@ -307,7 +307,7 @@ void View3DInventor::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp::M _viewer->setAnimationEnabled(rGrp.GetBool("UseAutoRotation",true)); } else if (strcmp(Reason,"Gradient") == 0) { - _viewer->setGradientBackgroud((rGrp.GetBool("Gradient",true))); + _viewer->setGradientBackground((rGrp.GetBool("Gradient",true))); } else if (strcmp(Reason,"UseAntialiasing") == 0) { _viewer->getGLRenderAction()->setSmoothing(rGrp.GetBool("UseAntialiasing",false)); @@ -357,9 +357,9 @@ void View3DInventor::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp::M r4 = ((col4 >> 24) & 0xff) / 255.0; g4 = ((col4 >> 16) & 0xff) / 255.0; b4 = ((col4 >> 8) & 0xff) / 255.0; _viewer->setBackgroundColor(SbColor(r1, g1, b1)); if (rGrp.GetBool("UseBackgroundColorMid",false) == false) - _viewer->setGradientBackgroudColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3)); + _viewer->setGradientBackgroundColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3)); else - _viewer->setGradientBackgroudColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3), SbColor(r4, g4, b4)); + _viewer->setGradientBackgroundColor(SbColor(r2, g2, b2), SbColor(r3, g3, b3), SbColor(r4, g4, b4)); } } diff --git a/src/Gui/View3DInventorViewer.cpp b/src/Gui/View3DInventorViewer.cpp index f5dc4e8d3..c53e8b566 100644 --- a/src/Gui/View3DInventorViewer.cpp +++ b/src/Gui/View3DInventorViewer.cpp @@ -258,7 +258,7 @@ View3DInventorViewer::View3DInventorViewer (QWidget *parent, const char *name, setViewing(false); setBackgroundColor(SbColor(0.1f, 0.1f, 0.1f)); - setGradientBackgroud(true); + setGradientBackground(true); // set some callback functions for user interaction addStartCallback(interactionStartCB); @@ -420,7 +420,7 @@ void View3DInventorViewer::handleEventCB(void * ud, SoEventCallback * n) SoGLWidgetElement::set(action->getState(), qobject_cast(that->getGLWidget())); } -void View3DInventorViewer::setGradientBackgroud(bool on) +void View3DInventorViewer::setGradientBackground(bool on) { if (on && backgroundroot->findChild(pcBackGround) == -1) backgroundroot->addChild(pcBackGround); @@ -428,15 +428,15 @@ void View3DInventorViewer::setGradientBackgroud(bool on) backgroundroot->removeChild(pcBackGround); } -void View3DInventorViewer::setGradientBackgroudColor(const SbColor& fromColor, - const SbColor& toColor) +void View3DInventorViewer::setGradientBackgroundColor(const SbColor& fromColor, + const SbColor& toColor) { pcBackGround->setColorGradient(fromColor, toColor); } -void View3DInventorViewer::setGradientBackgroudColor(const SbColor& fromColor, - const SbColor& toColor, - const SbColor& midColor) +void View3DInventorViewer::setGradientBackgroundColor(const SbColor& fromColor, + const SbColor& toColor, + const SbColor& midColor) { pcBackGround->setColorGradient(fromColor, toColor, midColor); } diff --git a/src/Gui/View3DInventorViewer.h b/src/Gui/View3DInventorViewer.h index 072f2a0bd..8b2e295fb 100644 --- a/src/Gui/View3DInventorViewer.h +++ b/src/Gui/View3DInventorViewer.h @@ -254,12 +254,12 @@ public: */ void viewSelection(); - void setGradientBackgroud(bool b); - void setGradientBackgroudColor(const SbColor& fromColor, - const SbColor& toColor); - void setGradientBackgroudColor(const SbColor& fromColor, - const SbColor& toColor, - const SbColor& midColor); + void setGradientBackground(bool b); + void setGradientBackgroundColor(const SbColor& fromColor, + const SbColor& toColor); + void setGradientBackgroundColor(const SbColor& fromColor, + const SbColor& toColor, + const SbColor& midColor); void setEnabledFPSCounter(bool b); void setNavigationType(Base::Type); NavigationStyle* navigationStyle() const;