Fix typos and whitespace
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,anormal,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childrens,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,itsel,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oce,oder,ontop,orgin,orginx,orginy,ot,pard,parm,parms,pres,programm,que,rady,recurrance,ro,rougly,seperator,serie,sinc,siz,strack,substraction,te,technic,thist,thru,tread,uint,unter,uptodate,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml,./src/Base/StackWalker.cpp,./build/doc/SourceDocu`
@@ -70,7 +70,7 @@ DrawProjGroup::DrawProjGroup()
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter().GetGroup("BaseApp")->
|
||||
GetGroup("Preferences")->GetGroup("Mod/TechDraw/General");
|
||||
bool autoDist = hGrp->GetBool("AutoDist",true);
|
||||
|
||||
|
||||
ADD_PROPERTY_TYPE(Source, (nullptr), group, App::Prop_None, "Shape to view");
|
||||
Source.setScope(App::LinkScope::Global);
|
||||
Source.setAllowExternal(true);
|
||||
@@ -268,7 +268,7 @@ bool DrawProjGroup::checkFit() const
|
||||
{
|
||||
// Base::Console().Message("DPG::checkFit() - %s\n", getNameInDocument());
|
||||
if (waitingForChildren()) {
|
||||
//assume everything fits since we don't know what size the chilren are
|
||||
//assume everything fits since we don't know what size the children are
|
||||
return true;
|
||||
}
|
||||
auto page = findParentPage();
|
||||
@@ -348,7 +348,7 @@ void DrawProjGroup::getViewArea(DrawProjGroupItem *viewPtrs[10],
|
||||
// Get the child view bounding boxes
|
||||
Base::BoundBox3d bboxes[10];
|
||||
makeViewBbs(viewPtrs, bboxes, scaled);
|
||||
|
||||
|
||||
//TODO: note that TLF/TRF/BLF,BRF extend a bit farther than a strict row/col arrangement would suggest.
|
||||
//get widest view in each row/column
|
||||
double col0w = std::max(std::max(bboxes[0].LengthX(), bboxes[3].LengthX()), bboxes[7].LengthX()),
|
||||
@@ -514,7 +514,7 @@ int DrawProjGroup::removeProjection(const char *viewProjType)
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
//removes all DPGI - used when deleting DPG
|
||||
int DrawProjGroup::purgeProjections()
|
||||
@@ -576,7 +576,7 @@ std::pair<Base::Vector3d,Base::Vector3d> DrawProjGroup::getDirsFromFront(std::st
|
||||
gp_Ax2 newCS;
|
||||
gp_Dir gNewDir;
|
||||
gp_Dir gNewXDir;
|
||||
|
||||
|
||||
double angle = M_PI / 2.0; //90*
|
||||
|
||||
if (viewType == "Right") {
|
||||
|
||||
@@ -587,7 +587,7 @@ void BaseGeom::intersectionLL(TechDraw::BaseGeomPtr geom1,
|
||||
// Taken from: <http://de.wikipedia.org/wiki/Schnittpunkt>
|
||||
TechDraw::GenericPtr gen1 = std::static_pointer_cast<TechDraw::Generic>(geom1);
|
||||
TechDraw::GenericPtr gen2 = std::static_pointer_cast<TechDraw::Generic>(geom2);
|
||||
// we calculate vectors to start points and direction verctors
|
||||
// we calculate vectors to start points and direction vectors
|
||||
Base::Vector3d startPnt1 = gen1->points.at(0);
|
||||
Base::Vector3d endPnt1 = gen1->points.at(1);
|
||||
Base::Vector3d startPnt2 = gen2->points.at(0);
|
||||
|
||||
@@ -48,7 +48,7 @@ DlgPrefsTechDrawAnnotationImp::DlgPrefsTechDrawAnnotationImp( QWidget* parent )
|
||||
ui->setupUi(this);
|
||||
ui->pdsbBalloonKink->setUnit(Base::Unit::Length);
|
||||
ui->pdsbBalloonKink->setMinimum(0);
|
||||
|
||||
|
||||
// connect the LineGroup the update the tooltip if index changed
|
||||
connect(ui->pcbLineGroup, SIGNAL(currentIndexChanged(int)),
|
||||
this, SLOT(onLineGroupChanged(int)));
|
||||
@@ -98,7 +98,7 @@ void DlgPrefsTechDrawAnnotationImp::loadSettings()
|
||||
for (auto it = lgNames.begin(); it < lgNames.end(); ++it) {
|
||||
ui->pcbLineGroup->addItem(tr((*it).c_str()));
|
||||
}
|
||||
|
||||
|
||||
ui->cbAutoHoriz->onRestore();
|
||||
ui->cbPrintCenterMarks->onRestore();
|
||||
ui->cbPyramidOrtho->onRestore();
|
||||
@@ -147,7 +147,7 @@ void DlgPrefsTechDrawAnnotationImp::onLineGroupChanged(int index)
|
||||
ui->pcbLineGroup->setToolTip(QObject::tr("Please select a Line Group"));
|
||||
return;
|
||||
}
|
||||
// get the definition the the selected LineGroup (includes the name)
|
||||
// get the definition of the selected LineGroup (includes the name)
|
||||
std::string lgRecord = LineGroup::getRecordFromFile(Preferences::lineGroupFile(), index);
|
||||
std::stringstream ss(lgRecord);
|
||||
std::vector<std::string> lgNames;
|
||||
|
||||
@@ -275,7 +275,7 @@ e">
|
||||
<polygon points="598,828 606,828 602,834" />
|
||||
</g>
|
||||
|
||||
<g id="bunding hole">
|
||||
<g id="binding hole">
|
||||
<g stroke="black" stroke-width="0.5" fill="#BBBBBB" stroke="#666666" >
|
||||
<circle cx="10" cy="571.5" r="3" />
|
||||
<circle cx="10" cy="609.5" r="3" />
|
||||
|
||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
@@ -253,7 +253,7 @@ e">
|
||||
<polygon points="423.99998,581 432.49998,581 427.99998,587" />
|
||||
</g>
|
||||
|
||||
<g id="bunding hole">
|
||||
<g id="binding hole">
|
||||
<g stroke="black" stroke-width="0.5" fill="#BBBBBB" stroke="#666666" >
|
||||
<circle cx="10" cy="324.5" r="3" />
|
||||
<circle cx="10" cy="362.5" r="3" />
|
||||
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@@ -233,7 +233,7 @@ nter;fill:#000000;"><tspan></tspan></text>
|
||||
<path d="m 354.5,410 v 5" />
|
||||
</g>
|
||||
|
||||
<g id="bunding hole">
|
||||
<g id="binding hole">
|
||||
<g stroke="black" stroke-width="0.5" fill="#BBBBBB" stroke="#666666" >
|
||||
<circle cx="10" cy="150.5" r="3" />
|
||||
<circle cx="10" cy="188.5" r="3" />
|
||||
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@@ -183,7 +183,7 @@
|
||||
<!-- project mark end -->
|
||||
</g>
|
||||
|
||||
<g id="bunding hole">
|
||||
<g id="binding hole">
|
||||
<g stroke="black" stroke-width="0.5" fill="#BBBBBB" stroke="#666666" >
|
||||
<circle cx="10" cy="27.5" r="3" />
|
||||
<circle cx="10" cy="65.5" r="3" />
|
||||
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@@ -166,7 +166,7 @@
|
||||
</g>
|
||||
|
||||
<!--
|
||||
<g id="bunding hole">
|
||||
<g id="binding hole">
|
||||
<g stroke="black" stroke-width="0.5" fill="#BBBBBB" stroke="#888888" >
|
||||
<circle cx="12.5" cy="25" r="3" />
|
||||
<circle cx="12.5" cy="105" r="3" />
|
||||
|
||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
@@ -188,7 +188,7 @@
|
||||
<!-- project mark end -->
|
||||
</g>
|
||||
|
||||
<g id="bunding hole">
|
||||
<g id="binding hole">
|
||||
<g stroke="black" stroke-width="0.5" fill="#BBBBBB" stroke="#666666" >
|
||||
<circle cx="10" cy="150.5" r="3" />
|
||||
<circle cx="10" cy="188.5" r="3" />
|
||||
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@@ -167,7 +167,7 @@
|
||||
<!-- project mark end -->
|
||||
</g>
|
||||
|
||||
<g id="bunding hole">
|
||||
<g id="binding hole">
|
||||
<g stroke="black" stroke-width="0.5" fill="#BBBBBB" stroke="#666666" >
|
||||
<circle cx="10" cy="27.5" r="3" />
|
||||
<circle cx="10" cy="65.5" r="3" />
|
||||
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |