Fix various (doxy) typos and whitespace issues
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,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`
This commit is contained in:
@@ -587,7 +587,7 @@ void Gui::GuiNativeEvent::On3dmouseInput()
|
||||
motionData[axis] *= mouseData2Rotation;
|
||||
}
|
||||
|
||||
// Now that the data has had the filters and sensitivty settings applied
|
||||
// Now that the data has had the filters and sensitivity settings applied
|
||||
// calculate the displacements since the last view update
|
||||
for (int axis = 0; axis < 6; axis++) {
|
||||
motionData[axis] *= dwElapsedTime;
|
||||
|
||||
@@ -706,7 +706,7 @@ void Application::slotNewDocument(const App::Document& Doc, bool isMainDoc)
|
||||
if(isMainDoc)
|
||||
pDoc->createView(View3DInventor::getClassTypeId());
|
||||
// FIXME: Do we really need this further? Calling processEvents() mixes up order of execution in an
|
||||
// unpredicatable way. At least it seems that with Qt5 we don't need this any more.
|
||||
// unpredictable way. At least it seems that with Qt5 we don't need this any more.
|
||||
#if QT_VERSION < 0x050000
|
||||
// qApp->processEvents(); // make sure to show the window stuff on the right place
|
||||
#endif
|
||||
|
||||
@@ -112,7 +112,7 @@ public:
|
||||
*/
|
||||
QPixmap merge(const QPixmap& p1, const QPixmap& p2, bool vertical) const;
|
||||
/** Merges the two pixmaps \a p1 and \a p2 to one pixmap.
|
||||
* The position of the smaller pimxap \a p2 is drawn into the given
|
||||
* The position of the smaller pixmap \a p2 is drawn into the given
|
||||
* position \a pos of the bigger pixmap \a p1. This method does not
|
||||
* resize the resulting pixmap.
|
||||
*/
|
||||
|
||||
@@ -1418,7 +1418,7 @@ void PythonGroupCommand::activated(int iMsg)
|
||||
// text change. The net effect is that the GUI won't change by user
|
||||
// inovking command through runCommandByName()
|
||||
#if 0
|
||||
// Since the default icon is reset when enabing/disabling the command we have
|
||||
// Since the default icon is reset when enabling/disabling the command we have
|
||||
// to explicitly set the icon of the used command.
|
||||
pcAction->setIcon(a[iMsg]->icon());
|
||||
#endif
|
||||
|
||||
@@ -70,7 +70,7 @@ private:
|
||||
//@{
|
||||
QPushButton* buttonHelp; /**< the help button */
|
||||
QPushButton* buttonClose; /**< the cancel button */
|
||||
QTabWidget* tabWidget; /**< tab wigdets containing all pages */
|
||||
QTabWidget* tabWidget; /**< tab widgets containing all pages */
|
||||
QGridLayout* customLayout; /**< layout */
|
||||
QHBoxLayout* layout; /** horizontal layout */
|
||||
static QList<QByteArray> _pages; /**< Name of all registered preference pages */
|
||||
|
||||
@@ -991,7 +991,7 @@ bool Document::save(void)
|
||||
if(docs.size()>1) {
|
||||
int ret = QMessageBox::question(getMainWindow(),
|
||||
QObject::tr("Save dependent files"),
|
||||
QObject::tr("The file contain external depencencies. "
|
||||
QObject::tr("The file contains external dependencies. "
|
||||
"Do you want to save the dependent files, too?"),
|
||||
QMessageBox::Yes,QMessageBox::No);
|
||||
if (ret != QMessageBox::Yes) {
|
||||
@@ -2239,4 +2239,3 @@ void Document::slotChangePropertyEditor(const App::Document &doc, const App::Pro
|
||||
setModified(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -177,14 +177,14 @@ Q_SIGNALS:
|
||||
/** gets emitted if the user has entered a VALID input
|
||||
* Valid means the user inputted string obeys all restrictions
|
||||
* like: minimum, maximum and/or the right Unit (if specified).
|
||||
* If you want the unfiltered/unvalidated input use textChanged(const QString&)
|
||||
* If you want the unfiltered/non-validated input use textChanged(const QString&)
|
||||
* instead:
|
||||
*/
|
||||
void valueChanged(const Base::Quantity&);
|
||||
/** gets emitted if the user has entered a VALID input
|
||||
* Valid means the user inputted string obeys all restrictions
|
||||
* like: minimum, maximum and/or the right Unit (if specified).
|
||||
* If you want the unfiltered/unvalidated input use textChanged(const QString&)
|
||||
* If you want the unfiltered/non-validated input use textChanged(const QString&)
|
||||
* instead:
|
||||
*/
|
||||
void valueChanged(double);
|
||||
|
||||
@@ -680,7 +680,7 @@ bool SoFCUnifiedSelection::setSelection(const std::vector<PickedInfo> &infos, bo
|
||||
return true;
|
||||
}
|
||||
|
||||
// Hierarchy acending
|
||||
// Hierarchy ascending
|
||||
//
|
||||
// If the clicked subelement is already selected, check if there is an
|
||||
// upper hierarchy, and select that hierarchy instead.
|
||||
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
/// set the TaskSelectLinkProperty active, means setting the selection and control it
|
||||
void activate(void);
|
||||
|
||||
/// call this to accept the changes the user has made and send back to the Propterty (Ok)
|
||||
/// call this to accept the changes the user has made and send back to the Property (Ok)
|
||||
bool accept(void);
|
||||
/// This discards the changes of the user and leaves the Property untouched (Cancel)
|
||||
bool reject(void);
|
||||
|
||||
@@ -2708,7 +2708,7 @@ void TreeWidget::onItemSelectionChanged ()
|
||||
if(TreeParams::Instance()->RecordSelection())
|
||||
Gui::Selection().selStackPush();
|
||||
|
||||
// This special handling to deal with possible discrepency of
|
||||
// This special handling to deal with possible discrepancy of
|
||||
// Gui.Selection and Tree view selection because of newly added
|
||||
// DocumentObject::redirectSubName()
|
||||
Selection().clearCompleteSelection();
|
||||
@@ -4883,4 +4883,3 @@ TreeWidget *DocumentObjectItem::getTree() const{
|
||||
}
|
||||
|
||||
#include "moc_Tree.cpp"
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ class SoFCBoundingBox;
|
||||
class View3DInventorViewer;
|
||||
|
||||
/**
|
||||
* The base class for all view providers that display geometric data, like mesh, point cloudes and shapes.
|
||||
* The base class for all view providers that display geometric data, like mesh, point clouds and shapes.
|
||||
* @author Werner Mayer
|
||||
*/
|
||||
class GuiExport ViewProviderGeometryObject : public ViewProviderDragger
|
||||
@@ -106,4 +106,3 @@ protected:
|
||||
|
||||
|
||||
#endif // GUI_VIEWPROVIDER_GEOMETRYOBJECT_H
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ getElementColors(elementName=None) -> dict(elementName:color)
|
||||
<UserDocu>
|
||||
setElementColors(colors): set element colors
|
||||
|
||||
colors: color dictonary of type elementName:(r,g,b,a)
|
||||
colors: color dictionary of type elementName:(r,g,b,a)
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
|
||||
@@ -456,7 +456,7 @@ PyObject* ViewProviderPy::setElementColors(PyObject* args)
|
||||
for(auto it=dict.begin();it!=dict.end();++it) {
|
||||
const auto &value = *it;
|
||||
if(!value.first.isString() || !value.second.isSequence())
|
||||
throw Py::TypeError("Expect the dictonary contain items of type elementName:(r,g,b,a)");
|
||||
throw Py::TypeError("Expect the dictionary to contain items of type elementName:(r,g,b,a)");
|
||||
|
||||
App::PropertyColor prop;
|
||||
prop.setPyObject(value.second.ptr());
|
||||
|
||||
Reference in New Issue
Block a user