diff --git a/.codespellignore b/.codespellignore index 349dce909a1..326c446eb63 100644 --- a/.codespellignore +++ b/.codespellignore @@ -8,12 +8,13 @@ loosing nd nin nout +pinter pullrequest +ro serie sinc supercede sur -therefor thru toolsbox unselect diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 455a995bc1e..f31495667ea 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: codespell-project/actions-codespell@master + - uses: Slicer/actions-codespell@da9d7dca859f5c302f7fec47b3b2a4267a6891fd with: check_filenames: true skip: ".git,*.crt,*.svg,*.vtp,*DICOM-Master.json,*SlicerGeneralAnatomy.json,./CMakeLists.txt.user,./CMake/CTestCustom.cmake.in,./License.txt,./COPYRIGHT.txt,./Resources/*.h,./Base/Logic/vtkSlicerApplicationLogicRequests.h,./Base/QTCLI/vtkSlicerCLIModuleLogic.cxx,./Base/QTCore/Resources/Certs/README,./Libs/MRML/Core/vtkMRMLCoreTestingUtilities.cxx,./Libs/vtkITK/vtkITKGrowCutSegmentationImageFilter.cxx,./Libs/vtkITK/itkConstrainedValueMultiplicationImageFilter.h,./Libs/vtkITK/itkLevelTracingImageFilter.h,./Modules/CLI/ExtractSkeleton/tilg_iso_3D.cxx,./Modules/CLI/ResampleDTIVolume/itkDiffusionTensor3D*,./Modules/Loadable/Reformat/Resources/UI/qSlicerReformatModuleWidget.ui,./Utilities/Scripts/runCodespell.sh" diff --git a/Base/Python/slicer/util.py b/Base/Python/slicer/util.py index 99a54419445..7cb782225e7 100644 --- a/Base/Python/slicer/util.py +++ b/Base/Python/slicer/util.py @@ -3590,7 +3590,7 @@ def longPath(path): sysInfo = qt.QSysInfo() if sysInfo.productType() != 'windows': return path - # Skip prefixing relative paths as UNC prefix wors only on absolute paths + # Skip prefixing relative paths as UNC prefix works only on absolute paths if not qt.QDir.isAbsolutePath(path): return path # Return path as is if UNC prefix is already applied diff --git a/Base/QTGUI/qSlicerExportNodeDialog.cxx b/Base/QTGUI/qSlicerExportNodeDialog.cxx index 4bac48c55bf..be56aedfbd2 100644 --- a/Base/QTGUI/qSlicerExportNodeDialog.cxx +++ b/Base/QTGUI/qSlicerExportNodeDialog.cxx @@ -701,7 +701,7 @@ bool qSlicerExportNodeDialogPrivate::populateNodeTypeWidgetSets() nodeTypeWidgetSet->setFrameStyle(NodeTypeWidgetSet::FrameStyle::Frame); // Check if a type display name is shared with any other NodeTypeWidgetSet currently in the dialog. // Hopefully not, so we can use type display names in the label text. - // If there's a collsion, resort to using node type identifier (i.e. class name) in the label text. + // If there's a collision, resort to using node type identifier (i.e. class name) in the label text. bool typeDisplayNameCollison = false; for (const auto& otherNodeType : this->NodeTypesInDialog) { diff --git a/Docs/user_guide/data_loading_and_saving.md b/Docs/user_guide/data_loading_and_saving.md index 39236412ff7..3d0b48402ca 100644 --- a/Docs/user_guide/data_loading_and_saving.md +++ b/Docs/user_guide/data_loading_and_saving.md @@ -92,7 +92,7 @@ Surface or volumetric meshes. - [**VTK Polygonal Data**](https://vtk.org/wp-content/uploads/2015/04/file-formats.pdf) (.vtk, .vtp): Default coordinate system: LPS. Coordinate system (LPS/RAS) can be specified in header. Full color (RGB or RGBA) meshes can be read and written (color must be assigned as point scalar data of `unsigned char` type and 3 or 4 components). Texture image can be applied using "Texture model" module (in SlicerIGT extension). - [**VTK Unstructured Grid Data**](https://vtk.org/wp-content/uploads/2015/04/file-formats.pdf) (.vtk, .vtu): Volumetric mesh. Default coordinate system: LPS. Coordinate system (LPS/RAS) can be specified in header. - **STereoLithography** (.stl): Format most commonly used for 3D printing. Default coordinate system: LPS. Coordinate system (LPS/RAS) can be specified in header. -- **Wavefront OBJ** (.obj): Default coordinate system: LPS. Coordinate system (LPS/RAS) can be specified in header. Texture image can be applied using "Texture model" module (in SlicerIGT extension). The non-standard [technique of saving vertex color as additinal values after coordinates](https://web.archive.org/web/20220508010504/www.paulbourke.net/dataformats/obj/colour.html) is not supported - if vertex coloring is needed then convert to PLY, VTK, or VTP format using another software. +- **Wavefront OBJ** (.obj): Default coordinate system: LPS. Coordinate system (LPS/RAS) can be specified in header. Texture image can be applied using "Texture model" module (in SlicerIGT extension). The non-standard [technique of saving vertex color as additional values after coordinates](https://web.archive.org/web/20220508010504/www.paulbourke.net/dataformats/obj/colour.html) is not supported - if vertex coloring is needed then convert to PLY, VTK, or VTP format using another software. - **Stanford Triangle Format** (.ply): Default coordinate system: LPS. Coordinate system (LPS/RAS) can be specified in header. Full color (RGB or RGBA) meshes can be read and written (color must be assigned to vertex data in `uchar` type properties named `red`, `green`, `blue`, and optional `alpha`). Texture image can be applied using "Texture model" module (in SlicerIGT extension). - **BYU** (.byu, .g; reading only): Coordinate system: LPS. - **UCD** (.ucd; reading only): Coordinate system: LPS. diff --git a/Docs/user_guide/extensions_manager.md b/Docs/user_guide/extensions_manager.md index ced39700a01..49f311b9402 100644 --- a/Docs/user_guide/extensions_manager.md +++ b/Docs/user_guide/extensions_manager.md @@ -96,7 +96,7 @@ Extensions can be downloaded from the Extensions Catalog website and can be inst #### Install downloaded extension packages - Open Extensions manager using menu: View / Extensions manager. -- Click the "Install fom file..." button. +- Click the "Install from file..." button. - Select the the previously downloaded extension package(s). Multiple extension packages can be selected at once. - Wait for the installations to complete. - Click "Restart" button to restart the application. diff --git a/Docs/user_guide/user_interface.md b/Docs/user_guide/user_interface.md index 7bfdee65ecb..ea7639d6797 100644 --- a/Docs/user_guide/user_interface.md +++ b/Docs/user_guide/user_interface.md @@ -152,7 +152,7 @@ Default orientation axes: A = anterior, P = posterior, R = right, L = left, S = ### Slice View -Three default slice views are provided (with Red, Yellow and Green colored bars) in which Axial, Saggital, Coronal or Oblique 2D slices of volume images can be displayed. Additional generic slice views have a grey colored bar and an identifying number in their upper left corner. +Three default slice views are provided (with Red, Yellow and Green colored bars) in which Axial, Sagittal, Coronal or Oblique 2D slices of volume images can be displayed. Additional generic slice views have a grey colored bar and an identifying number in their upper left corner. ![](https://github.com/Slicer/Slicer/releases/download/docs-resources/user_interface_slice_view_controls.png) diff --git a/Libs/MRML/Core/vtkMRMLSliceCompositeNode.h b/Libs/MRML/Core/vtkMRMLSliceCompositeNode.h index 146ea22529e..7ce9cced8f8 100644 --- a/Libs/MRML/Core/vtkMRMLSliceCompositeNode.h +++ b/Libs/MRML/Core/vtkMRMLSliceCompositeNode.h @@ -211,7 +211,7 @@ class VTK_MRML_EXPORT vtkMRMLSliceCompositeNode : public vtkMRMLNode /// Get/Set a flag indicating what parameters are being manipulated /// within calls to InteractingOn() and InteractingOff(). These /// fields are used to propagate linked behaviors. This flag is a - /// bitfield, with multiple parameters OR'd to composte the + /// bitfield, with multiple parameters OR'd to compose the /// flag. Does not mark the node as Modified. void SetInteractionFlags(unsigned int); vtkGetMacro(InteractionFlags, unsigned int); diff --git a/Libs/MRML/Core/vtkMRMLUnitNode.cxx b/Libs/MRML/Core/vtkMRMLUnitNode.cxx index b5bf726dbf2..7930cb28ac3 100644 --- a/Libs/MRML/Core/vtkMRMLUnitNode.cxx +++ b/Libs/MRML/Core/vtkMRMLUnitNode.cxx @@ -224,7 +224,7 @@ const char* vtkMRMLUnitNode::GetDisplayStringFormat() strstream << "%"; strstream << "-"; // left justify strstream << "#"; // force decimal point - strstream << floor(log10(1. + fabs(this->GetMaximumValue()))); // padd + strstream << floor(log10(1. + fabs(this->GetMaximumValue()))); // pad strstream << "." << this->GetPrecision(); // decimals strstream << "g"; strstream << this->Suffix; diff --git a/Libs/MRML/Widgets/qMRMLColorPickerWidget.h b/Libs/MRML/Widgets/qMRMLColorPickerWidget.h index e13723f1135..7ae032980ed 100644 --- a/Libs/MRML/Widgets/qMRMLColorPickerWidget.h +++ b/Libs/MRML/Widgets/qMRMLColorPickerWidget.h @@ -61,7 +61,7 @@ public slots: void setCurrentColorNodeToDefault(); signals: - /// Fired wen the current color table node is selected + /// Fired when the current color table node is selected void currentColorNodeChanged(vtkMRMLNode* node); /// Fired when the user selects a color in the list. index is the selected diff --git a/Libs/MRML/Widgets/qMRMLSceneModel.cxx b/Libs/MRML/Widgets/qMRMLSceneModel.cxx index 3215cee0e20..295c8a87723 100644 --- a/Libs/MRML/Widgets/qMRMLSceneModel.cxx +++ b/Libs/MRML/Widgets/qMRMLSceneModel.cxx @@ -848,7 +848,7 @@ QStandardItem* qMRMLSceneModel::insertNode(vtkMRMLNode* node, QStandardItem* par // Insert an invalid item in the cache to indicate that the node is in the model // but we don't know its index yet. This is needed because a custom widget may be notified - // abot row insertion before insertRow() returns (and the RowCache entry is added). + // about row insertion before insertRow() returns (and the RowCache entry is added). // For example, qSlicerPresetComboBox::setIconToPreset() is called at the end of insertRow, // before the RowCache entry is added. d->RowCache[node]=QModelIndex(); diff --git a/Libs/MRML/Widgets/qMRMLTableWidget.h b/Libs/MRML/Widgets/qMRMLTableWidget.h index c9df6f1a4ac..80ad86edd97 100644 --- a/Libs/MRML/Widgets/qMRMLTableWidget.h +++ b/Libs/MRML/Widgets/qMRMLTableWidget.h @@ -54,7 +54,7 @@ class QMRML_WIDGETS_EXPORT qMRMLTableWidget : public qMRMLWidget explicit qMRMLTableWidget(QWidget* parent = nullptr); ~qMRMLTableWidget() override; - /// Get the tabl node observed by view. + /// Get the table node observed by view. vtkMRMLTableViewNode* mrmlTableViewNode()const; /// Get a reference to the underlying Table View diff --git a/Modules/CLI/CreateDICOMSeries/CreateDICOMSeries.cxx b/Modules/CLI/CreateDICOMSeries/CreateDICOMSeries.cxx index 784c983cfe4..43723f887aa 100644 --- a/Modules/CLI/CreateDICOMSeries/CreateDICOMSeries.cxx +++ b/Modules/CLI/CreateDICOMSeries/CreateDICOMSeries.cxx @@ -158,7 +158,7 @@ int DoIt( int argc, char * argv[]) } else if (modality == "SC") { - // Scondary capture, converted from non-DICOM (scanned drawings, screenshots, etc.) + // Secondary capture, converted from non-DICOM (scanned drawings, screenshots, etc.) sopClassUID = "1.2.840.10008.5.1.4.1.1.7"; // Value 3 shall identify any Image IOD specific specialization (optional), may be encoded with zero-length imageType = "ORIGINAL\\PRIMARY\\"; diff --git a/Modules/CLI/ExtractSkeleton/misc.cxx b/Modules/CLI/ExtractSkeleton/misc.cxx index 7473e355716..b2dcff2350b 100644 --- a/Modules/CLI/ExtractSkeleton/misc.cxx +++ b/Modules/CLI/ExtractSkeleton/misc.cxx @@ -12,7 +12,7 @@ ==========================================================================*/ /* - * misc.cc -- miscellaneous utitlity functions + * misc.cc -- miscellaneous utility functions * * author: msturm * created: 27 Mar 1997 diff --git a/Modules/CLI/ResampleDTIVolume/dtiprocessFiles/itkHFieldToDeformationFieldImageFilter.txx b/Modules/CLI/ResampleDTIVolume/dtiprocessFiles/itkHFieldToDeformationFieldImageFilter.txx index 48eea3b32f1..1080b6c17db 100644 --- a/Modules/CLI/ResampleDTIVolume/dtiprocessFiles/itkHFieldToDeformationFieldImageFilter.txx +++ b/Modules/CLI/ResampleDTIVolume/dtiprocessFiles/itkHFieldToDeformationFieldImageFilter.txx @@ -31,7 +31,7 @@ template void HFieldToDeformationFieldImageFilter::GenerateData() { // Superclass::GenerateInputRequestedRegion(); -// outputImage->SetRequrestedRegion(inputImage +// outputImage->SetRequestedRegion(inputImage this->AllocateOutputs(); const typename InputImageType::ConstPointer input(this->GetInput() ); diff --git a/Modules/CLI/RobustStatisticsSegmenter/SFLSRobustStatSegmentor3DLabelMap_single.txx b/Modules/CLI/RobustStatisticsSegmenter/SFLSRobustStatSegmentor3DLabelMap_single.txx index 9475a9f39f2..09dfd5253fb 100644 --- a/Modules/CLI/RobustStatisticsSegmenter/SFLSRobustStatSegmentor3DLabelMap_single.txx +++ b/Modules/CLI/RobustStatisticsSegmenter/SFLSRobustStatSegmentor3DLabelMap_single.txx @@ -50,7 +50,7 @@ CSFLSRobustStatSegmentor3DLabelMap TIndex origin = {{0, 0, 0}}; if( start != origin ) { - std::cout << "Warrning: Force mask start to be (0, 0, 0)\n"; + std::cout << "Warning: Force mask start to be (0, 0, 0)\n"; TRegion region = m_inputLabelImage->GetLargestPossibleRegion(); region.SetIndex(origin); diff --git a/Modules/CLI/RobustStatisticsSegmenter/SFLSSegmentor3D.txx b/Modules/CLI/RobustStatisticsSegmenter/SFLSSegmentor3D.txx index 2eacde5029d..772998c5dc4 100644 --- a/Modules/CLI/RobustStatisticsSegmenter/SFLSSegmentor3D.txx +++ b/Modules/CLI/RobustStatisticsSegmenter/SFLSSegmentor3D.txx @@ -73,7 +73,7 @@ CSFLSSegmentor3D TIndex origin = {{0, 0, 0}}; if( start != origin ) { - std::cout << "Warrning: Force image start to be (0, 0, 0)\n"; + std::cout << "Warning: Force image start to be (0, 0, 0)\n"; TRegion region = mp_img->GetLargestPossibleRegion(); region.SetIndex(origin); @@ -171,7 +171,7 @@ CSFLSSegmentor3D TIndex origin = {{0, 0, 0}}; if( start != origin ) { - std::cout << "Warrning: Force mask start to be (0, 0, 0)\n"; + std::cout << "Warning: Force mask start to be (0, 0, 0)\n"; TRegion region = mp_mask->GetLargestPossibleRegion(); region.SetIndex(origin); diff --git a/Modules/CLI/RobustStatisticsSegmenter/Testing/SFLSRobustStat3DTestConsole.cxx b/Modules/CLI/RobustStatisticsSegmenter/Testing/SFLSRobustStat3DTestConsole.cxx index 392ebed20b4..72af2eb43d7 100644 --- a/Modules/CLI/RobustStatisticsSegmenter/Testing/SFLSRobustStat3DTestConsole.cxx +++ b/Modules/CLI/RobustStatisticsSegmenter/Testing/SFLSRobustStat3DTestConsole.cxx @@ -87,7 +87,7 @@ int main(int argc, char* * argv) SFLSRobustStatSegmentor3DLabelMap_c seg; seg.setImage(img); - seg.setNumIter(10000); // a large enough number, s.t. will not be stopped by this creteria. + seg.setNumIter(10000); // a large enough number, s.t. will not be stopped by this criteria. seg.setMaxVolume(expectedVolume); seg.setInputLabelImage(newLabelMap); diff --git a/Modules/Loadable/Annotations/MRML/vtkMRMLAnnotationRulerNode.h b/Modules/Loadable/Annotations/MRML/vtkMRMLAnnotationRulerNode.h index b9b307555e4..1b89659de0f 100644 --- a/Modules/Loadable/Annotations/MRML/vtkMRMLAnnotationRulerNode.h +++ b/Modules/Loadable/Annotations/MRML/vtkMRMLAnnotationRulerNode.h @@ -135,7 +135,7 @@ class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationRulerNode : pu void SetDistanceAnnotationScale(double init); // Description: - // get/set the distance annotation visbility + // get/set the distance annotation visibility int GetDistanceAnnotationVisibility(); void SetDistanceAnnotationVisibility(int flag); diff --git a/Modules/Loadable/Annotations/MRMLDM/vtkMRMLAnnotationROIDisplayableManager.cxx b/Modules/Loadable/Annotations/MRMLDM/vtkMRMLAnnotationROIDisplayableManager.cxx index 5d6032d6ed3..d54977443c8 100644 --- a/Modules/Loadable/Annotations/MRMLDM/vtkMRMLAnnotationROIDisplayableManager.cxx +++ b/Modules/Loadable/Annotations/MRMLDM/vtkMRMLAnnotationROIDisplayableManager.cxx @@ -245,7 +245,7 @@ void vtkMRMLAnnotationROIDisplayableManager::OnMRMLSceneNodeRemoved(vtkMRMLNode* if (rep) { - // update actor's visbility from mrml + // update actor's visibility from mrml vtkNew actors; rep->GetActors2D(actors.GetPointer()); for (int i=0; iGetNumberOfItems(); i++) diff --git a/Modules/Loadable/Data/qSlicerSceneWriter.h b/Modules/Loadable/Data/qSlicerSceneWriter.h index 6332920b6e2..6f1551857d6 100644 --- a/Modules/Loadable/Data/qSlicerSceneWriter.h +++ b/Modules/Loadable/Data/qSlicerSceneWriter.h @@ -42,7 +42,7 @@ class Q_SLICER_QTMODULES_DATA_EXPORT qSlicerSceneWriter /// Return true if the object is handled by the writer. bool canWriteObject(vtkObject* object)const override; - /// Return a list of the supported extensions for a particuliar object. + /// Return a list of the supported extensions for a particular object. /// Please read QFileDialog::nameFilters for the allowed formats /// Example: "Image (*.jpg *.png *.tiff)", "Model (*.vtk)" QStringList extensions(vtkObject* object)const override; diff --git a/Modules/Loadable/Markups/MRML/vtkMRMLMarkupsDisplayNode.cxx b/Modules/Loadable/Markups/MRML/vtkMRMLMarkupsDisplayNode.cxx index 70a1d470fb5..4fc71824d3f 100644 --- a/Modules/Loadable/Markups/MRML/vtkMRMLMarkupsDisplayNode.cxx +++ b/Modules/Loadable/Markups/MRML/vtkMRMLMarkupsDisplayNode.cxx @@ -108,7 +108,7 @@ vtkMRMLMarkupsDisplayNode::vtkMRMLMarkupsDisplayNode() this->OccludedVisibility = false; this->OccludedOpacity = 0.3; - // Text apperarance + // Text appearance this->TextProperty = nullptr; vtkNew textProperty; textProperty->SetBackgroundOpacity(0.0); diff --git a/Modules/Loadable/Markups/Widgets/qMRMLMarkupsOptionsWidgetsFactory.cxx b/Modules/Loadable/Markups/Widgets/qMRMLMarkupsOptionsWidgetsFactory.cxx index 57f5b926632..deeb931271d 100644 --- a/Modules/Loadable/Markups/Widgets/qMRMLMarkupsOptionsWidgetsFactory.cxx +++ b/Modules/Loadable/Markups/Widgets/qMRMLMarkupsOptionsWidgetsFactory.cxx @@ -153,7 +153,7 @@ bool qMRMLMarkupsOptionsWidgetsFactory::unregisterOptionsWidget(const QString& c // Check for empty type name if (className.isEmpty()) { - qCritical() << Q_FUNC_INFO << ": options widget has no tpye name."; + qCritical() << Q_FUNC_INFO << ": options widget has no type name."; return false; } diff --git a/Modules/Loadable/Reformat/qSlicerReformatModuleWidget.cxx b/Modules/Loadable/Reformat/qSlicerReformatModuleWidget.cxx index e4f7742ebdc..df3bdb7a6ea 100644 --- a/Modules/Loadable/Reformat/qSlicerReformatModuleWidget.cxx +++ b/Modules/Loadable/Reformat/qSlicerReformatModuleWidget.cxx @@ -670,7 +670,7 @@ onSliderRotationChanged(double rotation) d->resetSlider(d->PASlider); d->resetSlider(d->ISSlider); - // Rotate on LR given the angle with the last value reccorded + // Rotate on LR given the angle with the last value recorded transform->RotateX(rotation-d->LastRotationValues[axisX]); // Update last value and apply the transform @@ -682,7 +682,7 @@ onSliderRotationChanged(double rotation) d->resetSlider(d->LRSlider); d->resetSlider(d->ISSlider); - // Rotate on PA given the angle with the last value reccorded + // Rotate on PA given the angle with the last value recorded transform->RotateY(rotation-d->LastRotationValues[axisY]); // Update last value and apply the transform @@ -694,7 +694,7 @@ onSliderRotationChanged(double rotation) d->resetSlider(d->LRSlider); d->resetSlider(d->PASlider); - // Rotate on PA given the angle with the last value reccorded + // Rotate on PA given the angle with the last value recorded transform->RotateZ(rotation-d->LastRotationValues[axisZ]); // Update last value and apply the transform diff --git a/Modules/Loadable/Segmentations/EditorEffects/Python/SegmentEditorIslandsEffect.py b/Modules/Loadable/Segmentations/EditorEffects/Python/SegmentEditorIslandsEffect.py index b27108a75fd..d4d675393e7 100644 --- a/Modules/Loadable/Segmentations/EditorEffects/Python/SegmentEditorIslandsEffect.py +++ b/Modules/Loadable/Segmentations/EditorEffects/Python/SegmentEditorIslandsEffect.py @@ -178,7 +178,7 @@ def splitSegments(self, minimumSize=0, maxNumberOfSegments=0, split=True): slicer.vtkSlicerSegmentationsModuleLogic.GetAllLabelValues(labelValues, islandImage) # Erase segment from in original labelmap. - # Individuall islands will be added back later. + # Individual islands will be added back later. threshold = vtk.vtkImageThreshold() threshold.SetInputData(selectedSegmentLabelmap) threshold.ThresholdBetween(0, 0) diff --git a/Modules/Loadable/Segmentations/EditorEffects/qSlicerSegmentEditorAbstractEffect.cxx b/Modules/Loadable/Segmentations/EditorEffects/qSlicerSegmentEditorAbstractEffect.cxx index dd70b025730..af20666afc6 100644 --- a/Modules/Loadable/Segmentations/EditorEffects/qSlicerSegmentEditorAbstractEffect.cxx +++ b/Modules/Loadable/Segmentations/EditorEffects/qSlicerSegmentEditorAbstractEffect.cxx @@ -1220,7 +1220,7 @@ vtkOrientedImageData* qSlicerSegmentEditorAbstractEffect::defaultModifierLabelma { Q_D(qSlicerSegmentEditorAbstractEffect); bool success = false; - emit d->updateVolumeSignal(d->ModifierLabelmap.GetPointer(), success); // this resets the labelmap and cleares it + emit d->updateVolumeSignal(d->ModifierLabelmap.GetPointer(), success); // this resets the labelmap and clears it if (!success) { return nullptr; diff --git a/Modules/Loadable/Segmentations/EditorEffects/qSlicerSegmentEditorPaintEffect.cxx b/Modules/Loadable/Segmentations/EditorEffects/qSlicerSegmentEditorPaintEffect.cxx index 74acac5462b..0ef73c08d67 100644 --- a/Modules/Loadable/Segmentations/EditorEffects/qSlicerSegmentEditorPaintEffect.cxx +++ b/Modules/Loadable/Segmentations/EditorEffects/qSlicerSegmentEditorPaintEffect.cxx @@ -1456,14 +1456,14 @@ void qSlicerSegmentEditorPaintEffect::setupOptionsFrame() d->ColorSmudgeCheckbox = new QCheckBox("Color smudge"); d->ColorSmudgeCheckbox->setToolTip("Select segment by sampling the pixel location" - "where the brush stroke starts. If brush stroke starts in an empty area then the brush erases highighted region from the selected segment."); + "where the brush stroke starts. If brush stroke starts in an empty area then the brush erases highlighted region from the selected segment."); if (!this->m_AlwaysErase) { hbox->addWidget(d->ColorSmudgeCheckbox); } d->EraseAllSegmentsCheckbox = new QCheckBox("Erase all segments"); - d->EraseAllSegmentsCheckbox->setToolTip("If not checked then highighted area is erased" + d->EraseAllSegmentsCheckbox->setToolTip("If not checked then highlighted area is erased" " from all segments. If unchecked then only area is only erased from selected segment."); if (this->m_AlwaysErase) { diff --git a/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.cxx b/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.cxx index 531ccb44687..1a625c21e6d 100644 --- a/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.cxx +++ b/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.cxx @@ -2167,7 +2167,7 @@ void qMRMLSegmentEditorWidget::onRemoveSegment() d->SegmentationHistory->SaveState(); // Switch to a new valid segment now (to avoid transient state when no segments are selected - // as it could inactivate current effect). + // as it could deactivate current effect). vtkSegmentation* segmentation = segmentationNode->GetSegmentation(); std::vector< std::string > segmentIDs; segmentation->GetSegmentIDs(segmentIDs); diff --git a/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentsTableView.cxx b/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentsTableView.cxx index 54a96646bc9..fe674c18fc7 100644 --- a/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentsTableView.cxx +++ b/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentsTableView.cxx @@ -753,7 +753,7 @@ void qMRMLSegmentsTableView::setSelectedSegmentIDs(QStringList segmentIDs) flags.setFlag(itemSelectionFlag); flags.setFlag(QItemSelectionModel::Rows); d->SegmentsTable->selectionModel()->select(index, flags); - // Afther the first segment, we append to the current selection + // After the first segment, we append to the current selection itemSelectionFlag = QItemSelectionModel::Select; } diff --git a/Modules/Loadable/Volumes/qSlicerVolumesReader.cxx b/Modules/Loadable/Volumes/qSlicerVolumesReader.cxx index 3e41db81eba..f1f2f637fba 100644 --- a/Modules/Loadable/Volumes/qSlicerVolumesReader.cxx +++ b/Modules/Loadable/Volumes/qSlicerVolumesReader.cxx @@ -218,7 +218,7 @@ bool qSlicerVolumesReader::examineFileInfoList(QFileInfoList &fileInfoList, QFil { // - // Check each file to see if it's recognzied as part of a series. If so, + // Check each file to see if it's recognized as part of a series. If so, // keep it as the archetype and remove all the others from the list // foreach(QFileInfo fileInfo, fileInfoList) diff --git a/Modules/Scripted/DICOM/DICOM.py b/Modules/Scripted/DICOM/DICOM.py index db5b3e1fa05..6912e8b27e5 100644 --- a/Modules/Scripted/DICOM/DICOM.py +++ b/Modules/Scripted/DICOM/DICOM.py @@ -470,7 +470,7 @@ def createDefaultDatabase(): """If DICOM database is invalid then try to create a default one. If fails then show an error message. This method should only be used when user initiates DICOM import on the GUI, because the error message is shown in a popup, which would block execution of auomated processing scripts. - Returns True if a valid DICOM database is available (has been created succussfully or it was already available). + Returns True if a valid DICOM database is available (has been created successfully or it was already available). """ if slicer.dicomDatabase and slicer.dicomDatabase.isOpen: # Valid DICOM database already exists diff --git a/Modules/Scripted/DICOMPlugins/DICOMScalarVolumePlugin.py b/Modules/Scripted/DICOMPlugins/DICOMScalarVolumePlugin.py index 48e351ffcd5..c0f490d5a63 100644 --- a/Modules/Scripted/DICOMPlugins/DICOMScalarVolumePlugin.py +++ b/Modules/Scripted/DICOMPlugins/DICOMScalarVolumePlugin.py @@ -820,7 +820,7 @@ def cornersToWorld(self, volumeNode, corners): def createAcquisitionTransform(self, volumeNode, addAcquisitionTransformIfNeeded=True): """Creates the actual transform if needed. - Slice corners are cached for inpection by tests + Slice corners are cached for inspection by tests """ self.originalCorners = self.sliceCornersFromIJKToRAS(volumeNode) self.targetCorners = self.sliceCornersFromDICOM(volumeNode) diff --git a/Utilities/Doxygen/Doxyfile.txt.in b/Utilities/Doxygen/Doxyfile.txt.in index d5a208dc232..ff6c543a1ee 100644 --- a/Utilities/Doxygen/Doxyfile.txt.in +++ b/Utilities/Doxygen/Doxyfile.txt.in @@ -985,7 +985,7 @@ HTML_STYLESHEET = # user-defined cascading style sheet that is included after the standard # style sheets created by doxygen. Using this option one can overrule # certain style aspects. This is preferred over using HTML_STYLESHEET -# since it does not replace the standard style sheet and is therefor more +# since it does not replace the standard style sheet and is therefore more # robust against future updates. Doxygen will copy the style sheet file to # the output directory. diff --git a/Utilities/Scripts/SlicerWizard/TemplateManager.py b/Utilities/Scripts/SlicerWizard/TemplateManager.py index 6d5cd5a160e..0b997ffe6f1 100644 --- a/Utilities/Scripts/SlicerWizard/TemplateManager.py +++ b/Utilities/Scripts/SlicerWizard/TemplateManager.py @@ -397,6 +397,6 @@ def parseArguments(self, args): for tk in args.templateKey: tkParts = tk.split("=") if len(tkParts) != 2: - die("template key '%s' malformatted: expected 'NAME=KEY'" % tk) + die("template key '%s' malformed: expected 'NAME=KEY'" % tk) self.setKey(tkParts[0].lower(), tkParts[1])