From 35e409e9263e317e51f14cedb925f1848242631b Mon Sep 17 00:00:00 2001 From: luz paz Date: Wed, 7 Jul 2021 21:39:28 -0400 Subject: [PATCH] fix various typos Found via `codespell -q 3 -S *.ts,thirdparty, -L appy,ba,inbetween,inout,pevent,possibile,upto` --- doc/how_to_build_linux.md | 2 +- plugins/geom/geom.cpp | 2 +- plugins/multiplugin/multi.cpp | 2 +- stuff/doc/TileIwa.html | 2 +- stuff/doc/español/TileIwa.html | 2 +- stuff/doc/日本語/TileIwa.html | 2 +- stuff/library/mypaint brushes/deevad/readme.txt | 2 +- stuff/library/shaders/readme.txt | 2 +- toonz/sources/common/tapptools/tcolorutils.cpp | 2 +- toonz/sources/common/tapptools/tenv.cpp | 2 +- toonz/sources/common/tcache/timagecache.cpp | 10 +++++----- toonz/sources/common/tcore/tthread.cpp | 8 ++++---- toonz/sources/common/tfx/tcacheresource.cpp | 4 ++-- toonz/sources/common/tfx/tfxcachemanager.cpp | 2 +- toonz/sources/common/tgl/tstencilcontrol.cpp | 4 ++-- toonz/sources/common/tiio/bmp/filebmp.c | 8 ++++---- toonz/sources/common/tiio/tiio_jpg_exif.cpp | 2 +- toonz/sources/common/traster/traster.cpp | 2 +- toonz/sources/common/trop/borders_extractor.h | 2 +- toonz/sources/common/trop/runsmap.h | 4 ++-- toonz/sources/common/trop/terodilate.cpp | 2 +- toonz/sources/common/trop/tresample.cpp | 4 ++-- toonz/sources/common/trop/tropcm.cpp | 2 +- toonz/sources/common/tstream/tstream.cpp | 2 +- toonz/sources/common/tsystem/tfilepath_io.cpp | 4 ++-- toonz/sources/common/tsystem/tsystem.cpp | 2 +- toonz/sources/common/tsystem/tsystempd.cpp | 4 ++-- .../common/tvectorimage/tcomputeregions.cpp | 4 ++-- toonz/sources/common/tvectorimage/tstroke.cpp | 2 +- toonz/sources/common/tvectorimage/tvectorimage.cpp | 4 ++-- toonz/sources/common/tvrender/tellipticbrush.cpp | 8 ++++---- toonz/sources/common/tvrender/tellipticbrushP.h | 4 ++-- toonz/sources/common/tvrender/tfont_qt.cpp | 2 +- toonz/sources/common/tvrender/tpalette.cpp | 4 ++-- toonz/sources/common/tvrender/tstrokeutil.cpp | 2 +- toonz/sources/common/tvrender/tvectorbrush.cpp | 2 +- toonz/sources/include/avicodecrestrictions.h | 4 ++-- toonz/sources/include/drawutil.h | 2 +- toonz/sources/include/ext/LinearPotential.h | 2 +- toonz/sources/include/ext/StrokeDeformation.h | 2 +- toonz/sources/include/ext/meshtexturizer.h | 4 ++-- toonz/sources/include/ext/plasticdeformerstorage.h | 2 +- toonz/sources/include/stdfx/shadingcontext.h | 2 +- toonz/sources/include/tcg/pool.h | 4 ++-- toonz/sources/include/tcommon.h | 2 +- toonz/sources/include/tfont.h | 2 +- toonz/sources/include/tfxcachemanager.h | 4 ++-- toonz/sources/include/tgeometry.h | 6 +++--- toonz/sources/include/tiio_jpg_exif.h | 2 +- toonz/sources/include/tmathutil.h | 2 +- toonz/sources/include/tmsgcore.h | 2 +- toonz/sources/include/tools/levelselection.h | 4 ++-- toonz/sources/include/tools/tool.h | 2 +- toonz/sources/include/tools/tooloptions.h | 2 +- toonz/sources/include/toonz/boardsettings.h | 2 +- toonz/sources/include/toonz/doubleparamcmd.h | 4 ++-- .../include/toonz/expressionreferencemonitor.h | 2 +- toonz/sources/include/toonz/fill.h | 2 +- toonz/sources/include/toonz/ikjacobian.h | 4 ++-- toonz/sources/include/toonz/imagemanager.h | 2 +- toonz/sources/include/toonz/imagepainter.h | 4 ++-- toonz/sources/include/toonz/levelproperties.h | 2 +- toonz/sources/include/toonz/levelupdater.h | 4 ++-- toonz/sources/include/toonz/sceneresources.h | 4 ++-- toonz/sources/include/toonz/skeleton.h | 4 ++-- toonz/sources/include/toonz/tdistort.h | 2 +- toonz/sources/include/toonz/toonzscene.h | 10 +++++----- toonz/sources/include/toonz/tstageobject.h | 10 +++++----- toonz/sources/include/toonz/tstageobjecttree.h | 8 ++++---- toonz/sources/include/toonz/txshcolumn.h | 2 +- toonz/sources/include/toonz/txsheet.h | 6 +++--- toonz/sources/include/toonz/txshlevel.h | 2 +- toonz/sources/include/toonz/txshnoteset.h | 2 +- toonz/sources/include/toonz/vectorizerparameters.h | 4 ++-- toonz/sources/include/toonzqt/doublepairfield.h | 4 ++-- toonz/sources/include/toonzqt/dvscrollwidget.h | 2 +- toonz/sources/include/toonzqt/flipconsole.h | 2 +- toonz/sources/include/toonzqt/functionpanel.h | 2 +- .../include/toonzqt/functionsegmentviewer.h | 4 ++-- toonz/sources/include/toonzqt/fxschematicscene.h | 4 ++-- toonz/sources/include/toonzqt/intpairfield.h | 2 +- toonz/sources/include/toonzqt/menubarcommand.h | 2 +- toonz/sources/include/toonzqt/schematicnode.h | 6 +++--- toonz/sources/include/toonzqt/schematicviewer.h | 2 +- .../sources/include/toonzqt/stageschematicscene.h | 4 ++-- .../sources/include/toonzqt/studiopaletteviewer.h | 10 +++++----- toonz/sources/include/toonzqt/viewcommandids.h | 2 +- toonz/sources/include/toutputproperties.h | 14 +++++++------- toonz/sources/include/tpalette.h | 10 +++++----- toonz/sources/include/tparam.h | 2 +- toonz/sources/include/tpersist.h | 2 +- toonz/sources/include/tpixel.h | 2 +- toonz/sources/include/tpixelgr.h | 4 ++-- toonz/sources/include/traster.h | 2 +- toonz/sources/include/trasterfx.h | 4 ++-- toonz/sources/include/trenderer.h | 2 +- toonz/sources/include/trenderresourcemanager.h | 2 +- toonz/sources/include/trop.h | 2 +- toonz/sources/include/tsimplecolorstyles.h | 2 +- toonz/sources/include/tsound.h | 4 ++-- toonz/sources/include/tsound_t.h | 8 ++++---- toonz/sources/include/tstream.h | 2 +- toonz/sources/include/tstroke.h | 4 ++-- toonz/sources/include/tstrokedeformations.h | 2 +- toonz/sources/include/tsystem.h | 2 +- toonz/sources/include/tthreadmessage.h | 2 +- toonz/sources/include/ttoonzimage.h | 4 ++-- toonz/sources/include/tvectorimage.h | 6 +++--- toonz/sources/include/tzerofinder.h | 4 ++-- toonz/sources/sound/aiff/tsio_aiff.h | 2 +- toonz/sources/sound/raw/tsio_raw.h | 2 +- toonz/sources/sound/wav/tsio_wav.h | 2 +- toonz/sources/stdfx/igs_level_auto.cpp | 10 +++++----- toonz/sources/stdfx/igs_level_auto_in_camera.cpp | 10 +++++----- toonz/sources/stdfx/igs_line_blur.cpp | 10 +++++----- toonz/sources/stdfx/iwa_bloomfx.cpp | 2 +- toonz/sources/stdfx/iwa_bokeh_advancedfx.h | 2 +- toonz/sources/stdfx/iwa_bokeh_util.cpp | 4 ++-- toonz/sources/stdfx/iwa_fractalnoisefx.cpp | 2 +- toonz/sources/stdfx/iwa_motionblurfx.cpp | 2 +- toonz/sources/stdfx/iwa_pnperspectivefx.cpp | 4 ++-- toonz/sources/stdfx/iwa_soapbubblefx.h | 2 +- toonz/sources/stdfx/iwa_spectrumfx.cpp | 2 +- toonz/sources/stdfx/iwa_tilefx.cpp | 8 ++++---- toonz/sources/stdfx/localblurfx.cpp | 2 +- toonz/sources/stdfx/motionblurfx.cpp | 4 ++-- toonz/sources/stdfx/pins.h | 2 +- toonz/sources/stdfx/shaderfx.cpp | 2 +- toonz/sources/stopmotion/stopmotion.cpp | 4 ++-- toonz/sources/stopmotion/stopmotioncontroller.cpp | 2 +- toonz/sources/tcomposer/tcomposer.cpp | 2 +- toonz/sources/tnzext/DeformationSelector.h | 2 +- toonz/sources/tnztools/bendertool.cpp | 4 ++-- toonz/sources/tnztools/edittool.cpp | 2 +- toonz/sources/tnztools/fingertool.cpp | 2 +- toonz/sources/tnztools/imagegrouping.cpp | 2 +- toonz/sources/tnztools/paintbrushtool.cpp | 2 +- toonz/sources/tnztools/pinchtool.cpp | 2 +- toonz/sources/tnztools/rastererasertool.cpp | 2 +- toonz/sources/tnztools/rasterselection.cpp | 2 +- toonz/sources/tnztools/rgbpickertool.cpp | 2 +- toonz/sources/tnztools/rgbpickertool.h | 2 +- toonz/sources/tnztools/tool.cpp | 2 +- toonz/sources/tnztools/toolhandle.cpp | 2 +- toonz/sources/tnztools/tooloptions.cpp | 2 +- toonz/sources/tnztools/toonzvectorbrushtool.cpp | 2 +- toonz/sources/tnztools/vectorerasertool.cpp | 4 ++-- toonz/sources/tnztools/vectorselectiontool.h | 2 +- toonz/sources/toonz/CMakeLists.txt | 2 +- toonz/sources/toonz/ObjectTracker.cpp | 4 ++-- toonz/sources/toonz/adjustthicknesspopup.h | 2 +- toonz/sources/toonz/autoinputcellnumberpopup.cpp | 4 ++-- toonz/sources/toonz/boardsettingspopup.cpp | 2 +- toonz/sources/toonz/cachefxcommand.cpp | 6 +++--- toonz/sources/toonz/cleanuppopup.cpp | 4 ++-- toonz/sources/toonz/colormodelviewer.cpp | 2 +- toonz/sources/toonz/columncommand.cpp | 2 +- toonz/sources/toonz/comboviewerpane.cpp | 2 +- toonz/sources/toonz/convertpopup.cpp | 2 +- toonz/sources/toonz/convertpopup.h | 4 ++-- toonz/sources/toonz/drawingdata.cpp | 2 +- toonz/sources/toonz/dvdirtreeview.h | 2 +- toonz/sources/toonz/dvitemview.h | 2 +- toonz/sources/toonz/exportlevelcommand.h | 2 +- toonz/sources/toonz/expressionreferencemanager.cpp | 6 +++--- toonz/sources/toonz/filebrowser.cpp | 6 +++--- toonz/sources/toonz/filebrowser.h | 8 ++++---- toonz/sources/toonz/filebrowsermodel.cpp | 4 ++-- toonz/sources/toonz/filebrowserpopup.cpp | 10 +++++----- toonz/sources/toonz/filebrowserpopup.h | 4 ++-- toonz/sources/toonz/fileselection.cpp | 2 +- toonz/sources/toonz/filmstrip.cpp | 4 ++-- toonz/sources/toonz/filmstrip.h | 2 +- toonz/sources/toonz/filmstripcommand.cpp | 2 +- toonz/sources/toonz/flipbook.cpp | 6 +++--- toonz/sources/toonz/frameheadgadget.h | 4 ++-- toonz/sources/toonz/imageviewer.cpp | 10 +++++----- toonz/sources/toonz/iocommand.cpp | 2 +- toonz/sources/toonz/levelsettingspopup.cpp | 2 +- toonz/sources/toonz/main.cpp | 4 ++-- toonz/sources/toonz/mainwindow.cpp | 6 +++--- toonz/sources/toonz/meshifypopup.cpp | 4 ++-- toonz/sources/toonz/meshifypopup.h | 2 +- toonz/sources/toonz/outputsettingspopup.cpp | 2 +- toonz/sources/toonz/pane.cpp | 2 +- toonz/sources/toonz/pane.h | 2 +- toonz/sources/toonz/preferencespopup.cpp | 2 +- toonz/sources/toonz/previewer.cpp | 12 ++++++------ toonz/sources/toonz/previewfxmanager.cpp | 12 ++++++------ toonz/sources/toonz/previewfxmanager.h | 2 +- toonz/sources/toonz/sceneviewer.cpp | 6 +++--- toonz/sources/toonz/sceneviewer.h | 4 ++-- toonz/sources/toonz/sceneviewerevents.cpp | 2 +- toonz/sources/toonz/separatecolorspopup.cpp | 4 ++-- toonz/sources/toonz/separatecolorspopup.h | 2 +- toonz/sources/toonz/subscenecommand.cpp | 8 ++++---- toonz/sources/toonz/svncleanupdialog.cpp | 2 +- toonz/sources/toonz/svncommitdialog.cpp | 4 ++-- toonz/sources/toonz/svndeletedialog.cpp | 2 +- toonz/sources/toonz/svnlockdialog.cpp | 2 +- toonz/sources/toonz/svnlockframerangedialog.cpp | 12 ++++++------ toonz/sources/toonz/svnpurgedialog.cpp | 2 +- toonz/sources/toonz/svnrevertdialog.cpp | 4 ++-- toonz/sources/toonz/svnupdateandlockdialog.cpp | 2 +- toonz/sources/toonz/svnupdatedialog.cpp | 2 +- toonz/sources/toonz/tapp.cpp | 2 +- toonz/sources/toonz/trackerpopup.cpp | 4 ++-- toonz/sources/toonz/vectorizerpopup.cpp | 6 +++--- toonz/sources/toonz/vectorizerswatch.cpp | 2 +- toonz/sources/toonz/versioncontroltimeline.cpp | 2 +- toonz/sources/toonz/xshcellviewer.cpp | 4 ++-- toonz/sources/toonz/xshcolumnviewer.cpp | 2 +- .../sources/toonzfarm/tfarmserver/tfarmserver.cpp | 2 +- toonz/sources/toonzlib/fxcommand.cpp | 4 ++-- toonz/sources/toonzlib/ikjacobian.cpp | 2 +- toonz/sources/toonzlib/imagemanager.cpp | 2 +- toonz/sources/toonzqt/addfxcontextmenu.cpp | 2 +- toonz/sources/toonzqt/docklayout.cpp | 2 +- toonz/sources/toonzqt/docklayout.h | 14 +++++++------- toonz/sources/toonzqt/dockwidget.cpp | 2 +- toonz/sources/toonzqt/dvdialog.cpp | 6 +++--- toonz/sources/toonzqt/flipconsole.cpp | 2 +- toonz/sources/toonzqt/functionsegmentviewer.cpp | 2 +- toonz/sources/toonzqt/functiontreeviewer.cpp | 2 +- toonz/sources/toonzqt/fxschematicnode.cpp | 4 ++-- toonz/sources/toonzqt/gutil.cpp | 2 +- toonz/sources/toonzqt/icongenerator.cpp | 4 ++-- toonz/sources/toonzqt/imageutils.cpp | 6 +++--- toonz/sources/toonzqt/lutcalibrator.cpp | 6 +++--- toonz/sources/toonzqt/palettesscanpopup.cpp | 2 +- toonz/sources/toonzqt/paletteviewergui.cpp | 6 +++--- toonz/sources/toonzqt/plugin_param_traits.h | 4 ++-- toonz/sources/toonzqt/pluginhost.cpp | 8 ++++---- toonz/sources/toonzqt/schematicnode.cpp | 2 +- toonz/sources/toonzqt/schematicviewer.cpp | 6 +++--- toonz/sources/toonzqt/spectrumfield.cpp | 2 +- toonz/sources/toonzqt/styleeditor.cpp | 4 ++-- toonz/sources/toonzqt/styleselection.cpp | 2 +- 238 files changed, 423 insertions(+), 423 deletions(-) diff --git a/doc/how_to_build_linux.md b/doc/how_to_build_linux.md index 042e4f72..4a34e215 100644 --- a/doc/how_to_build_linux.md +++ b/doc/how_to_build_linux.md @@ -112,7 +112,7 @@ Until then we just follow the Win32/OSX layout. The `~/.config/Tahoma2D/` directory contains your settings, work and other files. -Initialize this path with the folling commands: +Initialize this path with the following commands: ``` $ mkdir -p $HOME/.config/Tahoma2D diff --git a/plugins/geom/geom.cpp b/plugins/geom/geom.cpp index 303ba677..5943a1c2 100644 --- a/plugins/geom/geom.cpp +++ b/plugins/geom/geom.cpp @@ -204,7 +204,7 @@ int node_destroy(toonz::node_handle_t node) int can_handle(toonz_node_handle_t node, const toonz_rendering_setting_t *rs, double frame) { printf("%s:\n", __FUNCTION__); - /* geometric plugin のように Bounding Box が自明の場合、 Skew などの変換の影響でフルスクリーン効果のような大きな Bouding Box が + /* geometric plugin のように Bounding Box が自明の場合、 Skew などの変換の影響でフルスクリーン効果のような大きな Bounding Box が 過剰に大きくなってしまうことがある. これを防ぐには非ゼロを返すこと. */ return 1; /* non zero is 'true' */ diff --git a/plugins/multiplugin/multi.cpp b/plugins/multiplugin/multi.cpp index 32a67eb0..edacaad8 100644 --- a/plugins/multiplugin/multi.cpp +++ b/plugins/multiplugin/multi.cpp @@ -200,7 +200,7 @@ int node_destroy(toonz::node_handle_t node) int can_handle(toonz_node_handle_t node, const toonz_rendering_setting_t *rs, double frame) { printf("%s:\n", __FUNCTION__); - /* geometric plugin のように Bounding Box が自明の場合、 Skew などの変換の影響でフルスクリーン効果のような大きな Bouding Box が + /* geometric plugin のように Bounding Box が自明の場合、 Skew などの変換の影響でフルスクリーン効果のような大きな Bounding Box が 過剰に大きくなってしまうことがある. これを防ぐには非ゼロを返すこと. */ return 1; /* non zero is 'true' */ diff --git a/stuff/doc/TileIwa.html b/stuff/doc/TileIwa.html index 6e2b137a..421714b5 100644 --- a/stuff/doc/TileIwa.html +++ b/stuff/doc/TileIwa.html @@ -32,7 +32,7 @@ be placed outside the camera.
  • Left Quantity : Specify the number of repetitions to the left.
    "No Tile"  It will not repeat the tiles.
    "1 Tile"   It will repeat the image only 1 time.
    -"Mutiple Tiles" It will repeat the image indefinitely within the specified range. +"Multiple Tiles" It will repeat the image indefinitely within the specified range.
  • Right Quantity : Specify the number of repetitions to the right. (See Left Quantity).
  • Mirror Horizontally : When active, tiles arranged in the horizontal direction will be flipped
    diff --git a/stuff/doc/español/TileIwa.html b/stuff/doc/español/TileIwa.html index 661fbfdc..ce8aded8 100644 --- a/stuff/doc/español/TileIwa.html +++ b/stuff/doc/español/TileIwa.html @@ -33,7 +33,7 @@ En otras palabras, las repeticiones se ubicarán por fuera del encuadre de la c
  • Left Quantity (Cantidad izquierda) : La cantidad de repeticiones hacia la izquierda.
    "No Tile" (No repetir)  No habrá repeticiones en esta dirección.
    "1 Tile" (1 repetición)   Repetirá la imagen una sola vez en esta dirección.
    -"Mutiple Tiles" (Múltiples repeticiones) Repetirá la imagen indefinidamente en esta dirección. +"Multiple Tiles" (Múltiples repeticiones) Repetirá la imagen indefinidamente en esta dirección.
  • Right Quantity (Cantidad derecha) : La cantidad de repeticiones hacia la derecha. (ver Left Quantity).
  • Mirror Horizontally (Espejar horizontalmente) : Al estar activada, las repeticiones en esta dirección
    diff --git a/stuff/doc/日本語/TileIwa.html b/stuff/doc/日本語/TileIwa.html index c69814e2..360fb5af 100644 --- a/stuff/doc/日本語/TileIwa.html +++ b/stuff/doc/日本語/TileIwa.html @@ -29,7 +29,7 @@ Toonz既存の「TileFx」の機能を以下の点で強化したものです。
  • Left Quantity : 左側に繰り返す回数を指定します。
    "No Tile"  繰り返しません。
    "1 Tile"   1枚だけ繰り返します。
    -"Mutiple Tiles" 必要な範囲内で無限に繰り返します。 +"Multiple Tiles" 必要な範囲内で無限に繰り返します。
  • Right Quantity : 右側に繰り返す回数を指定します。(Left Quantityを参照)
  • Mirror Horizontally : ONのとき、水平方向に並ぶタイルが、1枚おきに左右反転されるようになります。
  • diff --git a/stuff/library/mypaint brushes/deevad/readme.txt b/stuff/library/mypaint brushes/deevad/readme.txt index ca68ce3e..9f99c273 100644 --- a/stuff/library/mypaint brushes/deevad/readme.txt +++ b/stuff/library/mypaint brushes/deevad/readme.txt @@ -8,7 +8,7 @@ what you want with it. If you accept this license, a new brush group named 'deevad-v6' will be created. More infos on the brushes on my blog, or my deviant-art -account , under the ressources category. +account , under the resources category. Released in end october 2012 diff --git a/stuff/library/shaders/readme.txt b/stuff/library/shaders/readme.txt index ba3b1ea5..8d613200 100644 --- a/stuff/library/shaders/readme.txt +++ b/stuff/library/shaders/readme.txt @@ -254,7 +254,7 @@ and more. Fx writers may want to explicitly specify a parameter concept for the following reasons: - a. Impose a measure to the parameter (e.g. degress, inches, %) + a. Impose a measure to the parameter (e.g. degrees, inches, %) b. Make the parameter editable in camera-stand diff --git a/toonz/sources/common/tapptools/tcolorutils.cpp b/toonz/sources/common/tapptools/tcolorutils.cpp index daaddb87..bc0ac377 100644 --- a/toonz/sources/common/tapptools/tcolorutils.cpp +++ b/toonz/sources/common/tapptools/tcolorutils.cpp @@ -1103,7 +1103,7 @@ void TColorUtils::buildColorChipPalette(QList> &palette, edgePoints.at(corners[EdgePoint::LeftLower]).pos); if (chip.validate(raster, step)) colorChips.append(chip); - // remove the coner information from the corner point + // remove the corner information from the corner point QMap::const_iterator i = corners.constBegin(); while (i != corners.constEnd()) { edgePoints[i.value()].info &= ~i.key(); diff --git a/toonz/sources/common/tapptools/tenv.cpp b/toonz/sources/common/tapptools/tenv.cpp index c9fae0c8..3e431534 100644 --- a/toonz/sources/common/tapptools/tenv.cpp +++ b/toonz/sources/common/tapptools/tenv.cpp @@ -331,7 +331,7 @@ public: //========================================================= // -// varaible manager (singleton) +// variable manager (singleton) // //========================================================= diff --git a/toonz/sources/common/tcache/timagecache.cpp b/toonz/sources/common/tcache/timagecache.cpp index 25137007..9320a52d 100644 --- a/toonz/sources/common/tcache/timagecache.cpp +++ b/toonz/sources/common/tcache/timagecache.cpp @@ -824,7 +824,7 @@ void TImageCache::Imp::doCompress() { assert(uitem); item->m_cantCompress = true; CacheItemP newItem = new CompressedOnMemoryCacheItem( - item->getImage()); // WARNING the codec buffer allocation can CHANGE + item->getImage()); // WARNING the codec buffer allocation can CHANGE // the cache. item->m_cantCompress = false; if (newItem->getSize() == @@ -838,7 +838,7 @@ void TImageCache::Imp::doCompress() { m_compressedItems[id] = newItem; item = CacheItemP(); uitem = UncompressedOnMemoryCacheItemP(); - // doCompress();//restart, since interators can have been changed (see + // doCompress();//restart, since iterators could have been changed (see // comment above) // return; itu = m_itemHistory.begin(); @@ -1921,13 +1921,13 @@ void TImageCache::Imp::outputMap(UINT chunkRequested, std::string filename) { "\n"; // os<<"***bigmem available" + // std::to_string((int)TBigMemoryManager::instance()->getAvailableMemoryinKb()); - os << "***uncompressed NOT compressable(refcount>1) " + + os << "***uncompressed NOT compressible(refcount>1) " + std::to_string(umcount1) + " " + std::to_string(umsize1 / 1024.0) + " MB\n"; - os << "***uncompressed NOT compressable(cantCompress) " + + os << "***uncompressed NOT compressible(cantCompress) " + std::to_string(umcount2) + " " + std::to_string(umsize2 / 1024.0) + " MB\n"; - os << "***uncompressed compressable " + std::to_string(umcount3) + " " + + os << "***uncompressed compressible " + std::to_string(umcount3) + " " + std::to_string(umsize3 / 1024.0) + " MB\n"; os << "***compressed on mem " + std::to_string(cmcount) + " " + std::to_string((int)cmsize / 1048576.0) + " MB\n"; diff --git a/toonz/sources/common/tcore/tthread.cpp b/toonz/sources/common/tcore/tthread.cpp index a5ff80bb..a756a9aa 100644 --- a/toonz/sources/common/tcore/tthread.cpp +++ b/toonz/sources/common/tcore/tthread.cpp @@ -107,8 +107,8 @@ // conditions are *BLOCKING*. // Thread-safety: -// * Most of the following code is mutex-protected, altough it might seem not - -// indeed, +// * Most of the following code is mutex-protected, although it might seem not +// like it - indeed, // only *one* mutex is locked and unlocked all of the time. This 'transition // mutex' is // the key to thread-safety: we're considered to lie in a 'transition state' @@ -475,7 +475,7 @@ inline bool Runnable::customConditions() { that the application must wait for the task to be finished, print logs or similar. This signal is always preceded by a canceled() signal, informing all - active tasks that thay should begin quitting on their own in a 'soft' + active tasks that they should begin quitting on their own in a 'soft' way before brute termination may occur. \sa \b Executor::shutdown static method and \b Runnable::canceled signal. @@ -715,7 +715,7 @@ void Executor::init() { //! to terminate - this depends //! on the code connected to the terminated() signal and is under the user's //! responsibility (see the -//! remarks specified in started() signal descritpion); if this is the intent +//! remarks specified in started() signal description); if this is the intent //! and the terminated slot //! is invoked in the controller thread, you should remember to implement a //! local event loop in it (so that diff --git a/toonz/sources/common/tfx/tcacheresource.cpp b/toonz/sources/common/tfx/tcacheresource.cpp index 653f2398..ae66c13f 100644 --- a/toonz/sources/common/tfx/tcacheresource.cpp +++ b/toonz/sources/common/tfx/tcacheresource.cpp @@ -77,7 +77,7 @@ in case some part of the complex inside the cell has been defined. The plane outside the complex is assumed to be transparent. \n -The lattice origin must be specified in the complex's contructor, and all tiles +The lattice origin must be specified in the complex's constructor, and all tiles uploaded into and downloaded from it must have an integer displacement with respect to it - in other words, it is required that the complex has a well-defined pixel @@ -317,7 +317,7 @@ inline TPoint TCacheResource::getCellPos(const TPointD &pos) const { bool TCacheResource::checkRasterType(const TRasterP &ras, int &rasType) const { rasType = ::getRasterType(ras); if (rasType == NONE) { - assert(!"The passed raster has unkown type!"); + assert(!"The passed raster has unknown type!"); return false; } if (m_tileType != NONE && m_tileType != rasType) { diff --git a/toonz/sources/common/tfx/tfxcachemanager.cpp b/toonz/sources/common/tfx/tfxcachemanager.cpp index 1786b416..66474869 100644 --- a/toonz/sources/common/tfx/tfxcachemanager.cpp +++ b/toonz/sources/common/tfx/tfxcachemanager.cpp @@ -65,7 +65,7 @@ efficiently store Now, the principal classes dealing with this job are: - One TFxCacheManager per render instance, used to store predictive -informations. +information. - A set of TFxCacheManagerDelegate per render instance, used to store references to cache resources and providing reasons for caching results. diff --git a/toonz/sources/common/tgl/tstencilcontrol.cpp b/toonz/sources/common/tgl/tstencilcontrol.cpp index efe3bc8d..784f6d1d 100644 --- a/toonz/sources/common/tgl/tstencilcontrol.cpp +++ b/toonz/sources/common/tgl/tstencilcontrol.cpp @@ -34,7 +34,7 @@ public: ~StencilControlManager() {} }; -} // Local namepace +} // Local namespace //----------------------------------------------------------------------------------------- @@ -43,7 +43,7 @@ public: int m_stencilBitCount; int m_pushCount; int m_currentWriting; // current stencil bit plane. - // 0 is the first bit plane ; -1 menas no stencil mask is writing + // 0 is the first bit plane ; -1 means no stencil mask is writing int m_virtualState; // the state of the (eventually virtual) top mask. diff --git a/toonz/sources/common/tiio/bmp/filebmp.c b/toonz/sources/common/tiio/bmp/filebmp.c index 5f3e8173..c300928d 100644 --- a/toonz/sources/common/tiio/bmp/filebmp.c +++ b/toonz/sources/common/tiio/bmp/filebmp.c @@ -1194,8 +1194,8 @@ static int skip_rowsBMPC4(FILE *fp, UINT rows) rows = 0; break; case 0x02: - c1 = getc(fp); /* x buffer offest */ - c1 = getc(fp); /* y buffer offest */ + c1 = getc(fp); /* x buffer offset */ + c1 = getc(fp); /* y buffer offset */ rows -= c1; break; default: @@ -1473,8 +1473,8 @@ static int skip_rowsBMPC8(FILE *fp, UINT rows) rows = 0; break; case 0x02: - c1 = getc(fp); /* x buffer offest */ - c1 = getc(fp); /* y buffer offest */ + c1 = getc(fp); /* x buffer offset */ + c1 = getc(fp); /* y buffer offset */ rows -= c1; break; default: diff --git a/toonz/sources/common/tiio/tiio_jpg_exif.cpp b/toonz/sources/common/tiio/tiio_jpg_exif.cpp index 36774b84..7da7d8ec 100644 --- a/toonz/sources/common/tiio/tiio_jpg_exif.cpp +++ b/toonz/sources/common/tiio/tiio_jpg_exif.cpp @@ -706,7 +706,7 @@ void JpgExifReader::ProcessExifDir(unsigned char *DirStart, if (ImageInfo.Comments[0]) { // We already have a jpeg comment. // Already have a comment (probably windows comment), skip this one. if (ShowTags) - printf("Windows XP commend and other comment in header\n"); + printf("Windows XP comment and other comment in header\n"); break; // Already have a windows comment, skip this one. } diff --git a/toonz/sources/common/traster/traster.cpp b/toonz/sources/common/traster/traster.cpp index e219a797..718f4325 100644 --- a/toonz/sources/common/traster/traster.cpp +++ b/toonz/sources/common/traster/traster.cpp @@ -65,7 +65,7 @@ m_buffer = BigMemoryManager.getMemoryChunk(lx*ly*pixelSize, this); //m_buffer = new UCHAR[lx*ly*pixelSize]; m_totalMemory += ((lx*ly*pixelSize)>>10); #ifdef _WIN32 -MessageBox( NULL, "Run out of contiguos phisical memory: please save all and +MessageBox( NULL, "Run out of contiguous physical memory: please save all and restart toonz!", "Warning", MB_OK); #endif }*/ diff --git a/toonz/sources/common/trop/borders_extractor.h b/toonz/sources/common/trop/borders_extractor.h index 87d64b5f..c86d43d9 100644 --- a/toonz/sources/common/trop/borders_extractor.h +++ b/toonz/sources/common/trop/borders_extractor.h @@ -29,7 +29,7 @@ namespace borders { For example, if we want to extract the borders of a fullcolor image that separate bright areas from dark ones, we can just have a pixel selector cast each pixel to the integer value 0 if the pixel's value is below the - brigthness threshold, and 1 if above. + brightness threshold, and 1 if above. \n\n Also, pixel selectors tell whether pixels are to be intended as completely transparent (virtual pixels outside the raster boundaries are). diff --git a/toonz/sources/common/trop/runsmap.h b/toonz/sources/common/trop/runsmap.h index e6e43376..4b2334ec 100644 --- a/toonz/sources/common/trop/runsmap.h +++ b/toonz/sources/common/trop/runsmap.h @@ -11,10 +11,10 @@ /*! The RunsMapP is an auxiliary raster greymap type used to store run-length - informations + information about an image. - Not every image pixel has valid informations. Only pixels corresponding to + Not every image pixel has valid information. Only pixels corresponding to run headers do, and those include the position of the next run header. This means that users must always iterate from the beginning of a line to get valid diff --git a/toonz/sources/common/trop/terodilate.cpp b/toonz/sources/common/trop/terodilate.cpp index 63021d3c..7e5830ba 100644 --- a/toonz/sources/common/trop/terodilate.cpp +++ b/toonz/sources/common/trop/terodilate.cpp @@ -229,7 +229,7 @@ void erodilate_chan(const TRasterPT &src, const TRasterPT &dst, // perform a cache-friendly iteration in the separable/square kernel case int x, y, lx = src->getLx(), ly = src->getLy(); - // Peform rows erodilation + // Perform rows erodilation TRasterPT temp(ly, lx); // Notice transposition plz { diff --git a/toonz/sources/common/trop/tresample.cpp b/toonz/sources/common/trop/tresample.cpp index e7be26fb..830aa72c 100644 --- a/toonz/sources/common/trop/tresample.cpp +++ b/toonz/sources/common/trop/tresample.cpp @@ -2376,7 +2376,7 @@ void rop_resample_rgbm(TRasterPT rout, const TRasterPT &rin, // the *opposites* of fractionary parts (explained later). // NOTE: We'll assume we want to include in the filter mask all //*integer positions around a fractionary displacement of the origin*; - // so the approximations below are stricly necessary. + // so the approximations below are strictly necessary. min_pix_ref_u = intLE(min_pix_out_u_); min_pix_ref_v = intLE(min_pix_out_v_); @@ -3059,7 +3059,7 @@ void do_resample(TRasterCM32P rout, const TRasterCM32P &rin, v * wrapin; // Take the associated input pixel pointer tcm[0] = in_tcm[0]; if (u < lu - 1 && v < lv - 1) { - // Also take their 4 next neighours (we shall perform a kinf of bilinear + // Also take their 4 next neighbours (we shall perform a kinf of bilinear // interpolation) tcm[1] = in_tcm[1]; tcm[2] = in_tcm[wrapin]; diff --git a/toonz/sources/common/trop/tropcm.cpp b/toonz/sources/common/trop/tropcm.cpp index 99df266d..a209f54c 100644 --- a/toonz/sources/common/trop/tropcm.cpp +++ b/toonz/sources/common/trop/tropcm.cpp @@ -777,7 +777,7 @@ void expandAreaAndFillGaps(TRasterCM32P ras) { if (pix->getPaint() != TPixelCM32::getMaxPaint()) continue; int paint = TPixelCM32::getMaxPaint(); - // check the neibor pixes and take the smallest styleId + // check the neighbor pixels and take the smallest styleId if (upPix != pix && upPix->getInk() != TPixelCM32::getMaxInk()) paint = upPix->getPaint(); if (dnPix != pix && dnPix->getInk() != TPixelCM32::getMaxInk()) diff --git a/toonz/sources/common/tstream/tstream.cpp b/toonz/sources/common/tstream/tstream.cpp index d3657d0f..ba61345f 100644 --- a/toonz/sources/common/tstream/tstream.cpp +++ b/toonz/sources/common/tstream/tstream.cpp @@ -1154,7 +1154,7 @@ TIStream &TIStream::operator>>(TPersist *&v) { //--------------------------------------------------------------- bool TIStream::matchEndTag() { - if (m_imp->m_tagStack.empty()) throw TException("tag stack emtpy"); + if (m_imp->m_tagStack.empty()) throw TException("tag stack empty"); if (!m_imp->matchTag()) return false; if (m_imp->m_currentTag.m_type != StreamTag::EndTag) return false; if (m_imp->m_currentTag.m_name != m_imp->m_tagStack.back()) diff --git a/toonz/sources/common/tsystem/tfilepath_io.cpp b/toonz/sources/common/tsystem/tfilepath_io.cpp index 45d4df9e..5f00773f 100644 --- a/toonz/sources/common/tsystem/tfilepath_io.cpp +++ b/toonz/sources/common/tsystem/tfilepath_io.cpp @@ -34,7 +34,7 @@ FILE *fopen(const TFilePath &fp, string mode) { Tifstream::Tifstream(const TFilePath &fp) : ifstream(m_file = fopen(fp, "rb")) { // manually set the fail bit here, since constructor ifstream::ifstream(FILE*) // does not so even if the argument is null pointer. - // the state will be refered in "TIStream::operator bool()" ( in tstream.cpp ) + // the state will be referred in "TIStream::operator bool()" ( in tstream.cpp ) if (!m_file) setstate(failbit); } @@ -54,7 +54,7 @@ Tofstream::Tofstream(const TFilePath &fp, bool append_existing) : ofstream(m_file = fopen(fp, append_existing ? "ab" : "wb")) { // manually set the fail bit here, since constructor ofstream::ofstream(FILE*) // does not so even if the argument is null pointer. - // the state will be refered in "TOStream::operator bool()" ( in tstream.cpp ) + // the state will be referred in "TOStream::operator bool()" ( in tstream.cpp ) if (!m_file) setstate(failbit); } diff --git a/toonz/sources/common/tsystem/tsystem.cpp b/toonz/sources/common/tsystem/tsystem.cpp index 1baa5e1e..3d703091 100644 --- a/toonz/sources/common/tsystem/tsystem.cpp +++ b/toonz/sources/common/tsystem/tsystem.cpp @@ -547,7 +547,7 @@ void TSystem::readDirectory(TFilePathSet &groupFpSet, TFilePathSet &allFpSet, // store all file paths fileSet_all.insert(son); - // in case of the sequencial files + // in case of the sequential files if (son.getDots() == "..") son = son.withFrame(); // store the group. insersion avoids duplication of the item diff --git a/toonz/sources/common/tsystem/tsystempd.cpp b/toonz/sources/common/tsystem/tsystempd.cpp index 585fe743..2c0c1ee7 100644 --- a/toonz/sources/common/tsystem/tsystempd.cpp +++ b/toonz/sources/common/tsystem/tsystempd.cpp @@ -196,7 +196,7 @@ bool TSystem::memoryShortage() { memStatus.ullTotalVirtual * 0.6; // if total memory used by this process(WorkingSetSize) is // half of max allocatable memory -//(ullTotalVirtual: on 32bits machines, tipically it's 2GB) +//(ullTotalVirtual: on 32bits machines, typically it's 2GB) // It's better "to stay large"; for values >0.6 this function may // returns that there is memory, but for fragmentation the malloc fails the // same! @@ -243,7 +243,7 @@ TINT64 TSystem::getFreeMemorySize(bool onlyPhisicalMemory) { // check for virtual memory int numberOfResources = - swapctl(SC_GETNSWP, 0); /* get number of swapping resources configued */ + swapctl(SC_GETNSWP, 0); /* get number of swapping resources configured */ if (numberOfResources == 0) return 0; diff --git a/toonz/sources/common/tvectorimage/tcomputeregions.cpp b/toonz/sources/common/tvectorimage/tcomputeregions.cpp index bf156bcf..0c0acd30 100644 --- a/toonz/sources/common/tvectorimage/tcomputeregions.cpp +++ b/toonz/sources/common/tvectorimage/tcomputeregions.cpp @@ -1438,7 +1438,7 @@ static bool isCloseEnoughP2P(double facMin, double facMax, TStroke *s1, dist2 = tdistance2(p0, p1); - /*!when closing beetween a normal stroke and a 0-thickness stroke (very + /*!when closing between a normal stroke and a 0-thickness stroke (very * typical) the thin one is assumed to have same thickness of the other*/ if (p0.thick == 0) p0.thick = p1.thick; @@ -1618,7 +1618,7 @@ static bool isCloseEnoughP2L(double facMin, double facMax, TStroke *s1, TThickPoint p1 = s2->getChunk(index)->getThickPoint(t); - /*!when closing beetween a normal stroke and a 0-thickness stroke (very + /*!when closing between a normal stroke and a 0-thickness stroke (very * typical) the thin one is assumed to have same thickness of the other*/ if (p0.thick == 0) p0.thick = p1.thick; diff --git a/toonz/sources/common/tvectorimage/tstroke.cpp b/toonz/sources/common/tvectorimage/tstroke.cpp index 022cfe23..5e48e5e7 100644 --- a/toonz/sources/common/tvectorimage/tstroke.cpp +++ b/toonz/sources/common/tvectorimage/tstroke.cpp @@ -1186,7 +1186,7 @@ DEFINE_CLASS_CODE(TStroke, 15) //----------------------------------------------------------------------------- -// Costructor +// Constructor TStroke::TStroke() : TSmartObject(m_classCode) { vector p(3); p[0] = TThickPoint(0, 0, 0); diff --git a/toonz/sources/common/tvectorimage/tvectorimage.cpp b/toonz/sources/common/tvectorimage/tvectorimage.cpp index 65a9fb3a..d0fd74f6 100644 --- a/toonz/sources/common/tvectorimage/tvectorimage.cpp +++ b/toonz/sources/common/tvectorimage/tvectorimage.cpp @@ -2173,10 +2173,10 @@ VIStroke *TVectorImage::Imp::joinStroke(int index1, int index2, int cpIndex1, int cpCount2 = stroke2->getControlPointCount(); int styleId = stroke1->getStyle(); - // check if the both ends are at the same postion + // check if the both ends are at the same position bool isSamePos = isAlmostZero(tdistance2(stroke1->getControlPoint(cpIndex1), stroke2->getControlPoint(cpIndex2))); - // connecting the ends in the same shape at the same postion + // connecting the ends in the same shape at the same position // means just making the shape self-looped if (isSamePos && index1 == index2) { stroke1->setSelfLoop(); diff --git a/toonz/sources/common/tvrender/tellipticbrush.cpp b/toonz/sources/common/tvrender/tellipticbrush.cpp index 9e758e1e..46e23a66 100644 --- a/toonz/sources/common/tvrender/tellipticbrush.cpp +++ b/toonz/sources/common/tvrender/tellipticbrush.cpp @@ -16,7 +16,7 @@ using namespace tellipticbrush; /*! \file tellipticbrush.cpp This code deals with the "outlinization" process of a TStroke instance. -The process of extracing the outline of a thick stroke can be resumed in 2 main +The process of extracting the outline of a thick stroke can be resumed in 2 main steps: 1. Discretize the stroke centerline in the most appropriate centerline points, @@ -472,7 +472,7 @@ void CoverageLinearizator::linearize(std::vector &cPoints, TThickPoint P0(ttq.getThickP0()), P1(ttq.getThickP1()), P2(ttq.getThickP2()); if ((P0 == P1) || (P1 == P2)) - return; // Linear speed out/in case. Straighted up in the buildDirs() + return; // Linear speed out/in case. Straightened up in the buildDirs() // Remember that d = 2 [P1 - P0 + t (P0 + P2 - 2 P1)] @@ -877,7 +877,7 @@ void tellipticbrush::OutlineBuilder::addRoundSideCaps( std::vector &oPoints, const CenterlinePoint &cPoint) { // Side caps - this has only sense when the backward and forward // direction-derivatives - // are different. This means that thay build different envelope directions. + // are different. This means that they build different envelope directions. // So, we add // side caps to cover the 'elbow fractures' @@ -1132,7 +1132,7 @@ namespace { /* Quick container to store all the linearization features to be supported. - \note The set should be appropriately ordered so that linearizator dependance + \note The set should be appropriately ordered so that linearizator dependence can be supported (linearizators may work depending on knowledge of the other linearized points) */ diff --git a/toonz/sources/common/tvrender/tellipticbrushP.h b/toonz/sources/common/tvrender/tellipticbrushP.h index 74fa13cd..8676f5a8 100644 --- a/toonz/sources/common/tvrender/tellipticbrushP.h +++ b/toonz/sources/common/tvrender/tellipticbrushP.h @@ -65,7 +65,7 @@ struct OutlinizationData { which includes its position, and eventual forward and backward derivative-like directions. Thickness data is included in the structure. - These informations are necessary and sufficient to build associated outline + This information is necessary and sufficient to build associated outline points, and eventual additional points related to caps. */ @@ -74,7 +74,7 @@ struct CenterlinePoint { double m_t; //!< The quadratic parameter where this point can be found TThickPoint m_p; //!< The point's thick coordinates - bool m_posBuilt; //!< Wheteher m_p has been calculated + bool m_posBuilt; //!< Whether m_p has been calculated TThickPoint m_prevD; //!< The backward direction bool m_hasPrevD; //!< If the point has (envelopable) backward direction diff --git a/toonz/sources/common/tvrender/tfont_qt.cpp b/toonz/sources/common/tvrender/tfont_qt.cpp index e37d9d32..36d66bda 100644 --- a/toonz/sources/common/tvrender/tfont_qt.cpp +++ b/toonz/sources/common/tvrender/tfont_qt.cpp @@ -362,7 +362,7 @@ void TFontManager::setFamily(const wstring family) { m_pimpl->m_currentFamily = family; // XXX: if current style is not valid for family, reset it? -// doing so asserts when chosing a font in the GUI +// doing so asserts when choosing a font in the GUI #if 0 QStringList styles = m_pimpl->m_qfontdb->styles(qFamily); if (styles.contains(QString::fromStdWString(m_pimpl->m_currentTypeface))) { diff --git a/toonz/sources/common/tvrender/tpalette.cpp b/toonz/sources/common/tvrender/tpalette.cpp index 76f1188c..1944e47c 100644 --- a/toonz/sources/common/tvrender/tpalette.cpp +++ b/toonz/sources/common/tvrender/tpalette.cpp @@ -611,7 +611,7 @@ public: } /*! -\details Explicitly ovverrides the stream's version, returning m_version. +\details Explicitly overrides the stream's version, returning m_version. This is necessary since palettes have their \a own version number, which is \a not the TIStream's file one. */ @@ -1074,7 +1074,7 @@ void TPalette::setFrame(int frame) { TColorStyle *cs = getStyle(styleId); assert(cs); - // Buid the keyframes interval containing frame + // Build the keyframes interval containing frame StyleAnimation::iterator j0, j1; j1 = animation.lower_bound( diff --git a/toonz/sources/common/tvrender/tstrokeutil.cpp b/toonz/sources/common/tvrender/tstrokeutil.cpp index 58cbe408..7d2a87ce 100644 --- a/toonz/sources/common/tvrender/tstrokeutil.cpp +++ b/toonz/sources/common/tvrender/tstrokeutil.cpp @@ -317,7 +317,7 @@ bool increaseControlPoints(TStroke &stroke, const TStrokeDeformation &deformer, // questa funzione trova il punto in cui si supera il valore maxdifference // if minimum is not found or is equal to previous value - // use an euristic... + // use a heuristic... if (minimum < 0 || w == minimum) { minimum = w + incr * 0.5; w += step; diff --git a/toonz/sources/common/tvrender/tvectorbrush.cpp b/toonz/sources/common/tvrender/tvectorbrush.cpp index 481f8943..ad6618dc 100644 --- a/toonz/sources/common/tvrender/tvectorbrush.cpp +++ b/toonz/sources/common/tvrender/tvectorbrush.cpp @@ -672,7 +672,7 @@ void RecursiveReferenceLinearizator::subdivideCenterline( /* Quick container to store all the linearization features to be supported. - \note The set should be appropriately ordered so that linearizator dependance + \note The set should be appropriately ordered so that linearizator dependence can be supported (linearizators may work depending on knowledge of the other linearized points) */ diff --git a/toonz/sources/include/avicodecrestrictions.h b/toonz/sources/include/avicodecrestrictions.h index 7212ab57..5e9b2b4a 100644 --- a/toonz/sources/include/avicodecrestrictions.h +++ b/toonz/sources/include/avicodecrestrictions.h @@ -21,13 +21,13 @@ namespace AviCodecRestrictions { -//! Returns a text specifing resolution restricions for the given codec name. +//! Returns a text specifying resolution restricions for the given codec name. void DVAPI getRestrictions(const std::wstring &codecName, QString &restrictions); //! Returns true if the ginven codec can work in the given resolution. bool DVAPI canWriteMovie(const std::wstring &codecName, const TDimension &resolution); -//! Return a mapping containing the same codecs in \b codecNames, specifing +//! Return a mapping containing the same codecs in \b codecNames, specifying //! which codec can work in the given resolution. QMap DVAPI getUsableCodecs(const TDimension &resolution); //! Returns true if the specifiedcodec can be configured. diff --git a/toonz/sources/include/drawutil.h b/toonz/sources/include/drawutil.h index 1f932276..6627649a 100644 --- a/toonz/sources/include/drawutil.h +++ b/toonz/sources/include/drawutil.h @@ -2,7 +2,7 @@ //----------------------------------------------------------------------------- // drawutil.h: -// Private header to common fuction in drawcurves.cpp and drawregions.cpp +// Private header to common function in drawcurves.cpp and drawregions.cpp //----------------------------------------------------------------------------- #ifndef DRAWUTIL_H diff --git a/toonz/sources/include/ext/LinearPotential.h b/toonz/sources/include/ext/LinearPotential.h index 1c8f7aed..bb022114 100644 --- a/toonz/sources/include/ext/LinearPotential.h +++ b/toonz/sources/include/ext/LinearPotential.h @@ -48,7 +48,7 @@ private: * @brief Range of mapping * * Only an interval of potential function will be used to -* map the tranformation. +* map the transformation. */ range_, par_, //! Parameter of selection. diff --git a/toonz/sources/include/ext/StrokeDeformation.h b/toonz/sources/include/ext/StrokeDeformation.h index 7c87055d..8cb7673d 100644 --- a/toonz/sources/include/ext/StrokeDeformation.h +++ b/toonz/sources/include/ext/StrokeDeformation.h @@ -46,7 +46,7 @@ class StrokeDeformationImpl; /** * @brief This class is the interface for manipulation - * algorihms. + * algorithms. * * StrokeDeformation is a wrapper for for StrokeDeformationImpl, * its function is to verify state and parameteres before diff --git a/toonz/sources/include/ext/meshtexturizer.h b/toonz/sources/include/ext/meshtexturizer.h index 89b3aa0c..a3cf5fd6 100644 --- a/toonz/sources/include/ext/meshtexturizer.h +++ b/toonz/sources/include/ext/meshtexturizer.h @@ -39,7 +39,7 @@ to the \a number of allowed textures, there \a are limits to the \b size of said textures, which can be tested by asking OpenGL whether it can - accomodate specific + accommodate specific texture requests or not. Technically, the MeshTexturizer class acts as a virtualization @@ -143,7 +143,7 @@ private: \details The purpose of MeshTexturizer is that of storing in VRAM a set of textures - cut up into tiles. This struture holds the data about the + cut up into tiles. This structure holds the data about the end-product of texture loading into a MeshTexturizer instance. */ diff --git a/toonz/sources/include/ext/plasticdeformerstorage.h b/toonz/sources/include/ext/plasticdeformerstorage.h index 0d6e4f8f..cef230e5 100644 --- a/toonz/sources/include/ext/plasticdeformerstorage.h +++ b/toonz/sources/include/ext/plasticdeformerstorage.h @@ -107,7 +107,7 @@ private: \par Rationale - The crucial reason behind the existance of this class lies in the + The crucial reason behind the existence of this class lies in the necessity to cache PlasticDeformer instances to achieve real-time speed in the processing of part of its algorithms. \n\n diff --git a/toonz/sources/include/stdfx/shadingcontext.h b/toonz/sources/include/stdfx/shadingcontext.h index 078edf7a..4b923dd3 100644 --- a/toonz/sources/include/stdfx/shadingcontext.h +++ b/toonz/sources/include/stdfx/shadingcontext.h @@ -55,7 +55,7 @@ public: /*! Resizes the output buffer to the specified size. Requires that -the contex is made current before invocation. In case lx or ly are 0, +the context is made current before invocation. In case lx or ly are 0, the context's output buffer is destroyed. */ void resize(int lx, int ly, const QOpenGLFramebufferObjectFormat &fmt = diff --git a/toonz/sources/include/tcg/pool.h b/toonz/sources/include/tcg/pool.h index b556eb54..502ee578 100644 --- a/toonz/sources/include/tcg/pool.h +++ b/toonz/sources/include/tcg/pool.h @@ -44,12 +44,12 @@ The classical cache concept is nothing more than that of a standard associative - map, tweaked to accomodate specific commodities - such as managing + map, tweaked to accommodate specific commodities - such as managing the cache size. However, sometimes resources could be considered to be effectively - indentical, + identical, to the point that assigning a key is merely a way to keep the objects distinct in the cache. Users are in the condition to require only diff --git a/toonz/sources/include/tcommon.h b/toonz/sources/include/tcommon.h index 162f3b81..86f6f7ad 100644 --- a/toonz/sources/include/tcommon.h +++ b/toonz/sources/include/tcommon.h @@ -68,7 +68,7 @@ namespace TConsts { const double epsilon = 1e-8; } -// use macros insted of constexprs, because MSVC2013 does not support +// use macros instead of constexprs, because MSVC2013 does not support // `constexpr`. #define M_PI_3 (M_PI / 3) #define M_PI_180 (M_PI_4 / 45) diff --git a/toonz/sources/include/tfont.h b/toonz/sources/include/tfont.h index 1a368f76..290a9da0 100644 --- a/toonz/sources/include/tfont.h +++ b/toonz/sources/include/tfont.h @@ -123,7 +123,7 @@ public: bool isBold(const QString &family, const QString &style); bool isItalic(const QString &family, const QString &style); - // --------- TFont methods called on curren font ----------- + // --------- TFont methods called on current font ----------- TPoint drawChar(TVectorImageP &outImage, wchar_t charcode, wchar_t nextCode = 0) { diff --git a/toonz/sources/include/tfxcachemanager.h b/toonz/sources/include/tfxcachemanager.h index 280be3e4..fee015ba 100644 --- a/toonz/sources/include/tfxcachemanager.h +++ b/toonz/sources/include/tfxcachemanager.h @@ -99,7 +99,7 @@ public: // Cache Management internals //************************************************************************************************ -//! The ResourceDeclaration structure contains the informations retrieved in the +//! The ResourceDeclaration structure contains the information retrieved in the //! predictive processes performed before a render process. It can be retrieved //! via the TFxCacheManager::getResource() method or passed directly by it to //! TFxCacheManagerDelegate instances. @@ -182,7 +182,7 @@ TFxCacheManagerDelegate instances. Access to a cache resource is performed through the getResource() method, which requires a description of the resource (as specified in the TCacheResource class) -and some informations - namely, the fx, render settings and frame - about the +and some information - namely, the fx, render settings and frame - about the circumstances of the request. If the resource is managed by some manager delegate, it will be returned. diff --git a/toonz/sources/include/tgeometry.h b/toonz/sources/include/tgeometry.h index af418cd3..bbcd8015 100644 --- a/toonz/sources/include/tgeometry.h +++ b/toonz/sources/include/tgeometry.h @@ -925,7 +925,7 @@ return *this = *this * b; }; */ /*! - Retruns the inverse tansformation as: + Returns the inverse tansformation as:

    \f$\left(\begin{array}{ccc}\bf{A}^{-1}&-\bf{A}^{-1}&\vec{b}\\\vec{0}&\vec{0}&1\end{array}\right)\f$

    */ @@ -1024,7 +1024,7 @@ a12*a12+a21*a21) < err; */ /*! - Retruns the transfomed point. + Returns the transformed point. */ TPointD operator*(const TPointD &p) const; /*Sposto in tgeometry.cpp @@ -1034,7 +1034,7 @@ return TPointD(p.x*a11+p.y*a12+a13, p.x*a21+p.y*a22+a23); */ /*! - Retruns the transformed box of the bounding box. + Returns the transformed box of the bounding box. */ TRectD operator*(const TRectD &rect) const; diff --git a/toonz/sources/include/tiio_jpg_exif.h b/toonz/sources/include/tiio_jpg_exif.h index 1d619d81..b84be1e5 100644 --- a/toonz/sources/include/tiio_jpg_exif.h +++ b/toonz/sources/include/tiio_jpg_exif.h @@ -11,7 +11,7 @@ http://www.sentex.net/~mwandel/jhead/ #include -// undefining ReadAllTags will load only resolution infomation +// undefining ReadAllTags will load only resolution information #define ReadAllTags #undef ReadAllTags diff --git a/toonz/sources/include/tmathutil.h b/toonz/sources/include/tmathutil.h index 6a2e5a75..df565636 100644 --- a/toonz/sources/include/tmathutil.h +++ b/toonz/sources/include/tmathutil.h @@ -46,7 +46,7 @@ public: \par A array of coeff \par n size of matrix \par indx array with permutation from pivoting - \par d +1/-1 and depend wheter the number of row interchanges (even or odd) + \par d +1/-1 and depend whether the number of row interchanges (even or odd) \note If error a TException is thrown. \include mathutils_ex2.cpp */ diff --git a/toonz/sources/include/tmsgcore.h b/toonz/sources/include/tmsgcore.h index eb606d36..15bbab15 100644 --- a/toonz/sources/include/tmsgcore.h +++ b/toonz/sources/include/tmsgcore.h @@ -53,7 +53,7 @@ public: // client side // 'send' returns false if the tmessage is not active in the application - // (tipically, in console applications such as tcomposer) + // (typically, in console applications such as tcomposer) bool send(DVGui::MsgType type, const QString &message); void connectTo(const QString &address = ""); diff --git a/toonz/sources/include/tools/levelselection.h b/toonz/sources/include/tools/levelselection.h index 5c28191c..dbae1fc5 100644 --- a/toonz/sources/include/tools/levelselection.h +++ b/toonz/sources/include/tools/levelselection.h @@ -35,7 +35,7 @@ class TVectorImage; //******************************************************************************* /*! - \brief Selection type for level-based multi-frame selections targetting + \brief Selection type for level-based multi-frame selections targeting primitives described by predefined filtering functions. */ @@ -50,7 +50,7 @@ public: }; enum Filter //! Possible selection filters. - { EMPTY, //!< Selection is empty - everyting is filtered out. + { EMPTY, //!< Selection is empty - everything is filtered out. WHOLE, //!< Selects everything - nothing is filtered out. SELECTED_STYLES, //!< Acts only entities with selected palette styles. BOUNDARY_STROKES, //!< Acts only on boundary strokes (applies only to diff --git a/toonz/sources/include/tools/tool.h b/toonz/sources/include/tools/tool.h index e2eb512e..69242f4c 100644 --- a/toonz/sources/include/tools/tool.h +++ b/toonz/sources/include/tools/tool.h @@ -366,7 +366,7 @@ public: /*! Picks a region of the scene, using an OpenGL projection matrix to restrict drawing to a small regionaround \p p of the viewport. - Retuns -1 if no object's view has been changed. + Returns -1 if no object's view has been changed. */ int pick(const TPointD &p); bool isPicking() const { return m_picking; } diff --git a/toonz/sources/include/tools/tooloptions.h b/toonz/sources/include/tools/tooloptions.h index 6e34b9e5..f8ade70c 100644 --- a/toonz/sources/include/tools/tooloptions.h +++ b/toonz/sources/include/tools/tooloptions.h @@ -277,7 +277,7 @@ protected slots: void onFrameSwitched() { updateStatus(); } // update the object list in combobox void updateStageObjectComboItems(); - // syncronize the current item in the combobox to the selected stage object + // synchronize the current item in the combobox to the selected stage object void syncCurrentStageObjectComboItem(); // change the current stage object when user changes it via combobox by hand void onCurrentStageObjectComboActivated(int index); diff --git a/toonz/sources/include/toonz/boardsettings.h b/toonz/sources/include/toonz/boardsettings.h index 98dacbb4..3ff2576c 100644 --- a/toonz/sources/include/toonz/boardsettings.h +++ b/toonz/sources/include/toonz/boardsettings.h @@ -62,7 +62,7 @@ private: // font color QColor m_color; - // font (familiy, bold, italic) + // font (family, bold, italic) QFont m_font; QString m_text; diff --git a/toonz/sources/include/toonz/doubleparamcmd.h b/toonz/sources/include/toonz/doubleparamcmd.h index 99f15a85..730e0379 100644 --- a/toonz/sources/include/toonz/doubleparamcmd.h +++ b/toonz/sources/include/toonz/doubleparamcmd.h @@ -53,7 +53,7 @@ public: void selectKeyframe(int kIndex); // create a new keyframe, select it and returns its k-index - // (if a keyframe already exsist at frame then it is equivalent to + // (if a keyframe already exists at frame then it is equivalent to // selectKeyframe) // note: call createKeyframe() when no other keyframes are selected int createKeyframe(double frame); @@ -92,7 +92,7 @@ public: double similarShapeOffset); // addUndo is called automatically (if needed) in the dtor. - // it is also possible to call it explictly. + // it is also possible to call it explicitly. void addUndo(); static void setValue(TDoubleParam *curve, double frame, double value) { diff --git a/toonz/sources/include/toonz/expressionreferencemonitor.h b/toonz/sources/include/toonz/expressionreferencemonitor.h index f2cda84f..7b26ce92 100644 --- a/toonz/sources/include/toonz/expressionreferencemonitor.h +++ b/toonz/sources/include/toonz/expressionreferencemonitor.h @@ -25,7 +25,7 @@ class DVAPI ExpressionReferenceMonitorInfo { // true if the parameter is not monitored bool m_ignored = false; // column indices to which the parameter refers. - // note that the columns refered by the "cell" syntax will be + // note that the columns referred by the "cell" syntax will be // registered in this container, but not in the paramRefMap. QSet m_colRefMap; // parameters to which the parameter refers diff --git a/toonz/sources/include/toonz/fill.h b/toonz/sources/include/toonz/fill.h index d0518f8d..13b7ef83 100644 --- a/toonz/sources/include/toonz/fill.h +++ b/toonz/sources/include/toonz/fill.h @@ -64,7 +64,7 @@ class TTileSaverFullColor; //============================================================================= -// returns true if the savebox is changed 9tipically, if you fill the bg) +// returns true if the savebox is changed typically, if you fill the bg) DVAPI bool fill(const TRasterCM32P &r, const FillParameters ¶ms, TTileSaverCM32 *saver = 0, bool fillGaps = false, bool closeGaps = false, int closeStyleIndex = -1, diff --git a/toonz/sources/include/toonz/ikjacobian.h b/toonz/sources/include/toonz/ikjacobian.h index 7151dcab..de863de7 100644 --- a/toonz/sources/include/toonz/ikjacobian.h +++ b/toonz/sources/include/toonz/ikjacobian.h @@ -704,10 +704,10 @@ private: VectorRn dPreTheta; // (vale solo per SDLS) - // Parameters for pseudorinverse + // Parameters for pseudoinverse static const double PseudoInverseThresholdFactor; - // Paremeters for the Damped Least Squares method + // Parameters for the Damped Least Squares method static const double DefaultDampingLambda; double DampingLambda; double DampingLambdaSq; diff --git a/toonz/sources/include/toonz/imagemanager.h b/toonz/sources/include/toonz/imagemanager.h index 171c6a3b..dd5aba7a 100644 --- a/toonz/sources/include/toonz/imagemanager.h +++ b/toonz/sources/include/toonz/imagemanager.h @@ -282,7 +282,7 @@ protected: //! external data. virtual bool getInfo(TImageInfo &info, int imFlags, void *extData) = 0; - // load icon (and image) data of all frames into cache. impremented in + // load icon (and image) data of all frames into cache. implemented in // ImageLoader virtual void buildAllIconsAndPutInCache(TXshSimpleLevel *, std::vector, diff --git a/toonz/sources/include/toonz/imagepainter.h b/toonz/sources/include/toonz/imagepainter.h index cc864a0a..684f8645 100644 --- a/toonz/sources/include/toonz/imagepainter.h +++ b/toonz/sources/include/toonz/imagepainter.h @@ -55,7 +55,7 @@ public: // Other (misplaced) misc options - bool m_doCompare; //!< Whehter must compare between two images + bool m_doCompare; //!< Whether must compare between two images bool m_defineLoadbox; //!< Flipbook-specific bool m_useLoadbox; //!< Flipbook-specific @@ -66,7 +66,7 @@ public: bool m_recomputeIfNeeded; bool m_drawBlankFrame; bool m_useChecks; //!< whether to consider paint check and ink check - bool m_forSceneIcon = false; // whether it is redered for the scene icons + bool m_forSceneIcon = false; // whether it is rendered for the scene icons public: VisualSettings(); diff --git a/toonz/sources/include/toonz/levelproperties.h b/toonz/sources/include/toonz/levelproperties.h index dc0935ad..da15a0f3 100644 --- a/toonz/sources/include/toonz/levelproperties.h +++ b/toonz/sources/include/toonz/levelproperties.h @@ -214,7 +214,7 @@ public: ie only \a fully white pixels will be replaced with transparent. This implicityl restrains its applicability to images without - antialias. This is therefore coupled with antialiasing settins. + antialias. This is therefore coupled with antialiasing settings. \sa The setDoAntialias() method. */ void setWhiteTransp(bool whiteTransp) //! Whether full white pixels should diff --git a/toonz/sources/include/toonz/levelupdater.h b/toonz/sources/include/toonz/levelupdater.h index aee6a3a6..5666b9c3 100644 --- a/toonz/sources/include/toonz/levelupdater.h +++ b/toonz/sources/include/toonz/levelupdater.h @@ -105,7 +105,7 @@ class DVAPI LevelUpdater { TLevelWriterP m_lw; //!< The updater's level writer object TFilePath m_lwPath; //!< Path of the file written by m_lw, could be a temporary - TPropertyGroup *m_pg; //!< Copy of the file format propeties used by m_lw + TPropertyGroup *m_pg; //!< Copy of the file format properties used by m_lw TLevelReaderP m_lr; //!< The updater's level reader object TLevelP m_inputLevel; //!< The initial source level frames structure @@ -119,7 +119,7 @@ class DVAPI LevelUpdater { bool m_usingTemporaryFile; //!< Whether a temporary file is being used to //! hold additional frames - bool m_opened; //!< Wheter the updater is already attached to a level + bool m_opened; //!< Whether the updater is already attached to a level public: LevelUpdater(); diff --git a/toonz/sources/include/toonz/sceneresources.h b/toonz/sources/include/toonz/sceneresources.h index ff2c8176..fa8ad35b 100644 --- a/toonz/sources/include/toonz/sceneresources.h +++ b/toonz/sources/include/toonz/sceneresources.h @@ -300,11 +300,11 @@ used in subXsheet. bool save(const TFilePath newScenePath); /*! -Update all resouces paths. +Update all resources paths. */ void updatePaths(); /*! -Set all resouces paths to old paths. +Set all resources paths to old paths. */ void rollbackPaths(); /*! diff --git a/toonz/sources/include/toonz/skeleton.h b/toonz/sources/include/toonz/skeleton.h index 49f8ce5a..4f3de450 100644 --- a/toonz/sources/include/toonz/skeleton.h +++ b/toonz/sources/include/toonz/skeleton.h @@ -61,7 +61,7 @@ public: TPointD m_center; // position of the rotation center of the stageobject, // i.e. the "joint" bool m_selected; // true if the bone belongs to the active chain (i.e. - // handle <-> pinned ponts) + // handle <-> pinned points) PinnedStatus m_pinnedStatus; }; // class Bone @@ -75,7 +75,7 @@ public: ~Skeleton(); //! create a skeleton containing 'col'. - //! tempPinnedColumns contains the column indices of the temporarly pinned + //! tempPinnedColumns contains the column indices of the temporarily pinned //! bones void build(TXsheet *xsh, int row, int col, const std::set &tempPinnedColumns = std::set()); diff --git a/toonz/sources/include/toonz/tdistort.h b/toonz/sources/include/toonz/tdistort.h index e878e5d4..e93c9e9a 100644 --- a/toonz/sources/include/toonz/tdistort.h +++ b/toonz/sources/include/toonz/tdistort.h @@ -223,7 +223,7 @@ private: //! Compute the matrix used to distort image. //! First is compute a transformation A' starting from m_startPoints to (0,0), //! (0,1), (1,1), (1,0); - //! the a second tranformation A'' is compute starting from (0,0), (0,1), + //! the second tranformation A'' is computed starting from (0,0), (0,1), //! (1,1), (1,0) to m_endPoints. //! The resulting matrix is A'*A''. void computeMatrix(); diff --git a/toonz/sources/include/toonz/toonzscene.h b/toonz/sources/include/toonz/toonzscene.h index 55e92ad1..679ca41d 100644 --- a/toonz/sources/include/toonz/toonzscene.h +++ b/toonz/sources/include/toonz/toonzscene.h @@ -116,11 +116,11 @@ public: const TFilePath path) const; //!< Builds the path to be used during a //!< level import operation. - /*! \details If convertion is required, a new level file will be created + /*! \details If conversion is required, a new level file will be created and \p levelPath will be substituted with its new path. \return Whether the level doesn't need to be converted or - the convertion succeeded. */ + the conversion succeeded. */ bool convertLevelIfNeeded(TFilePath &levelPath); //!< Checks if the given //! levelPath is a file path @@ -169,7 +169,7 @@ Return scene frame count. int getFrameCount() const; /*! -Returs frame count stored in the scene header. +Returns frame count stored in the scene header. Quicker than load(fp); getFrameCount() */ int loadFrameCount(const TFilePath &fp); @@ -250,7 +250,7 @@ If \b scene is in +scenes/name.tnz return name, //! gets the contentHistory. possibly creates a new one (if createIfNeeded) TContentHistory *getContentHistory(bool createIfNeeded = false); - // shifts camera offet, returning old value; usend for steroscophy + // shifts camera offset, returning old value; usend for steroscophy double shiftCameraX(double val); void setVersionNumber(VersionNumber version) { m_versionNumber = version; } @@ -265,7 +265,7 @@ If \b scene is in +scenes/name.tnz return name, private: TFilePath m_scenePath; //!< Full path to the scene file (.tnz). - ChildStack *m_childStack; //!< Xsheet hierachy. + ChildStack *m_childStack; //!< Xsheet hierarchy. TSceneProperties *m_properties; TLevelSet *m_levelSet; TProject *m_project; diff --git a/toonz/sources/include/toonz/tstageobject.h b/toonz/sources/include/toonz/tstageobject.h index f1259ebb..4ad7051d 100644 --- a/toonz/sources/include/toonz/tstageobject.h +++ b/toonz/sources/include/toonz/tstageobject.h @@ -138,7 +138,7 @@ The default value is XY. The Keyframe struct define a keyframe. A keyframe allows to define object values in a specific frame. Keyframes are the starting and ending points of a transition in a scene. - Its parameters are taken as references to make changes on the paramters of + Its parameters are taken as references to make changes on the parameters of other frames, as: @@ -317,7 +317,7 @@ object. //! Returns true if \e frame is a keyframe for all channels. bool isFullKeyframe(int frame) const; - //! Returns true if \e frame is a keyframe for all channels with exeption of + //! Returns true if \e frame is a keyframe for all channels with execption of //! global scale channel. bool is52FullKeyframe(int frame) const; @@ -439,7 +439,7 @@ Doesn't delete \e this. */ void detachFromParent(); - //! Makes all children of \e this childern of \e parentId. + //! Makes all children of \e this children of \e parentId. void attachChildrenToParent(const TStageObjectId &parentId); //! Resets the area position setting internal time of the object and of all @@ -449,8 +449,8 @@ Doesn't delete \e this. /*! Return true if current object is visible, if object position in z-axis is less than 1000; othrwise return false. - \n Set \b TAffine \b aff to current object trasformation matrix computed - using camera and object trasformation matrix, + \n Set \b TAffine \b aff to current object transformation matrix computed + using camera and object transformation matrix, \b cameraAff, \b objectAff, and using camera and object position in z-axis, \b cameraZ, \b objectZ. \n \b objectZ default value is zero, big value describe the nearest camera diff --git a/toonz/sources/include/toonz/tstageobjecttree.h b/toonz/sources/include/toonz/tstageobjecttree.h index 719c928e..ddaf7949 100644 --- a/toonz/sources/include/toonz/tstageobjecttree.h +++ b/toonz/sources/include/toonz/tstageobjecttree.h @@ -120,7 +120,7 @@ parent of the removed column. void removeColumn(int index); /*! - Remove from current stage objetc tree the stage objetc with \b + Remove from current stage object tree the stage object with \b TStageObjectId \b \e id. \n It doesn't delete the stage object. \sa insertStageObject() and removeColumn() @@ -133,7 +133,7 @@ TStageObjectId \b \e id. */ void insertStageObject(TStageObject *object); /*! - This method swaps colum \b \e i with column \b \e j. + This method swaps column \b \e i with column \b \e j. Columns \b \e i and \b \e j must exist. */ void swapColumns(int i, int j); @@ -187,7 +187,7 @@ Returns the numbers of the objects in the tree. An Handle Manager is an object that implements a method to retrieve the point position of the handle given its id and its name. - See TStageObject::getHandle() for an explanation of what an hanlde is. + See TStageObject::getHandle() for an explanation of what a handle is. */ void setHandleManager(HandleManager *hm); /*! @@ -271,7 +271,7 @@ index \b \e cameraIndex. return getCamera(TStageObjectId::CameraId(cameraIndex)); } /*! -Return a pointer to current stage objetc tree camera \b TCamera. +Return a pointer to current stage object tree camera \b TCamera. \sa getCamera() and getCurrentCameraId() */ inline TCamera *getCurrentCamera() { return getCamera(getCurrentCameraId()); } diff --git a/toonz/sources/include/toonz/txshcolumn.h b/toonz/sources/include/toonz/txshcolumn.h index fe3fb0fe..526e08b7 100644 --- a/toonz/sources/include/toonz/txshcolumn.h +++ b/toonz/sources/include/toonz/txshcolumn.h @@ -40,7 +40,7 @@ class TFx; \b TXshCellColumn, \b TXshSoundColumn and TXshPaletteColumn. The class contains all features about a generic xsheet column and gives - all methods to access to these informations. + all methods to access to these information. The createEmpty() static method creates an new empty column. diff --git a/toonz/sources/include/toonz/txsheet.h b/toonz/sources/include/toonz/txsheet.h index 03bf001a..2023c457 100644 --- a/toonz/sources/include/toonz/txsheet.h +++ b/toonz/sources/include/toonz/txsheet.h @@ -60,7 +60,7 @@ class ExpressionReferenceMonitor; // TXsheet declaration //**************************************************************************************** -//! This is the base class for an xsheet. An Xsheet is composed of colums of +//! This is the base class for an xsheet. An Xsheet is composed of columns of //! frames. /*! Inherits \b TSmartObject and \b TPersist. @@ -76,7 +76,7 @@ ToonzScene. For purposes of this class, a Column is a graphics layer, and a row is a frame number. - (Whether horizontal or vertial is a matter of displaying). + (Whether horizontal or vertical is a matter of displaying). A \b column \b set contains all xsheet columns. A collection of functions, concerning column @@ -591,7 +591,7 @@ private: TXsheet(const TXsheet &); TXsheet &operator=(const TXsheet &); - /*! Return column in index if exists, overwise create a new column; + /*! Return column in index if exists, otherwise create a new column; if column exist and is empty check \b isSoundColumn and return right type. */ TXshColumn *touchColumn(int index, diff --git a/toonz/sources/include/toonz/txshlevel.h b/toonz/sources/include/toonz/txshlevel.h index 820fce5b..7cee418a 100644 --- a/toonz/sources/include/toonz/txshlevel.h +++ b/toonz/sources/include/toonz/txshlevel.h @@ -37,7 +37,7 @@ class TXshSoundTextLevel; \b TXshChildLevel, \b TXshSimpleLevel and \b TXshZeraryFxLevel. The class contains all features about a generic level and gives all methods - to access to these informations. + to access to these information. It's possible ot know level name, getName(), or identify level types getType(), diff --git a/toonz/sources/include/toonz/txshnoteset.h b/toonz/sources/include/toonz/txshnoteset.h index 50a5e3e4..1f59bb92 100644 --- a/toonz/sources/include/toonz/txshnoteset.h +++ b/toonz/sources/include/toonz/txshnoteset.h @@ -30,7 +30,7 @@ public: struct Note { //! Default colors are defined in TSceneProperties int m_colorIndex; - //! Is html test, contains font inforamtion. + //! Is html test, contains font information. QString m_text; int m_row; int m_col; diff --git a/toonz/sources/include/toonz/vectorizerparameters.h b/toonz/sources/include/toonz/vectorizerparameters.h index 707ed5a0..49e36823 100644 --- a/toonz/sources/include/toonz/vectorizerparameters.h +++ b/toonz/sources/include/toonz/vectorizerparameters.h @@ -33,12 +33,12 @@ class TOStream; /*! \brief Provides a base container for vectorization options. - \details All vectorization options and informations are passed from higher + \details All vectorization options and information are passed from higher (like \p VectorizerPopup) to lower layers (\p VectorizerCore) of the vectorization process inside a \p VectorizerConfiguration variable. This typically includes vectorization modes, various sensitivity and - accuracy parameters, and post-processing informations. This class + accuracy parameters, and post-processing information. This class merely acts as a base parameters container (although no pure virtual method is present) - meaning that every vectorization method inherits diff --git a/toonz/sources/include/toonzqt/doublepairfield.h b/toonz/sources/include/toonzqt/doublepairfield.h index 7d8799d9..6160e05c 100644 --- a/toonz/sources/include/toonzqt/doublepairfield.h +++ b/toonz/sources/include/toonzqt/doublepairfield.h @@ -213,7 +213,7 @@ signals: DoublePairField* doublePairFieldExample = new DoublePairField(this); doublePairFieldExample->setLeftText(tr("Left Value:")); - doublePairFieldExample->setRightText(tr("Rigth + doublePairFieldExample->setRightText(tr("Right Value:")); doublePairFieldExample->setRange(0,10); doublePairFieldExample->setValues(std::make_pair(3.58,7.65)); @@ -240,7 +240,7 @@ public: MeasuredDoublePairField* doublePairFieldExample = new MeasuredDoublePairField(this); doublePairFieldExample->setLeftText(tr("Left Value:")); - doublePairFieldExample->setRightText(tr("Rigth + doublePairFieldExample->setRightText(tr("Right Value:")); doublePairFieldExample->setRange(0,10); doublePairFieldExample->setValues(std::make_pair(3.58,7.65)); diff --git a/toonz/sources/include/toonzqt/dvscrollwidget.h b/toonz/sources/include/toonzqt/dvscrollwidget.h index ddbaeeb7..97f27981 100644 --- a/toonz/sources/include/toonzqt/dvscrollwidget.h +++ b/toonz/sources/include/toonzqt/dvscrollwidget.h @@ -53,7 +53,7 @@ class QTimer; available content space in that direction. They are \a empty by default, but can be filled in or styled with a style sheet. - In the latter case, they are given an object name dependant on the + In the latter case, they are given an object name dependent on the scroll orientation - in the form ScrollButton. diff --git a/toonz/sources/include/toonzqt/flipconsole.h b/toonz/sources/include/toonzqt/flipconsole.h index 5af91a28..85233232 100644 --- a/toonz/sources/include/toonzqt/flipconsole.h +++ b/toonz/sources/include/toonzqt/flipconsole.h @@ -259,7 +259,7 @@ public: const QString &customizeId, FlipConsoleOwner *consoleOwner, // call // consoleOwner->onDrawFrame() - // intead of emitting drawFrame + // instead of emitting drawFrame // signal bool enableBlanks = false); void enableBlanks(bool state); diff --git a/toonz/sources/include/toonzqt/functionpanel.h b/toonz/sources/include/toonzqt/functionpanel.h index dce02301..e2956b96 100644 --- a/toonz/sources/include/toonzqt/functionpanel.h +++ b/toonz/sources/include/toonzqt/functionpanel.h @@ -143,7 +143,7 @@ public: double xToFrame(double x) const; double frameToX(double frame) const; - // note: the y-unit depends on the unit (e.g. degress, inches,..) and + // note: the y-unit depends on the unit (e.g. degrees, inches,..) and // therefore on the curve double valueToY(TDoubleParam *curve, double value) const; double yToValue(TDoubleParam *curve, double y) const; diff --git a/toonz/sources/include/toonzqt/functionsegmentviewer.h b/toonz/sources/include/toonzqt/functionsegmentviewer.h index c05ddcba..982fcd5c 100644 --- a/toonz/sources/include/toonzqt/functionsegmentviewer.h +++ b/toonz/sources/include/toonzqt/functionsegmentviewer.h @@ -77,7 +77,7 @@ public: void refresh(); - // overriden from TDoubleParamObserver + // overridden from TDoubleParamObserver void onChange(const TParamChange &) override { refresh(); } void setXsheetHandle(TXsheetHandle *xshHandle) { m_xshHandle = xshHandle; } @@ -200,7 +200,7 @@ public: void refresh() override; void apply() override; - // return false if a circular reference is occured + // return false if a circular reference is occurred bool getGuiValues(std::string &expressionText, std::string &unitName); void init(int segmentLength) override; diff --git a/toonz/sources/include/toonzqt/fxschematicscene.h b/toonz/sources/include/toonzqt/fxschematicscene.h index 296ad356..47211053 100644 --- a/toonz/sources/include/toonzqt/fxschematicscene.h +++ b/toonz/sources/include/toonzqt/fxschematicscene.h @@ -138,8 +138,8 @@ public: void simulateDisconnectSelection(bool disconnect); //! Updates all Group Editors containing fx. - //! Each fx is only in one group, but each gruop can contains othe group. All - //! nested Groups must be updated. + //! Each fx is only in one group, but each gruop can contains other group. + // All nested Groups must be updated. void updateNestedGroupEditors(FxSchematicNode *node, const QPointF &newPos); void closeInnerMacroEditor(int groupId); void resizeNodes(bool maximizedNode); diff --git a/toonz/sources/include/toonzqt/intpairfield.h b/toonz/sources/include/toonzqt/intpairfield.h index 1bc282c5..fe3cea3f 100644 --- a/toonz/sources/include/toonzqt/intpairfield.h +++ b/toonz/sources/include/toonzqt/intpairfield.h @@ -67,7 +67,7 @@ namespace DVGui { IntPairField* intPairFieldExample = new IntPairField(this); intPairFieldExample->setLeftText(tr("Left Value:")); - intPairFieldExample->setRightText(tr("Rigth Value:")); + intPairFieldExample->setRightText(tr("Right Value:")); intPairFieldExample->setRange(0,10); intPairFieldExample->setValues(std::make_pair(3,8)); \endcode diff --git a/toonz/sources/include/toonzqt/menubarcommand.h b/toonz/sources/include/toonzqt/menubarcommand.h index 2c46a39f..20930951 100644 --- a/toonz/sources/include/toonzqt/menubarcommand.h +++ b/toonz/sources/include/toonzqt/menubarcommand.h @@ -155,7 +155,7 @@ public: bool canUseShortcut(QString shortcut); QAction *getAction(CommandId id, bool createIfNeeded = false); - // createAction creates a new indepenent QAction with text and shortcut + // createAction creates a new independent QAction with text and shortcut // if the action is a toggle action (e.g. show/hide something) the text is // controlled by state // you can use createAction() for context menu diff --git a/toonz/sources/include/toonzqt/schematicnode.h b/toonz/sources/include/toonzqt/schematicnode.h index c4261258..b599e547 100644 --- a/toonz/sources/include/toonzqt/schematicnode.h +++ b/toonz/sources/include/toonzqt/schematicnode.h @@ -257,13 +257,13 @@ public: SchematicPort *getEndPort() const { return m_endPort; } /*! Returns the other SchematicPort linked to the specified \b port.\n - Returns 0 if \b port isn't neither the start SchematicPort eihter the end + Returns 0 if \b port isn't neither the start SchematicPort either the end SchematicPort of this link.*/ SchematicPort *getOtherPort(const SchematicPort *port) const; /*! Returns the other SchematicNode linked to the specified \b node.\n Returns 0 if \b node isn't neither the parent node of the start SchematicPort - eihter the parent node of the end SchematicPort of the link.*/ + either the parent node of the end SchematicPort of the link.*/ SchematicNode *getOtherNode(const SchematicNode *node) const; //! Returns true if the link is line shaped. @@ -294,7 +294,7 @@ protected: links but can begin to draw links.\n A SchematicPort has got a hook thet is a position where links starts or ends.\n - A SchematicPort can be linked to an arbitriary number of links. + A SchematicPort can be linked to an arbitrary number of links. A SchematicPort handles a container of all links to retrieve all linked node; each link is indexed using a progressive number assigned when the link is inserted to the container. diff --git a/toonz/sources/include/toonzqt/schematicviewer.h b/toonz/sources/include/toonzqt/schematicviewer.h index e7068495..9a52e40e 100644 --- a/toonz/sources/include/toonzqt/schematicviewer.h +++ b/toonz/sources/include/toonzqt/schematicviewer.h @@ -90,7 +90,7 @@ protected: //! Returns \b true if no nodes intersects \b rect. bool isAnEmptyZone(const QRectF &rect); //! Returns a vector containing all nodes which had their bounding rects - //! conatined in \b node bounding + //! contained in \b node bounding //! rect enlarged of 10. QVector getPlacedNode(SchematicNode *node); diff --git a/toonz/sources/include/toonzqt/stageschematicscene.h b/toonz/sources/include/toonzqt/stageschematicscene.h index 56f84ec5..19c5eb07 100644 --- a/toonz/sources/include/toonzqt/stageschematicscene.h +++ b/toonz/sources/include/toonzqt/stageschematicscene.h @@ -29,7 +29,7 @@ class StageSchematicGroupEditor; // //================================================================== //! Provide a structure representing a node af a tree. -//! This class mantains information about a node of the stage schematic and its +//! This class maintains information about a node of the stage schematic and its //! children. //! The tree is generated using the TStageObjectTree. //! The generated tree is used to oreder stage schematic nodes in the window. @@ -74,7 +74,7 @@ public: //! QGraphicsScene for the Stage Schematic. //! All StageSchematicNode, StageSchematicSplineNode and link are pleced and //! handled in this scene. -//! The scene mantains two mapping: +//! The scene maintains two mapping: //! one for StageSchematicNode and one for StageSchematicSplineNode. These //! mapping can be used to retrieve //! nodes and spline.\n diff --git a/toonz/sources/include/toonzqt/studiopaletteviewer.h b/toonz/sources/include/toonzqt/studiopaletteviewer.h index 07d8459b..8491874c 100644 --- a/toonz/sources/include/toonzqt/studiopaletteviewer.h +++ b/toonz/sources/include/toonzqt/studiopaletteviewer.h @@ -84,19 +84,19 @@ public: void setStdPaletteHandle(TPaletteHandle *stdPaletteHandle); TPaletteHandle *getStdPaletteHandle() const { return m_studioPaletteHandle; } - /*! Overriden from StudioPalette::Listener. */ + /*! Overridden from StudioPalette::Listener. */ void onStudioPaletteTreeChange() override { refresh(); } - /*! Overriden from StudioPalette::Listener. */ + /*! Overridden from StudioPalette::Listener. */ void onStudioPaletteMove(const TFilePath &dstPath, const TFilePath &srcPath) override { refresh(); } - /*! Overriden from StudioPalette::Listener. */ + /*! Overridden from StudioPalette::Listener. */ void onStudioPaletteChange(const TFilePath &palette) override { refresh(); } - /*! Overriden from TProjectManager::Listener. */ + /*! Overridden from TProjectManager::Listener. */ void onProjectSwitched() override { resetProjectPaletteFolder(); } - /*! Overriden from TProjectManager::Listener. */ + /*! Overridden from TProjectManager::Listener. */ void onProjectChanged() override { resetProjectPaletteFolder(); } TFilePath getCurrentItemPath() { return getItemPath(currentItem()); } diff --git a/toonz/sources/include/toonzqt/viewcommandids.h b/toonz/sources/include/toonzqt/viewcommandids.h index c8a8b3af..41ef0d88 100644 --- a/toonz/sources/include/toonzqt/viewcommandids.h +++ b/toonz/sources/include/toonzqt/viewcommandids.h @@ -15,7 +15,7 @@ #define V_RotateReset "T_RotateReset" #define V_PositionReset "T_PositionReset" -// folloing command ids are for command bar +// following command ids are for command bar #define VB_ViewReset "VB_ViewReset" #define VB_ZoomFit "VB_ZoomFit" #define VB_ZoomReset "VB_ZoomReset" diff --git a/toonz/sources/include/toutputproperties.h b/toonz/sources/include/toutputproperties.h index ded931c8..f22c0269 100644 --- a/toonz/sources/include/toutputproperties.h +++ b/toonz/sources/include/toutputproperties.h @@ -24,7 +24,7 @@ class BoardSettings; //============================================================================= //! The TOutputProperties class provides a container for output properties and -//! gives all methods to access to these informations. +//! gives all methods to access to these information. /*!The class contains all features necessaries to compute output and provides a collection of functions that return the various feature, and enable manipulation of these. @@ -42,18 +42,18 @@ class BoardSettings; The getWhichLevels() function return a value is used to characterize which levels are in output: - \li If value is TOutputProperties::AllLevels all levels are coputed in + \li If value is TOutputProperties::AllLevels all levels are computed in output. \li If value is TOutputProperties::SelectedOnly only selectecd levels are - coputed in output. + computed in output. \li If value is TOutputProperties::AnimatedOnly only animated levels are - coputed in output. + computed in output. It can be set by setWhichLevels(). - The getFileFormatProperties(string ext) function return file of fomat \b ext + The getFileFormatProperties(string ext) function return file of format \b ext properties \b TPropertyGroup. It's possibile set different format and have - appropriete properties. + appropriate properties. The getRenderSettings() function return render settings \b TRenderSettings, it can be change using setRenderSettings(). @@ -64,7 +64,7 @@ class DVAPI TOutputProperties { public: /*! This enum type is used to characterize which levels are in output. -Can set in output all lavel, only selectecd levels or only animated levels. +Can set in output to all levels, only selected levels or only animated levels. \sa getWhichLevels(), setWhichLevels() */ enum { AllLevels, SelectedOnly, AnimatedOnly }; diff --git a/toonz/sources/include/tpalette.h b/toonz/sources/include/tpalette.h index f3f2b4df..869ef819 100644 --- a/toonz/sources/include/tpalette.h +++ b/toonz/sources/include/tpalette.h @@ -74,7 +74,7 @@ Index \p 1 current implementation, copy and assignment are \a forbidden. This behavior is somewhat - inconsitent since a palette \b is currently \a clonable and \a assignable + inconsistent since a palette \b is currently \a clonable and \a assignable with the appropriate functions. Normalization to common C++ syntax should be enforced ASAP. @@ -206,10 +206,10 @@ private: bool m_isLocked; //!< Whether the palette is locked. bool m_askOverwriteFlag; //!< This variable is quite unique. This flag is to - //! acheive following beghavior: + //! achieve following behavior: //! When saving the level with the palette being edited, ask whether the //! palette - //! should be overwitten ONLY ONCE AT THE FIRST TIME. + //! should be overwritten ONLY ONCE AT THE FIRST TIME. //! The confirmation dialog will not be opened unless the palette is edited //! again, //! even if the palette's dirtyflag is true. @@ -335,7 +335,7 @@ between RGBA color components. bool isFromStudioPalette = false); //!< Copies src's page, color //! styles an animation table //! to the - //! correspondig features of the palette. + //! corresponding features of the palette. //! if the palette is copied from studio palette, this function will modify //! the original names. void merge(const TPalette *src, @@ -378,7 +378,7 @@ between RGBA color components. //! palette. void setRefImg(const TImageP &img); //!< Associates an image to this palette, //! that is an image in the frame - //! builded or modified using this palette. + //! built or modified using this palette. const TFilePath getRefImgPath() const { return m_refImgPath; diff --git a/toonz/sources/include/tparam.h b/toonz/sources/include/tparam.h index da957f3d..6f05ae31 100644 --- a/toonz/sources/include/tparam.h +++ b/toonz/sources/include/tparam.h @@ -34,7 +34,7 @@ class DVAPI TParam : public TSmartObject, public TPersist { public: /*! - The contructor store the name of the parameter and initialize his + The constructor store the name of the parameter and initialize his interface with I/O through the class TPersist. */ TParam(std::string name = "", std::string description = "", diff --git a/toonz/sources/include/tpersist.h b/toonz/sources/include/tpersist.h index c5b15b88..055224b1 100644 --- a/toonz/sources/include/tpersist.h +++ b/toonz/sources/include/tpersist.h @@ -112,7 +112,7 @@ inline std::string TPersist::getStreamTag() const { //------------------------------------------------------------------- /*! - This template class is used to create an istance of the class \a + This template class is used to create an instance of the class \a T. */ template diff --git a/toonz/sources/include/tpixel.h b/toonz/sources/include/tpixel.h index b3531cc9..0b8fe5b4 100644 --- a/toonz/sources/include/tpixel.h +++ b/toonz/sources/include/tpixel.h @@ -124,7 +124,7 @@ static inline TPixelRGBM32 from(const TPixelRGBM64 &pix); static TPixelRGBM32 from(const TPixelGR8 &pix); //!Converts TPixelGR16 into TPixelRGBM32 static TPixelRGBM32 from(const TPixelGR16 &pix); -//!In this conversion instead of truncating values fron 64 to 32 a randomic +//!In this conversion instead of truncating values from 64 to 32 a randomic dithering is performed. //!r is a unsigned int random value static inline TPixelRGBM32 from(const TPixelRGBM64 &pix, TUINT32 r); // per il diff --git a/toonz/sources/include/tpixelgr.h b/toonz/sources/include/tpixelgr.h index 8af211e5..23066cfc 100644 --- a/toonz/sources/include/tpixelgr.h +++ b/toonz/sources/include/tpixelgr.h @@ -50,12 +50,12 @@ public: inline void setValue(int _value) { value = (UCHAR)_value; } - //! In this conversion instead of truncating values fron 16 to 8 a randomic + //! In this conversion instead of truncating values from 16 to 8 a randomic //! dithering is performed. // randomNumber is an unsigned int random value static inline TPixelGR8 from(const TPixelGR16 &pix, TUINT32 randomNumber); // per il dithering - //! In this conversion instead of truncating values fron 64 to 8 a randomic + //! In this conversion instead of truncating values from 64 to 8 a randomic //! dithering is performed. // randomNumber is an unsigned int random value diff --git a/toonz/sources/include/traster.h b/toonz/sources/include/traster.h index b86641c2..378fc724 100644 --- a/toonz/sources/include/traster.h +++ b/toonz/sources/include/traster.h @@ -373,7 +373,7 @@ TRasterPT TRasterT::extractT(TRect &rect) { // // metodi inline di TRasterPT // (n.b. se non si fanno esplicitament "inline" NT si confonde con dll -// exort/import) +// export/import) // template diff --git a/toonz/sources/include/trasterfx.h b/toonz/sources/include/trasterfx.h index 7bc98c2f..45795c8c 100644 --- a/toonz/sources/include/trasterfx.h +++ b/toonz/sources/include/trasterfx.h @@ -38,7 +38,7 @@ class TPalette; //****************************************************************************** /*! - \brief Data class containing the relevant additional informations needed in + \brief Data class containing the relevant additional information needed in a render process. \details This class stores most of the data required by Toonz and single fxs @@ -55,7 +55,7 @@ class TPalette; render on the default reference. - \sa TRasterFx::compute() for further informations. + \sa TRasterFx::compute() for further information. */ class DVAPI TRenderSettings { diff --git a/toonz/sources/include/trenderer.h b/toonz/sources/include/trenderer.h index 40fcd3d0..8296f2e4 100644 --- a/toonz/sources/include/trenderer.h +++ b/toonz/sources/include/trenderer.h @@ -164,7 +164,7 @@ struct TRenderPort::RenderData { //! discouraged. Further //! improvements of the TRenderer's API will eventually make the need for these //! calls obsolete. However, -//! we've implemented the possibilty to rely on TRenderer's management support +//! we've implemented the possibility to rely on TRenderer's management support //! even in those cases - //! it can be done by declaring the render process' interesting events through //! the apposite declare..() <\a> diff --git a/toonz/sources/include/trenderresourcemanager.h b/toonz/sources/include/trenderresourcemanager.h index 559274a1..9b0f3da1 100644 --- a/toonz/sources/include/trenderresourcemanager.h +++ b/toonz/sources/include/trenderresourcemanager.h @@ -144,7 +144,7 @@ private: /*! \def MANAGER_FILESCOPE_DECLARATION(managerClass, generatorClass) This macro must be used at file scope to bind the manager to its generator instance - just place it after the generator definition. -\note In case the manager is dependant on some other manager, use the +\note In case the manager is dependent on some other manager, use the \c MANAGER_FILESCOPE_DECLARATION_DEP macro instead. */ diff --git a/toonz/sources/include/trop.h b/toonz/sources/include/trop.h index 7c451cca..d9d71cc6 100644 --- a/toonz/sources/include/trop.h +++ b/toonz/sources/include/trop.h @@ -172,7 +172,7 @@ DVAPI void quickPut(const TRasterP &out, const TRasterCM32P &up, const TPixel32 &globalColorScale = TPixel::Black, bool inksOnly = false); -// for trasparency check, ink check and paint check +// for transparency check, ink check and paint check class CmappedQuickputSettings { public: diff --git a/toonz/sources/include/tsimplecolorstyles.h b/toonz/sources/include/tsimplecolorstyles.h index f9920880..f28ebfc4 100644 --- a/toonz/sources/include/tsimplecolorstyles.h +++ b/toonz/sources/include/tsimplecolorstyles.h @@ -41,7 +41,7 @@ class TVectorImage; //********************************************************************************** /*! - Base classs for stroke color styles. + Base class for stroke color styles. */ class DVAPI TSimpleStrokeStyle : public TColorStyle { diff --git a/toonz/sources/include/tsound.h b/toonz/sources/include/tsound.h index c0371bc7..4cd6c7c1 100644 --- a/toonz/sources/include/tsound.h +++ b/toonz/sources/include/tsound.h @@ -80,7 +80,7 @@ public: /*! The class TSoundTrack contains all features about a sound track - and gives all methods to access to these informations + and gives all methods to access to these information */ class DVAPI TSoundTrack : public TSmartObject { DECLARE_CLASS_CODE @@ -198,7 +198,7 @@ Blanks the soundtrack in the given range. Range is expressed in seconds. void blank(double t0, double t1); /*! -Returns a new soundtrack obtained applying the given sound tranform +Returns a new soundtrack obtained applying the given sound transform to the soundtrack */ virtual TSoundTrackP apply(TSoundTransform *) = 0; diff --git a/toonz/sources/include/tsound_t.h b/toonz/sources/include/tsound_t.h index e13c6212..beedfb22 100644 --- a/toonz/sources/include/tsound_t.h +++ b/toonz/sources/include/tsound_t.h @@ -89,9 +89,9 @@ public: //---------------------------------------------------------------------------- /*! -Returns a soundtrack whom is a clone of the object for the spicified channel -A clone means that it's an object who lives indipendently from the other -from which it's created.It hasn't reference to the object. +Returns a soundtrack whom is a clone of the object for the specified channel. +A clone means that it's an object who lives independently from the other +from which it's created. It has no reference to the object. */ TSoundTrackP clone(TSound::Channel chan) const override { if (getChannelCount() == 1) @@ -139,7 +139,7 @@ from which it's created.It hasn't reference to the object. //---------------------------------------------------------------------------- - //! Applies a trasformation (echo, reverb, ect) to the object and returns the + //! Applies a transformation (echo, reverb, ect) to the object and returns the //! transformed soundtrack TSoundTrackP apply(TSoundTransform *transform) override; //---------------------------------------------------------------------------- diff --git a/toonz/sources/include/tstream.h b/toonz/sources/include/tstream.h index 27d53679..35451477 100644 --- a/toonz/sources/include/tstream.h +++ b/toonz/sources/include/tstream.h @@ -199,7 +199,7 @@ public: \param compressed Enables compression of the whole file \note Stream construction does not throw . However, the stream - status could be invalid. Remeber to check the stream validity using + status could be invalid. Remember to check the stream validity using operator bool(). \warning Stream compression has been verified to be unsafe. diff --git a/toonz/sources/include/tstroke.h b/toonz/sources/include/tstroke.h index cff106e1..19d622f7 100644 --- a/toonz/sources/include/tstroke.h +++ b/toonz/sources/include/tstroke.h @@ -67,7 +67,7 @@ public: //! to be erased TStroke &operator=(const TStroke &other); - //! Costructor + //! Constructor TStroke(); //! Build a stroke from an array of ThickPoint. @@ -322,7 +322,7 @@ Split a stroke at parameter t //! change tangent versus in the stroke /*! change tangent versus in a stroke -\note Change versus of all thickquadratric and change its postion in list +\note Change versus of all thickquadratric and change its position in list */ TStroke &changeDirection(); diff --git a/toonz/sources/include/tstrokedeformations.h b/toonz/sources/include/tstrokedeformations.h index 6ecc3013..11747032 100644 --- a/toonz/sources/include/tstrokedeformations.h +++ b/toonz/sources/include/tstrokedeformations.h @@ -218,7 +218,7 @@ public: /*! Use this constructor with increasePoints. - \param stroke a refernce to a stroke + \param stroke a reference to a stroke \param parameterOfNearest \param lengthOfDeformation */ diff --git a/toonz/sources/include/tsystem.h b/toonz/sources/include/tsystem.h index 2a111b11..f9c7b512 100644 --- a/toonz/sources/include/tsystem.h +++ b/toonz/sources/include/tsystem.h @@ -202,7 +202,7 @@ DVAPI TINT64 getMemorySize(bool onlyPhisicalMemory); /*! return true if not enough memory. It can happen for 2 reasons: 1) free phisical memory is close to 0; 2) the calling process has allocated the maximum amount of memory allowed - for a single process(tipically, for a 32 bits machine, 2GB)*/ + for a single process(typically, for a 32 bits machine, 2GB)*/ DVAPI bool memoryShortage(); diff --git a/toonz/sources/include/tthreadmessage.h b/toonz/sources/include/tthreadmessage.h index 67e11235..f7fa9a51 100644 --- a/toonz/sources/include/tthreadmessage.h +++ b/toonz/sources/include/tthreadmessage.h @@ -37,7 +37,7 @@ bool DVAPI isMainThread(); // executed the onDeliver function. // WARNING!! the sendblocking method will cause a deadlock if used in a // executable without main loop! (such as composer, cleanupper, etc.) -// NOTE: if the 'send' is called in the main thread, ther onDeliver is executed +// NOTE: if the 'send' is called in the main thread, then onDeliver is executed // immediately. class DVAPI Message { diff --git a/toonz/sources/include/ttoonzimage.h b/toonz/sources/include/ttoonzimage.h index bc1e9839..eaf6ab82 100644 --- a/toonz/sources/include/ttoonzimage.h +++ b/toonz/sources/include/ttoonzimage.h @@ -74,11 +74,11 @@ public: //! Return the savebox of the image TRect getSavebox() const { return m_savebox; } //! Set the savebox of the image. - /*! The savebox setted is the intersection between \b rect and the image + /*! The set savebox is the intersection between \b rect and the image * box.*/ void setSavebox(const TRect &rect); - //! Return the boundin box of the image. + //! Return the bounding box of the image. TRectD getBBox() const override { return convert(m_savebox); } //! Return the offset point of the image. diff --git a/toonz/sources/include/tvectorimage.h b/toonz/sources/include/tvectorimage.h index f897bcde..49fecb61 100644 --- a/toonz/sources/include/tvectorimage.h +++ b/toonz/sources/include/tvectorimage.h @@ -299,7 +299,7 @@ get the stroke nearest at point /*! Includes a (transformed) copy of imgs in this. If setSelected==true then selects imported strokes. - It also includes the color informations. + It also includes the color information. Try to assign the same stroke ids (if unused) */ void enableRegionComputing(bool enabled, bool notIntersectingStrokes); @@ -310,8 +310,8 @@ get the stroke nearest at point void enableMinimizeEdges(bool enabled); /*! Creates a new Image using the selected strokes. If removeFlag==true then removes selected strokes - It includes (in the new image) the color informations too. - It mantains stroke ids. + It includes (in the new image) the color information too. + It maintains stroke ids. */ TVectorImageP splitSelected(bool removeFlag); diff --git a/toonz/sources/include/tzerofinder.h b/toonz/sources/include/tzerofinder.h index 75fcc8b4..8f7bfa2c 100644 --- a/toonz/sources/include/tzerofinder.h +++ b/toonz/sources/include/tzerofinder.h @@ -56,7 +56,7 @@ bool findZero_Newton ( double x0 , for(i=0;i> &table_array /* diff --git a/toonz/sources/stdfx/igs_level_auto_in_camera.cpp b/toonz/sources/stdfx/igs_level_auto_in_camera.cpp index 9b562cf2..ca08959d 100644 --- a/toonz/sources/stdfx/igs_level_auto_in_camera.cpp +++ b/toonz/sources/stdfx/igs_level_auto_in_camera.cpp @@ -52,11 +52,11 @@ void level_ctable_template_(const unsigned int channels, const bool *act_sw, // user setting const int *in_min, // image pixel value const int *in_max, // image pixel value - const double *in_min_shift, // user settting - const double *in_max_shift, // user settting - const double *out_min, // user settting - const double *out_max, // user settting - const double *gamma, // user settting + const double *in_min_shift, // user setting + const double *in_max_shift, // user setting + const double *out_min, // user setting + const double *out_max, // user setting + const double *gamma, // user setting const unsigned int div_num, std::vector> &table_array /* diff --git a/toonz/sources/stdfx/igs_line_blur.cpp b/toonz/sources/stdfx/igs_line_blur.cpp index d94f86bc..95db3eb7 100644 --- a/toonz/sources/stdfx/igs_line_blur.cpp +++ b/toonz/sources/stdfx/igs_line_blur.cpp @@ -268,7 +268,7 @@ list_node *list_root::pop(list_node *clp_old) { class brush_curve_blur { public: - /* constructer */ + /* constructor */ brush_curve_blur(void) { int32_t ii; @@ -290,7 +290,7 @@ public: this->_da_pixel[ii] = 0.0; } } - /* constructer */ + /* constructor */ ~brush_curve_blur(void) { this->mem_free(); } /* パラメータ設定 */ @@ -528,7 +528,7 @@ int brush_curve_blur::save(double d_xp, double d_yp, const char *cp_fname) { /* ピクセル位置から近点位置保存 */ if (fprintf(fp, "%g %g\n", d_xp + this->_dp_xp[ii], d_yp + this->_dp_yp[ii]) < 0) { - pri_funct_err_bttvr("Error : fprintf(avarage x y) returns minus"); + pri_funct_err_bttvr("Error : fprintf(average x y) returns minus"); fclose(fp); return NG; } @@ -3026,7 +3026,7 @@ void pixel_line_root::exec09_same_way_expand( clp_select->get_i32_count_max()); } - /* 各端点(one,anohter)ごと + /* 各端点(one,another)ごと 同方向線分となる端点の近点を探し、 それらの合成ベクトルによる角度との差を一時保管する */ for (clp_line = (pixel_line_node *)this->get_clp_first(), ii = 0; @@ -3049,7 +3049,7 @@ void pixel_line_root::exec09_same_way_expand( } } - /* 各端点(one,anohter)ごと + /* 各端点(one,another)ごと 伸ばした線分を、一時保管した角度に曲げる */ i32_count_one = 0; i32_count_another = 0; diff --git a/toonz/sources/stdfx/iwa_bloomfx.cpp b/toonz/sources/stdfx/iwa_bloomfx.cpp index c4643d9c..a2018e89 100644 --- a/toonz/sources/stdfx/iwa_bloomfx.cpp +++ b/toonz/sources/stdfx/iwa_bloomfx.cpp @@ -235,7 +235,7 @@ void Iwa_BloomFx::doCompute(TTile &tile, double frame, // that the gaussian blur (x 2) and the blur by rotation resampling (x sqrt2) double blurScale = 1.0 + (double)blurRadius; double no_blur_size = size / (blurScale * 1.5); - // find the mimimum "power of 2" value which is the same as or larger than the + // find the minimum "power of 2" value which is the same as or larger than the // filter size int level = 1; double power_of_2 = 1.0; diff --git a/toonz/sources/stdfx/iwa_bokeh_advancedfx.h b/toonz/sources/stdfx/iwa_bokeh_advancedfx.h index 1272a0d9..06d03c85 100644 --- a/toonz/sources/stdfx/iwa_bokeh_advancedfx.h +++ b/toonz/sources/stdfx/iwa_bokeh_advancedfx.h @@ -3,7 +3,7 @@ // Iwa_BokehAdvancedFx // Advanced version of Bokeh Fx Iwa // - Enabled to set different hardness for each layer -// - Enabled to apply the depth referene image for each layer +// - Enabled to apply the depth reference image for each layer //---------------------------------------- #ifndef IWA_BOKEH_ADVANCED_H diff --git a/toonz/sources/stdfx/iwa_bokeh_util.cpp b/toonz/sources/stdfx/iwa_bokeh_util.cpp index 9626913f..0c48e870 100644 --- a/toonz/sources/stdfx/iwa_bokeh_util.cpp +++ b/toonz/sources/stdfx/iwa_bokeh_util.cpp @@ -552,7 +552,7 @@ void BokehUtils::defineSegemntDepth( // amount if (std::abs(i - histo[i].belongingSegmentValue) > std::abs(i - h)) // the current segment value has - // proirity, if the distance is the same + // priority, if the distance is the same errorModAmount += (std::abs(i - histo[i].belongingSegmentValue) - std::abs(i - h)) * histo[i].pix_amount; @@ -578,7 +578,7 @@ void BokehUtils::defineSegemntDepth( // belongingSegmentValue if (std::abs(h - histo[h].belongingSegmentValue) > std::abs(h - tmpBestNewSegVal)) // the current segment value has - // proirity, if the distance is the same + // priority, if the distance is the same histo[h].belongingSegmentValue = tmpBestNewSegVal; } } diff --git a/toonz/sources/stdfx/iwa_fractalnoisefx.cpp b/toonz/sources/stdfx/iwa_fractalnoisefx.cpp index b734db08..e04817a2 100644 --- a/toonz/sources/stdfx/iwa_fractalnoisefx.cpp +++ b/toonz/sources/stdfx/iwa_fractalnoisefx.cpp @@ -191,7 +191,7 @@ void Iwa_FractalNoiseFx::doCompute(TTile &tile, double frame, getSamplePos(x, y, outDim, out_buf, gen, scale, param); // multiply affine transformation samplePos = currentAff * samplePos; - // adjust postion for the block pattern + // adjust position for the block pattern if (param.noiseType == Block) samplePos = TPointD(std::floor(samplePos.x) + 0.5, std::floor(samplePos.y) + 0.5); diff --git a/toonz/sources/stdfx/iwa_motionblurfx.cpp b/toonz/sources/stdfx/iwa_motionblurfx.cpp index 0cd2b2fb..b29a5885 100644 --- a/toonz/sources/stdfx/iwa_motionblurfx.cpp +++ b/toonz/sources/stdfx/iwa_motionblurfx.cpp @@ -870,7 +870,7 @@ bool Iwa_MotionBlurCompFx::doGetBBox(double frame, TRectD &bBox, return false; } - /* Rough implemetation - return infinite size if the background is connected + /* Rough implementation - return infinite size if the background is connected */ if (m_background.isConnected()) { bool _ret = m_background->doGetBBox(frame, bBox, info); diff --git a/toonz/sources/stdfx/iwa_pnperspectivefx.cpp b/toonz/sources/stdfx/iwa_pnperspectivefx.cpp index ff4bf7ef..60f2cede 100644 --- a/toonz/sources/stdfx/iwa_pnperspectivefx.cpp +++ b/toonz/sources/stdfx/iwa_pnperspectivefx.cpp @@ -471,7 +471,7 @@ void Iwa_PNPerspectiveFx::calcPNNormal_CPU(double4 *out_host, currentOffsetNoisePos[0].y, currentEvolution); } - // use center cell id if points are in the differnt cells + // use center cell id if points are in the different cells else { TPointD currentCenterNoisePos = (noisePos - currentOffset) * (1.0 / currentSize); @@ -517,7 +517,7 @@ void Iwa_PNPerspectiveFx::calcPNNormal_CPU(double4 *out_host, cam_vec = normalize(cam_vec); if (p.renderMode == PN_Params::WarpHV || p.renderMode == PN_Params::WarpHV2) { - // relfected vector from the plane + // reflected vector from the plane double alpha = dot(normal, cam_vec); double3 reflect_cam = { 2.0 * alpha * normal.x - cam_vec.x, diff --git a/toonz/sources/stdfx/iwa_soapbubblefx.h b/toonz/sources/stdfx/iwa_soapbubblefx.h index 7735b432..baf72a57 100644 --- a/toonz/sources/stdfx/iwa_soapbubblefx.h +++ b/toonz/sources/stdfx/iwa_soapbubblefx.h @@ -32,7 +32,7 @@ protected: TDoubleParamP m_center_opacity; TBoolParamP m_fit_thickness; - // obsolete parameter. to be conerted to m_center_opacity + // obsolete parameter. to be converted to m_center_opacity TBoolParamP m_mask_center; // noise parameters diff --git a/toonz/sources/stdfx/iwa_spectrumfx.cpp b/toonz/sources/stdfx/iwa_spectrumfx.cpp index 711a6f1a..74bcb46c 100644 --- a/toonz/sources/stdfx/iwa_spectrumfx.cpp +++ b/toonz/sources/stdfx/iwa_spectrumfx.cpp @@ -127,7 +127,7 @@ void Iwa_SpectrumFx::calcBubbleMap(float3 *bubbleColor, double frame, /* compute colors for two thickness values and fade them*/ for (int fadeId = 0; fadeId < 2; fadeId++) { - // if composit ratio is 0, skip computing + // if composite ratio is 0, skip computing if (tmp_ratio[fadeId] == 0.0f) continue; /* calculate the thickness of film (μm) */ diff --git a/toonz/sources/stdfx/iwa_tilefx.cpp b/toonz/sources/stdfx/iwa_tilefx.cpp index a68201a6..0ecd6463 100644 --- a/toonz/sources/stdfx/iwa_tilefx.cpp +++ b/toonz/sources/stdfx/iwa_tilefx.cpp @@ -73,11 +73,11 @@ Iwa_TileFx::Iwa_TileFx() bindParam(this, "leftQuantity", m_leftQuantity); m_leftQuantity->addItem(eOneTile, "1 Tile"); - m_leftQuantity->addItem(eMultipleTiles, "Mutiple Tiles"); + m_leftQuantity->addItem(eMultipleTiles, "Multiple Tiles"); bindParam(this, "rightQuantity", m_rightQuantity); m_rightQuantity->addItem(eOneTile, "1 Tile"); - m_rightQuantity->addItem(eMultipleTiles, "Mutiple Tiles"); + m_rightQuantity->addItem(eMultipleTiles, "Multiple Tiles"); bindParam(this, "xMirror", m_xMirror); @@ -86,11 +86,11 @@ Iwa_TileFx::Iwa_TileFx() bindParam(this, "topQuantity", m_topQuantity); m_topQuantity->addItem(eOneTile, "1 Tile"); - m_topQuantity->addItem(eMultipleTiles, "Mutiple Tiles"); + m_topQuantity->addItem(eMultipleTiles, "Multiple Tiles"); bindParam(this, "bottomQuantity", m_bottomQuantity); m_bottomQuantity->addItem(eOneTile, "1 Tile"); - m_bottomQuantity->addItem(eMultipleTiles, "Mutiple Tiles"); + m_bottomQuantity->addItem(eMultipleTiles, "Multiple Tiles"); bindParam(this, "yMirror", m_yMirror); diff --git a/toonz/sources/stdfx/localblurfx.cpp b/toonz/sources/stdfx/localblurfx.cpp index cf77e65d..45f30afa 100644 --- a/toonz/sources/stdfx/localblurfx.cpp +++ b/toonz/sources/stdfx/localblurfx.cpp @@ -10,7 +10,7 @@ NOTE: Current LocalBlurFx is effectively flawed. Following implementation relies on the idea that - the blurring filter is separable and therefore appliable on rows and + the blurring filter is separable and therefore applicable on rows and columns, in sequence. It actually is not. It can be easily verified applying the fx on a diff --git a/toonz/sources/stdfx/motionblurfx.cpp b/toonz/sources/stdfx/motionblurfx.cpp index 9d2de206..613b1496 100644 --- a/toonz/sources/stdfx/motionblurfx.cpp +++ b/toonz/sources/stdfx/motionblurfx.cpp @@ -193,7 +193,7 @@ void do_filtering(T *row1, T *row2, int length, double coeff, int brad, for (i = 0; i < length; i++) /* for the ith point the previous computing is used, with the values */ { - /* stored in the auxiliar variables sigma1 and sigma2. */ + /* stored in the auxiliary variables sigma1 and sigma2. */ rsum = ((Mblur - i) * sigma1.r + sigma2.r) / coeff; gsum = ((Mblur - i) * sigma1.g + sigma2.g) / coeff; bsum = ((Mblur - i) * sigma1.b + sigma2.b) / coeff; @@ -532,7 +532,7 @@ void DirectionalBlurBaseFx::doCompute(TTile &tile, double frame, m_input->getBBox(frame, bboxIn, ri); if (bboxIn == TConsts::infiniteRectD) bboxIn = rectTile; TPointD blur = (1.0 / shrink) * (aff * blurVector); - // enlarge must be bidirectional, because we need pixel on the ohter side of + // enlarge must be bidirectional, because we need pixel on the other side of // blur enlargeDir(bboxIn, blur, true); rectTile = bboxIn * rectTile.enlarge(fabs(blur.x), fabs(blur.y)); diff --git a/toonz/sources/stdfx/pins.h b/toonz/sources/stdfx/pins.h index abdd7172..9f61a351 100644 --- a/toonz/sources/stdfx/pins.h +++ b/toonz/sources/stdfx/pins.h @@ -46,7 +46,7 @@ public: bool operator!=(const FourPoints &fp) const { return !(*this == fp); } }; -// this function computes the perspective trasformation defined with +// this function computes the perspective transformation defined with //-transfFrom, transfTo- (the points in transfFrom goes in transfTo) // and applies it on the fourPoints from, and returns the result) FourPoints computeTransformed(const FourPoints &transfFrom, diff --git a/toonz/sources/stdfx/shaderfx.cpp b/toonz/sources/stdfx/shaderfx.cpp index 0996ce32..a3c19512 100644 --- a/toonz/sources/stdfx/shaderfx.cpp +++ b/toonz/sources/stdfx/shaderfx.cpp @@ -1059,7 +1059,7 @@ void ShaderFx::doCompute(TTile &tile, double frame, // Input tiles are NOT supplied to OpenGL here - but rather just before // drawing. - // It's probably beacuse a uniform integer variable must have already been + // It's probably because a uniform integer variable must have already been // bound // to prepare the associated sampler variable in the linkes program... } diff --git a/toonz/sources/stopmotion/stopmotion.cpp b/toonz/sources/stopmotion/stopmotion.cpp index a4c367d4..32067a76 100644 --- a/toonz/sources/stopmotion/stopmotion.cpp +++ b/toonz/sources/stopmotion/stopmotion.cpp @@ -1228,8 +1228,8 @@ void StopMotion::previousName() { std::wstring levelName; - // if the current level name is non-sequencial, then try to switch the last - // sequencial level in the scene. + // if the current level name is non-sequential, then try to switch the last + // sequential level in the scene. if (!nameCreator->setCurrent(m_levelName.toStdWString())) { TLevelSet *levelSet = TApp::instance()->getCurrentScene()->getScene()->getLevelSet(); diff --git a/toonz/sources/stopmotion/stopmotioncontroller.cpp b/toonz/sources/stopmotion/stopmotioncontroller.cpp index 9ec6257c..53b54be1 100644 --- a/toonz/sources/stopmotion/stopmotioncontroller.cpp +++ b/toonz/sources/stopmotion/stopmotioncontroller.cpp @@ -828,7 +828,7 @@ StopMotionController::StopMotionController(QWidget *parent) : QWidget(parent) { m_captureFramesCombo->setCurrentIndex( m_stopMotion->getCaptureNumberOfFrames() - 1); - // should choosing the file type is disabled for simplicty + // should choosing the file type is disabled for simplicity // too many options can be a bad thing m_fileTypeCombo = new QComboBox(this); m_fileFormatOptionButton = new QPushButton(tr("Options"), this); diff --git a/toonz/sources/tcomposer/tcomposer.cpp b/toonz/sources/tcomposer/tcomposer.cpp index 23765cdf..bca06e0b 100644 --- a/toonz/sources/tcomposer/tcomposer.cpp +++ b/toonz/sources/tcomposer/tcomposer.cpp @@ -673,7 +673,7 @@ int main(int argc, char *argv[]) { // Set the app's locale for numeric stuff to standard C. This is important for // atof() and similar - // calls that are locale-dependant. + // calls that are locale-dependent. setlocale(LC_NUMERIC, "C"); // Install run out of contiguous memory callback diff --git a/toonz/sources/tnzext/DeformationSelector.h b/toonz/sources/tnzext/DeformationSelector.h index 9d8d5415..47ea6296 100644 --- a/toonz/sources/tnzext/DeformationSelector.h +++ b/toonz/sources/tnzext/DeformationSelector.h @@ -15,7 +15,7 @@ namespace ToonzExt { * Priority can manage simply some strange case (corner that * seems to be straight corner and smooth corner). * - * @note Selection can be overriden by user. + * @note Selection can be overridden by user. * @note Private use only. */ class DeformationSelector { diff --git a/toonz/sources/tnztools/bendertool.cpp b/toonz/sources/tnztools/bendertool.cpp index 5293679d..53f80612 100644 --- a/toonz/sources/tnztools/bendertool.cpp +++ b/toonz/sources/tnztools/bendertool.cpp @@ -480,9 +480,9 @@ void BenderTool::findCurves(TVectorImageP &vi) { TStroke *s = vi->getStroke(i); // a useful reference - std::vector pair_intersection; // informations about extremes + std::vector pair_intersection; // information about extremes - // if there is interesection between stroke and bender tool + // if there is intersection between stroke and bender tool if (intersect(*s, m_benderSegment, pair_intersection)) { if (s->isSelfLoop()) { diff --git a/toonz/sources/tnztools/edittool.cpp b/toonz/sources/tnztools/edittool.cpp index 6d681722..0d43519d 100644 --- a/toonz/sources/tnztools/edittool.cpp +++ b/toonz/sources/tnztools/edittool.cpp @@ -1708,7 +1708,7 @@ bool EditTool::onPropertyChanged(std::string propertyName) { int EditTool::getCursorId() const { int ret; - // cursor for controling the fx gadget + // cursor for controlling the fx gadget if (m_highlightedDevice >= 1000) ret = ToolCursor::FxGadgetCursor; else if (transformEnabled()) { diff --git a/toonz/sources/tnztools/fingertool.cpp b/toonz/sources/tnztools/fingertool.cpp index 8a975d3c..09f6ef5f 100644 --- a/toonz/sources/tnztools/fingertool.cpp +++ b/toonz/sources/tnztools/fingertool.cpp @@ -302,7 +302,7 @@ FingerTool fingerTool; //============================================================================= // -// InkPaintTool implemention +// InkPaintTool implementation // //----------------------------------------------------------------------------- diff --git a/toonz/sources/tnztools/imagegrouping.cpp b/toonz/sources/tnztools/imagegrouping.cpp index 43fc5370..f34dcbd3 100644 --- a/toonz/sources/tnztools/imagegrouping.cpp +++ b/toonz/sources/tnztools/imagegrouping.cpp @@ -258,7 +258,7 @@ std::vector> getSelectedGroups(TVectorImage *vimg, return ret; } -} // namepsace +} // namespace //-------------------------------------------------------------------------------------- diff --git a/toonz/sources/tnztools/paintbrushtool.cpp b/toonz/sources/tnztools/paintbrushtool.cpp index 404dc843..163a501d 100644 --- a/toonz/sources/tnztools/paintbrushtool.cpp +++ b/toonz/sources/tnztools/paintbrushtool.cpp @@ -335,7 +335,7 @@ PaintBrushTool paintBrushTool; //============================================================================= // -// InkPaintTool implemention +// InkPaintTool implementation // //----------------------------------------------------------------------------- diff --git a/toonz/sources/tnztools/pinchtool.cpp b/toonz/sources/tnztools/pinchtool.cpp index 81c41671..af22d374 100644 --- a/toonz/sources/tnztools/pinchtool.cpp +++ b/toonz/sources/tnztools/pinchtool.cpp @@ -478,7 +478,7 @@ void PinchTool::mouseMove(const TPointD &pos, const TMouseEvent &event) { // update information about current stroke updateStrokeStatus(stroke, w); - // retrieve the currect m_deformation and + // retrieve the current m_deformation and // prepare to design and modify if (m_deformation) m_deformation->check(status); diff --git a/toonz/sources/tnztools/rastererasertool.cpp b/toonz/sources/tnztools/rastererasertool.cpp index 262d2adc..fe1080e2 100644 --- a/toonz/sources/tnztools/rastererasertool.cpp +++ b/toonz/sources/tnztools/rastererasertool.cpp @@ -708,7 +708,7 @@ EraserTool inkPaintEraserTool("T_Eraser"); //================================================================================================== // -// InkPaintTool implemention +// InkPaintTool implementation // //------------------------------------------------------------------------ diff --git a/toonz/sources/tnztools/rasterselection.cpp b/toonz/sources/tnztools/rasterselection.cpp index a84659f3..6afcb5c0 100644 --- a/toonz/sources/tnztools/rasterselection.cpp +++ b/toonz/sources/tnztools/rasterselection.cpp @@ -932,7 +932,7 @@ void RasterSelection::notify() { //! Empty the selection. //! If the selection is floating, the floating image is pasted using the current -//! tranformation. +//! transformation. void RasterSelection::selectNone() { if (isFloating()) { pasteFloatingSelection(); diff --git a/toonz/sources/tnztools/rgbpickertool.cpp b/toonz/sources/tnztools/rgbpickertool.cpp index e397c2ca..6e369b23 100644 --- a/toonz/sources/tnztools/rgbpickertool.cpp +++ b/toonz/sources/tnztools/rgbpickertool.cpp @@ -239,7 +239,7 @@ void RGBPickerTool::updateTranslation() { // Used to notify and set the currentColor outside the draw() methods: // using special style there was a conflict between the draw() methods of the // tool -// and the genaration of the icon inside the style editor (makeIcon()) which use +// and the generation of the icon inside the style editor (makeIcon()) which use // another glContext void RGBPickerTool::onImageChanged() { diff --git a/toonz/sources/tnztools/rgbpickertool.h b/toonz/sources/tnztools/rgbpickertool.h index 69053641..604ff15b 100644 --- a/toonz/sources/tnztools/rgbpickertool.h +++ b/toonz/sources/tnztools/rgbpickertool.h @@ -52,7 +52,7 @@ public: // Used to notify and set the currentColor outside the draw() methods: // using special style there was a conflict between the draw() methods of the // tool - // and the genaration of the icon inside the style editor (makeIcon()) which + // and the generation of the icon inside the style editor (makeIcon()) which // use // another glContext diff --git a/toonz/sources/tnztools/tool.cpp b/toonz/sources/tnztools/tool.cpp index f4614213..19a917a4 100644 --- a/toonz/sources/tnztools/tool.cpp +++ b/toonz/sources/tnztools/tool.cpp @@ -629,7 +629,7 @@ TTool::Application *TTool::getApplication() { //----------------------------------------------------------------------------- /*! Notify change of current image: update icon and notify level change. - If current object is a spline commit spline chenged. + If current object is a spline commit spline changed. If current mode is EditingLevel touch current frame. */ void TTool::notifyImageChanged() { diff --git a/toonz/sources/tnztools/toolhandle.cpp b/toonz/sources/tnztools/toolhandle.cpp index 72f76ae0..7e82e914 100644 --- a/toonz/sources/tnztools/toolhandle.cpp +++ b/toonz/sources/tnztools/toolhandle.cpp @@ -42,7 +42,7 @@ void ToolHandle::setTool(QString name) { if (m_tool) m_tool->onDeactivate(); - // Camera test uses the automaticly activated CameraTestTool + // Camera test uses the automatically activated CameraTestTool if (name != "T_CameraTest" && CameraTestCheck::instance()->isEnabled()) CameraTestCheck::instance()->setIsEnabled(false); diff --git a/toonz/sources/tnztools/tooloptions.cpp b/toonz/sources/tnztools/tooloptions.cpp index 0aca885e..453f1bf9 100644 --- a/toonz/sources/tnztools/tooloptions.cpp +++ b/toonz/sources/tnztools/tooloptions.cpp @@ -943,7 +943,7 @@ void ArrowToolOptionsBox::updateStageObjectComboItems() { } //------------------------------------------------------------------------------ -/*! syncronize the current item in the combobox to the selected stage object +/*! synchronize the current item in the combobox to the selected stage object */ void ArrowToolOptionsBox::syncCurrentStageObjectComboItem() { TStageObjectId curObjId = m_objHandle->getObjectId(); diff --git a/toonz/sources/tnztools/toonzvectorbrushtool.cpp b/toonz/sources/tnztools/toonzvectorbrushtool.cpp index 3161b9e8..e6744e39 100644 --- a/toonz/sources/tnztools/toonzvectorbrushtool.cpp +++ b/toonz/sources/tnztools/toonzvectorbrushtool.cpp @@ -1033,7 +1033,7 @@ void ToonzVectorBrushTool::leftButtonDrag(const TPointD &pos, invalidateRect += TRectD(m_brushPos - halfThick, m_brushPos + halfThick); if (!invalidateRect.isEmpty()) { - // for motion path, call the invalidate function directry to ignore dpi of + // for motion path, call the invalidate function directly to ignore dpi of // the current level if (m_isPath) m_viewer->GLInvalidateRect(invalidateRect.enlarge(2)); diff --git a/toonz/sources/tnztools/vectorerasertool.cpp b/toonz/sources/tnztools/vectorerasertool.cpp index ce313f99..d52158eb 100644 --- a/toonz/sources/tnztools/vectorerasertool.cpp +++ b/toonz/sources/tnztools/vectorerasertool.cpp @@ -369,7 +369,7 @@ private: } eraserTool; //============================================================================= -// EraserTool implemention +// EraserTool implementation //----------------------------------------------------------------------------- EraserTool::EraserTool() @@ -1406,7 +1406,7 @@ void EraserTool::eraseSegments(const TVectorImageP vi, TStroke *eraseStroke) { ranges = complement; } - // calculate how many lines are added for caculating the final index of added + // calculate how many lines are added for calculating the final index of added // strokes int added = 0; for (int i = touchedStrokeIndex.size() - 1; i >= 0; --i) { diff --git a/toonz/sources/tnztools/vectorselectiontool.h b/toonz/sources/tnztools/vectorselectiontool.h index ba900503..924b1bbe 100644 --- a/toonz/sources/tnztools/vectorselectiontool.h +++ b/toonz/sources/tnztools/vectorselectiontool.h @@ -153,7 +153,7 @@ public: void applyTransform(FourPoints bbox) override; void addTransformUndo() override; - /*! Trasform whole level and add undo. */ + /*! Transform whole level and add undo. */ void transformWholeLevel(); bool isFlip(); diff --git a/toonz/sources/toonz/CMakeLists.txt b/toonz/sources/toonz/CMakeLists.txt index a6e87e29..bbc9e20d 100644 --- a/toonz/sources/toonz/CMakeLists.txt +++ b/toonz/sources/toonz/CMakeLists.txt @@ -527,7 +527,7 @@ if(BUILD_ENV_APPLE) message("CMAKE_RUNTIME_OUTPUT_DIRECTORY:" ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) endif() -# copy utilty executables onto the directory after build +# copy utility executables onto the directory after build if(LZODRIVER_FOUND) add_custom_command(TARGET Tahoma2D POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy $ ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} DEPENDS lzocompress) add_custom_command(TARGET Tahoma2D POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy $ ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} DEPENDS lzodecompress) diff --git a/toonz/sources/toonz/ObjectTracker.cpp b/toonz/sources/toonz/ObjectTracker.cpp index 9878f70b..d79a781d 100644 --- a/toonz/sources/toonz/ObjectTracker.cpp +++ b/toonz/sources/toonz/ObjectTracker.cpp @@ -30,7 +30,7 @@ using namespace std; #define MAX_FLOAT 3.40282e+38; //--------------------------------------------------------------------------------------------------------- -// Costructor +// Constructor CObjectTracker::CObjectTracker(int imW, int imH, bool _colorimage, bool _att_background, bool _man_occlusion) { att_background = _att_background; @@ -353,7 +353,7 @@ void CObjectTracker::FindWightsAndCOM(TRaster32P *frame, float(*histogram)) { std::unique_ptr weights(new float[HISTOGRAM_LENGTH]); - // weigths + // weights for (i = 0; i < HISTOGRAM_LENGTH; i++) { if (histogram[i] > 0.0) weights[i] = sqrt(m_sTrackingObject.initHistogram[i] / histogram[i]); diff --git a/toonz/sources/toonz/adjustthicknesspopup.h b/toonz/sources/toonz/adjustthicknesspopup.h index edaa239c..0be4b973 100644 --- a/toonz/sources/toonz/adjustthicknesspopup.h +++ b/toonz/sources/toonz/adjustthicknesspopup.h @@ -83,7 +83,7 @@ public: public: /*! \remark Value STROKES restricts m_framesType to SELECTED_FRAMES, and - m_frameIdxs to a sigle element. */ + m_frameIdxs to a single element. */ ContentType m_contentType; //!< Content type of the selection. FramesType m_framesType; //!< Frames type of the selection. diff --git a/toonz/sources/toonz/autoinputcellnumberpopup.cpp b/toonz/sources/toonz/autoinputcellnumberpopup.cpp index 373a575e..a31d34a9 100644 --- a/toonz/sources/toonz/autoinputcellnumberpopup.cpp +++ b/toonz/sources/toonz/autoinputcellnumberpopup.cpp @@ -324,7 +324,7 @@ void AutoInputCellNumberPopup::doExecute(bool overwrite) { cellSelection->selectCells(r0, c0, r0 + undo->rowsCount() - 1, c1); TApp::instance()->getCurrentSelection()->notifySelectionChanged(); } - // If exection is properly completed, then close this popup + // If execution is properly completed, then close this popup close(); } @@ -388,7 +388,7 @@ bool AutoInputCellNumberPopup::getTarget(std::vector &columnIndices, // something must be selected if (selection->isEmpty()) return false; - // selection must be cells or collumns + // selection must be cells or columns TCellSelection *cellSelection = dynamic_cast(selection); TColumnSelection *columnSelection = dynamic_cast(selection); diff --git a/toonz/sources/toonz/boardsettingspopup.cpp b/toonz/sources/toonz/boardsettingspopup.cpp index f538ed96..b9163451 100644 --- a/toonz/sources/toonz/boardsettingspopup.cpp +++ b/toonz/sources/toonz/boardsettingspopup.cpp @@ -964,7 +964,7 @@ void BoardSettingsPopup::hideEvent(QHideEvent* event) { // called on changing the current row of ItemListView void BoardSettingsPopup::onCurrentItemSwitched(int index) { - // updat Info + // update Info m_itemInfoView->setCurrentItem(index); m_boardView->update(); diff --git a/toonz/sources/toonz/cachefxcommand.cpp b/toonz/sources/toonz/cachefxcommand.cpp index 8f837713..563d98c8 100644 --- a/toonz/sources/toonz/cachefxcommand.cpp +++ b/toonz/sources/toonz/cachefxcommand.cpp @@ -85,13 +85,13 @@ CacheFxCommand::CacheFxCommand() { TApp *app = TApp::instance(); bool ret = true; - // Connect the variuos handles to the associated function in the + // Connect the various handles to the associated function in the // CacheFxCommand singleton. // Please observe that these connections are performed BEFORE rendering // classes are instanced - // which is needed to ensure that the proper cache updates have already been // performed when - // rendering instaces receive the update signal. + // rendering instances receive the update signal. // ret = ret && // connect(app->getCurrentLevel(),SIGNAL(xshLevelChanged()),this,SLOT(onLevelChanged())); @@ -202,7 +202,7 @@ for(j=0; jisCacheEnabled()) { std::set terminalFxs; diff --git a/toonz/sources/toonz/cleanuppopup.cpp b/toonz/sources/toonz/cleanuppopup.cpp index 1458370e..653a63ba 100644 --- a/toonz/sources/toonz/cleanuppopup.cpp +++ b/toonz/sources/toonz/cleanuppopup.cpp @@ -1008,7 +1008,7 @@ QString CleanupPopup::setupLevel() { app->getPaletteController()->getCurrentLevelPalette()->setPalette( palette.getPointer()); - // Notify the xsheet that the level has changed visual type informations + // Notify the xsheet that the level has changed visual type information // (either the level type, // cleanup status, etc) app->getCurrentXsheet()->notifyXsheetChanged(); @@ -1475,7 +1475,7 @@ CleanupPopup::OverwriteDialog::OverwriteDialog() suffixLayout->addWidget(m_suffix); } - addLayout(suffixLayout); // Couldnt' place it right after allocation, + addLayout(suffixLayout); // Couldn't place it right after allocation, // DVGui::Dialog::addLayout() crashed... // Option 5: NOPAINT_ONLY radioButton = new QRadioButton(this); diff --git a/toonz/sources/toonz/colormodelviewer.cpp b/toonz/sources/toonz/colormodelviewer.cpp index 26f6fde2..706d5e49 100644 --- a/toonz/sources/toonz/colormodelviewer.cpp +++ b/toonz/sources/toonz/colormodelviewer.cpp @@ -441,7 +441,7 @@ void ColorModelViewer::changePickType() { //----------------------------------------------------------------------------- /*! If current palette level exists reset image viewer and set current viewer - to refences image path level. + to reference image path level. */ void ColorModelViewer::updateViewer() { getImageViewer()->repaint(); } diff --git a/toonz/sources/toonz/columncommand.cpp b/toonz/sources/toonz/columncommand.cpp index bdca0416..8ad68704 100644 --- a/toonz/sources/toonz/columncommand.cpp +++ b/toonz/sources/toonz/columncommand.cpp @@ -1211,7 +1211,7 @@ void ColumnCmd::clearCells(int index) { // - If onlyColumns is true, it means that only columns with specified indices // will be removed. // - If onlyColumns is false, it means that the relevant pegbars will be removed -// as well (when collapsing collumns). +// as well (when collapsing columns). // - Note that relevant Fxs will be removed / collapsed regardless of // onlyColumns. // - When checkInvert is true, check references both side from the main xsheet diff --git a/toonz/sources/toonz/comboviewerpane.cpp b/toonz/sources/toonz/comboviewerpane.cpp index 4ceb1bc9..2902363a 100644 --- a/toonz/sources/toonz/comboviewerpane.cpp +++ b/toonz/sources/toonz/comboviewerpane.cpp @@ -109,7 +109,7 @@ ComboViewerPanel::ComboViewerPanel(QWidget *parent, Qt::WFlags flags) // This code should be removed after updating Qt. // Qt may crash in handling WM_SIZE of m_sceneViewer in splash.finish(&w) // in main.cpp. To suppress sending WM_SIZE, set window position here. - // WM_SIZE will not be sent if window poistion is not changed. + // WM_SIZE will not be sent if window position is not changed. ::SetWindowPos(reinterpret_cast(m_sceneViewer->winId()), HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); #endif diff --git a/toonz/sources/toonz/convertpopup.cpp b/toonz/sources/toonz/convertpopup.cpp index f35fa8f5..2ddddcbb 100644 --- a/toonz/sources/toonz/convertpopup.cpp +++ b/toonz/sources/toonz/convertpopup.cpp @@ -117,7 +117,7 @@ void ConvertPopup::Converter::run() { TFilePath sourceLevelPath = sc->decodeFilePath(m_parent->m_srcFilePaths[i]); QString levelName = QString::fromStdString(sourceLevelPath.getLevelName()); - // check already exsistent levels + // check already existent levels TFilePath dstFilePath = m_parent->getDestinationFilePath(m_parent->m_srcFilePaths[i]); diff --git a/toonz/sources/toonz/convertpopup.h b/toonz/sources/toonz/convertpopup.h index ef71ec93..d61a73fb 100644 --- a/toonz/sources/toonz/convertpopup.h +++ b/toonz/sources/toonz/convertpopup.h @@ -49,7 +49,7 @@ class FrameTaskNotifier; //***************************************************************************** /*! - \brief Window class used in the convertion of levels between different + \brief Window class used in the conversion of levels between different file formats. */ @@ -77,7 +77,7 @@ public: public slots: - void apply(); //!< Starts the convertion. + void apply(); //!< Starts the conversion. void onOptionsClicked(); void onConvertFinished(); void onTlvModeSelected(const QString &tlvMode); diff --git a/toonz/sources/toonz/drawingdata.cpp b/toonz/sources/toonz/drawingdata.cpp index b009b50c..5698eb9b 100644 --- a/toonz/sources/toonz/drawingdata.cpp +++ b/toonz/sources/toonz/drawingdata.cpp @@ -441,7 +441,7 @@ void DrawingData::getFrames(std::set &frames) const { //----------------------------------------------------------------------------- DrawingData::~DrawingData() { - // cannot do that here! if you have cloned this class, the images in the cahce + // cannot do that here! if you have cloned this class, the images in the cache // are still used... // int i; // for(i=0; iin its entirety. + \return Whether the level was successfully exported in its entirety. User cancels are reported as failures, even if a part of the level has been successfully exported. diff --git a/toonz/sources/toonz/expressionreferencemanager.cpp b/toonz/sources/toonz/expressionreferencemanager.cpp index 3b4a31d9..a43aed35 100644 --- a/toonz/sources/toonz/expressionreferencemanager.cpp +++ b/toonz/sources/toonz/expressionreferencemanager.cpp @@ -772,7 +772,7 @@ void ExpressionReferenceManager::transferReference( // 1. create 3 tables for replacing; column indices, parameter pointers, and // expression texts. Note that moving columns in the same xsheet does not need - // to replace the paramter pointers since they are swapped along with columns. + // to replace the parameter pointers since they are swapped along with columns. QMap colIdReplaceTable; QMap curveReplaceTable; std::map exprReplaceTable; @@ -796,7 +796,7 @@ void ExpressionReferenceManager::transferReference( exprReplaceTable[getPhrase(fromId, ph)] = getPhrase(toId, ph); } if (sameXSheet) { - // the paramter pointers are already swapped when moving columns in the + // the parameter pointers are already swapped when moving columns in the // same xsheet curveReplaceTable will be used just for parameter list to // be modified TStageObject* toObj = @@ -971,7 +971,7 @@ void ExpressionReferenceManager::transferReference( } //---------------------------------------------------------------------------- -// open warning popup if there is any paramters which is ignored (i.e. the +// open warning popup if there is any parameters which is ignored (i.e. the // reference is lost and user hasn't touch yet) bool ExpressionReferenceManager::askIfParamIsIgnoredOnSave(bool saveSubXsheet) { // return if the preference option is off diff --git a/toonz/sources/toonz/filebrowser.cpp b/toonz/sources/toonz/filebrowser.cpp index ed7574d9..f11ef804 100644 --- a/toonz/sources/toonz/filebrowser.cpp +++ b/toonz/sources/toonz/filebrowser.cpp @@ -704,7 +704,7 @@ void FileBrowser::setFolder(const TFilePath &fp, bool expandNode, } //----------------------------------------------------------------------------- -/*! process when inputting the folder which is not regitered in the folder tree +/*! process when inputting the folder which is not registered in the folder tree (e.g. UNC path in Windows) */ void FileBrowser::setUnregisteredFolder(const TFilePath &fp) { @@ -908,7 +908,7 @@ QVariant FileBrowser::getItemData(int index, DataType dataType, if (index < 0 || index >= (int)m_items.size()) return QVariant(); Item &item = m_items[index]; if (dataType == Name) { - // show two dots( ".." ) for the paret directory item + // show two dots( ".." ) for the parent directory item if (item.m_path == m_folder.getParentDir()) return QString(".."); else @@ -2077,7 +2077,7 @@ void FileBrowser::onSelectedItems(const std::set &indexes) { } // reuse the list of TFrameId in order to skip loadInfo() when loading the - // level with sequencial frames. + // level with sequential frames. emit filePathsSelected(filePaths, frameIDs); } diff --git a/toonz/sources/toonz/filebrowser.h b/toonz/sources/toonz/filebrowser.h index 55cf1be1..860c2fd6 100644 --- a/toonz/sources/toonz/filebrowser.h +++ b/toonz/sources/toonz/filebrowser.h @@ -100,7 +100,7 @@ types to be displayed in the file browser. void setFolder(const TFilePath &fp, bool expandNode = false, bool forceUpdate = false, bool collapseAll = false); - // process when inputting the folder which is not regitered in the folder tree + // process when inputting the folder which is not registered in the folder tree // (e.g. UNC path in Windows) void setUnregisteredFolder(const TFilePath &fp); @@ -209,7 +209,7 @@ signals: void filePathClicked(const TFilePath &); void filePathDoubleClicked(const TFilePath &); // reuse the list of TFrameId in order to skip loadInfo() when loading the - // level with sequencial frames. + // level with sequential frames. void filePathsSelected(const std::set &, const std::list> &); void treeFolderChanged(const TFilePath &); @@ -231,7 +231,7 @@ private: bool m_isFolder; bool m_isLink; - // calling loadInfo to the level with sequencial frames is time consuming. + // calling loadInfo to the level with sequential frames is time consuming. // so keep the list of frameIds at the first time and try to reuse it. std::vector m_frameIds; @@ -291,7 +291,7 @@ private: // TPropertyGroup* getFormatProperties(const std::string &ext); public slots: - //! Starts the convertion. + //! Starts the conversion. // void onConvert(); // void onOptionsClicked(); void onOk(); diff --git a/toonz/sources/toonz/filebrowsermodel.cpp b/toonz/sources/toonz/filebrowsermodel.cpp index 4d2ab9b8..98c86406 100644 --- a/toonz/sources/toonz/filebrowsermodel.cpp +++ b/toonz/sources/toonz/filebrowsermodel.cpp @@ -217,7 +217,7 @@ DvDirModelNode *DvDirModelFileFolderNode::makeChild(std::wstring name) { DvDirModelFileFolderNode *DvDirModelFileFolderNode::createNode( DvDirModelNode *parent, const TFilePath &path) { DvDirModelFileFolderNode *node; - // check the project nodes under the Poject Root Node + // check the project nodes under the Project Root Node if ( // QString::fromStdWString(parent->getName()).startsWith("Project root") // && TProjectManager::instance()->isProject(path)) @@ -491,7 +491,7 @@ void DvDirVersionControlNode::getChildrenNames( //----------------------------------------------------------------------------- void DvDirVersionControlNode::setIsUnderVersionControl(bool value) { - // Set the flags and enable/disable renaming accordling + // Set the flags and enable/disable renaming accordingly m_isUnderVersionControl = value; enableRename(!value); } diff --git a/toonz/sources/toonz/filebrowserpopup.cpp b/toonz/sources/toonz/filebrowserpopup.cpp index da4cbd56..8ee78968 100644 --- a/toonz/sources/toonz/filebrowserpopup.cpp +++ b/toonz/sources/toonz/filebrowserpopup.cpp @@ -780,7 +780,7 @@ LoadLevelPopup::LoadLevelPopup() LevelOptions options; setLevelProperties(options); - //"FILE DOES NOT EXIST" lavel + //"FILE DOES NOT EXIST" label m_notExistLabel->setObjectName("FileDoesNotExistLabel"); m_notExistLabel->hide(); @@ -990,7 +990,7 @@ void LoadLevelPopup::onNameSetEditted() { //----------------------------------------------------------------------- void LoadLevelPopup::updatePosTo() { - // calcurate how mane frames to be occupied in the xsheet + // calculate how many frames to be occupied in the xsheet TFilePath fp = getCurrentPath(); if (QString::fromStdString(fp.getType()) == "tpl") { @@ -1031,7 +1031,7 @@ void LoadLevelPopup::updatePosTo() { frameLength = xTo - xFrom + 1; } else { std::vector fIds = getCurrentFIds(); - //--- If loading the level with sequencial files, reuse the list of + //--- If loading the level with sequential files, reuse the list of // TFrameId if (fIds.size() != 0) { if (m_stepCombo->currentIndex() == 0) // Step = Auto @@ -1200,7 +1200,7 @@ bool LoadLevelPopup::execute() { std::vector fIds = getCurrentFIds(); TFrameId firstFrame; TFrameId lastFrame; - // if the level is sequencial and there is a reusable list of TFrameId + // if the level is sequential and there is a reusable list of TFrameId if (fIds.size() != 0) { firstFrame = fIds[0]; lastFrame = fIds[fIds.size() - 1]; @@ -2109,7 +2109,7 @@ bool ReplaceParentDirectoryPopup::execute() { } } } else { - // calcurate scene length + // calculate scene length int frameLength = xsh->getFrameCount(); std::set::iterator i = m_columnRange.begin(); while (i != m_columnRange.end()) { diff --git a/toonz/sources/toonz/filebrowserpopup.h b/toonz/sources/toonz/filebrowserpopup.h index 0e2289a4..0d39271c 100644 --- a/toonz/sources/toonz/filebrowserpopup.h +++ b/toonz/sources/toonz/filebrowserpopup.h @@ -89,7 +89,7 @@ protected: std::set m_selectedPaths; //!< Paths in the active selection. TFilePath m_currentProjectPath; //!< Path of current project. //! \deprecated Should not be cached... - // keep TFrameId list in order to speed up the loading of sequencial files + // keep TFrameId list in order to speed up the loading of sequential files std::list> m_currentFIdsSet; FileBrowser *m_browser; @@ -322,7 +322,7 @@ protected slots: void onWhiteTranspClicked(); private: - // update the fields acording to the current Path + // update the fields according to the current Path void updateBottomGUI(void); // if some option in the preferences is selected, load the level with removing // six letters of the scene name from the level name diff --git a/toonz/sources/toonz/fileselection.cpp b/toonz/sources/toonz/fileselection.cpp index 5cdc6304..d8f848dd 100644 --- a/toonz/sources/toonz/fileselection.cpp +++ b/toonz/sources/toonz/fileselection.cpp @@ -392,7 +392,7 @@ void FileSelection::convertFiles() { static ConvertPopup *popup = new ConvertPopup(false); if (popup->isConverting()) { DVGui::info(QObject::tr( - "A convertion task is in progress! wait until it stops or cancel it")); + "A conversion task is in progress! wait until it stops or cancel it")); return; } popup->setFiles(files); diff --git a/toonz/sources/toonz/filmstrip.cpp b/toonz/sources/toonz/filmstrip.cpp index 0f8d11c3..51c187e3 100644 --- a/toonz/sources/toonz/filmstrip.cpp +++ b/toonz/sources/toonz/filmstrip.cpp @@ -705,11 +705,11 @@ void FilmstripFrames::paintEvent(QPaintEvent *evt) { fid.getNumber() == TFrameId::NO_FRAME) { text = QString("Single Frame"); } - // for sequencial frame (with letter) + // for sequential frame (with letter) else if (Preferences::instance()->isShowFrameNumberWithLettersEnabled()) { text = fidToFrameNumberWithLetter(fid.getNumber()); } - // for sequencial frame + // for sequential frame else { char letter = fid.getLetter(); text = QString::number(fid.getNumber()).rightJustified(4, '0') + diff --git a/toonz/sources/toonz/filmstrip.h b/toonz/sources/toonz/filmstrip.h index 95d0c232..757a1349 100644 --- a/toonz/sources/toonz/filmstrip.h +++ b/toonz/sources/toonz/filmstrip.h @@ -105,7 +105,7 @@ public: // lo scroll e' illimitato verso il basso. aggiorna contentHeight void scroll(int dy); - // overriden from TSelection::View + // overridden from TSelection::View void onSelectionChanged() override { update(); } enum SelectionMode { diff --git a/toonz/sources/toonz/filmstripcommand.cpp b/toonz/sources/toonz/filmstripcommand.cpp index 4be7780d..adc8000e 100644 --- a/toonz/sources/toonz/filmstripcommand.cpp +++ b/toonz/sources/toonz/filmstripcommand.cpp @@ -1615,7 +1615,7 @@ void FilmstripCmd::paste(TXshSimpleLevel *sl, std::set &frames) { if (drawingData) { if (sl->isSubsequence()) return; - // keep the choosed option of "Keep Original Palette" and reproduce it in + // keep the chosen option of "Keep Original Palette" and reproduce it in // undo bool keepOriginalPalette; diff --git a/toonz/sources/toonz/flipbook.cpp b/toonz/sources/toonz/flipbook.cpp index 1d59f2ee..b0610432 100644 --- a/toonz/sources/toonz/flipbook.cpp +++ b/toonz/sources/toonz/flipbook.cpp @@ -1407,7 +1407,7 @@ void FlipBook::freezePreview() { m_freezed = true; - // sync the button state when triggered by shotcut + // sync the button state when triggered by shortcut if (m_freezeButton) m_freezeButton->setPressed(true); } @@ -1420,7 +1420,7 @@ void FlipBook::unfreezePreview() { m_freezed = false; - // sync the button state when triggered by shotcut + // sync the button state when triggered by shortcut if (m_freezeButton) m_freezeButton->setPressed(false); } @@ -2212,7 +2212,7 @@ void FlipBook::loadAndCacheAllTlvImages(Level level, int fromFrame, FlipBook *viewFile(const TFilePath &path, int from, int to, int step, int shrink, TSoundTrack *snd, FlipBook *flipbook, bool append, bool isToonzOutput) { - // In case the step and shrink informations are invalid, load them from + // In case the step and shrink information are invalid, load them from // preferences if (step == -1 || shrink == -1) { int _step = 1, _shrink = 1; diff --git a/toonz/sources/toonz/frameheadgadget.h b/toonz/sources/toonz/frameheadgadget.h index a1c31c36..7203ea19 100644 --- a/toonz/sources/toonz/frameheadgadget.h +++ b/toonz/sources/toonz/frameheadgadget.h @@ -42,7 +42,7 @@ public: void drawPlayingHead(QPainter &p, const QColor &lightColor, const QColor &darkColor); - // reimpremented in FilmstripFrameHeadGadget + // reimplemented in FilmstripFrameHeadGadget virtual void drawOnionSkinSelection(QPainter &p, const QColor &lightColor, const QColor &darkColor); @@ -61,7 +61,7 @@ public: void setFos(int frame, bool on); void setMos(int frame, bool on); - // reimpremented in FilmstripFrameHeadGadget + // reimplemented in FilmstripFrameHeadGadget bool eventFilter(QObject *obj, QEvent *event) override; }; diff --git a/toonz/sources/toonz/imageviewer.cpp b/toonz/sources/toonz/imageviewer.cpp index 45c884a1..7e8ea6cc 100644 --- a/toonz/sources/toonz/imageviewer.cpp +++ b/toonz/sources/toonz/imageviewer.cpp @@ -204,7 +204,7 @@ public: Return current image viewer. */ /*! \fn TAffine ImageViewer::getViewAff() - Return current viewer matrix trasformation. + Return current viewer matrix transformation. */ ImageViewer::ImageViewer(QWidget *parent, FlipBook *flipbook, @@ -632,7 +632,7 @@ void ImageViewer::paintGL() { } //------------------------------------------------------------------------------ -/*! Add to current trasformation matrix a \b delta traslation. +/*! Add to current transformation matrix a \b delta traslation. */ void ImageViewer::panQt(const QPoint &delta) { if (delta == QPoint()) return; @@ -664,7 +664,7 @@ void ImageViewer::panQt(const QPoint &delta) { } //----------------------------------------------------------------------------- -/*! Add to current trasformation matrix a \b center traslation matched with a +/*! Add to current transformation matrix a \b center traslation matched with a scale of factor \b factor. Apply a zoom of factor \b factor with center \b center. @@ -955,7 +955,7 @@ void ImageViewer::pickColor(QMouseEvent *event, bool putValueToStyleEditor) { TPixel32 pix; if (m_lutCalibrator && m_lutCalibrator->isValid()) { - // for specifiying pixel range on picking vector + // for specifying pixel range on picking vector double scale2 = getViewAff().det(); pix = picker.pickColor(pos + TPointD(-0.5, -0.5), 10.0, scale2); } else @@ -1248,7 +1248,7 @@ void ImageViewer::fitView() { } //----------------------------------------------------------------------------- -/*! Update image viewer, reset current matrix trasformation, current position +/*! Update image viewer, reset current matrix transformation, current position and update view. */ void ImageViewer::updateImageViewer() { diff --git a/toonz/sources/toonz/iocommand.cpp b/toonz/sources/toonz/iocommand.cpp index 26602336..81d00013 100644 --- a/toonz/sources/toonz/iocommand.cpp +++ b/toonz/sources/toonz/iocommand.cpp @@ -1856,7 +1856,7 @@ bool IoCmd::loadScene(const TFilePath &path, bool updateRecentFile, if (TSystem::doesExistFileOrLevel(scenePathTemp)) { QString question = QObject::tr( - "A prior save of Scene '%1' was critically interupted. \n\ + "A prior save of Scene '%1' was critically interrupted. \n\ \nA partial save file was generated and changes may be manually salvaged from '%2'.\n\ \nDo you wish to continue loading the last good save or stop and try to salvage the prior save?") .arg(QString::fromStdWString(scenePath.getWideString())) diff --git a/toonz/sources/toonz/levelsettingspopup.cpp b/toonz/sources/toonz/levelsettingspopup.cpp index df5a3dc3..5a6003a5 100644 --- a/toonz/sources/toonz/levelsettingspopup.cpp +++ b/toonz/sources/toonz/levelsettingspopup.cpp @@ -1174,7 +1174,7 @@ void LevelSettingsPopup::onScanPathChanged() { QString text = m_scanPathFld->getPath(); TFilePath newScanPath(text.toStdWString()); - // limit the avaiable formats for now + // limit the available formats for now if (newScanPath.getType() != "tif" && newScanPath.getType() != "tiff" && newScanPath.getType() != "tzi") { m_scanPathFld->setPath(toQString(sl->getScannedPath())); diff --git a/toonz/sources/toonz/main.cpp b/toonz/sources/toonz/main.cpp index 30bee147..ee19fb4b 100644 --- a/toonz/sources/toonz/main.cpp +++ b/toonz/sources/toonz/main.cpp @@ -378,7 +378,7 @@ int main(int argc, char *argv[]) { a.setAttribute(Qt::AA_UseDesktopOpenGL, true); #endif - // Some Qt objects are destroyed badly withouth a living qApp. So, we must + // Some Qt objects are destroyed badly without a living qApp. So, we must // enforce a way to either // postpone the application destruction until the very end, OR ensure that // sensible objects are @@ -415,7 +415,7 @@ int main(int argc, char *argv[]) { // Set the app's locale for numeric stuff to standard C. This is important for // atof() and similar - // calls that are locale-dependant. + // calls that are locale-dependent. setlocale(LC_NUMERIC, "C"); // Set current directory to the bundle/application path - this is needed to have diff --git a/toonz/sources/toonz/mainwindow.cpp b/toonz/sources/toonz/mainwindow.cpp index 10d9d3b5..abb9737e 100644 --- a/toonz/sources/toonz/mainwindow.cpp +++ b/toonz/sources/toonz/mainwindow.cpp @@ -1693,8 +1693,8 @@ QAction *MainWindow::createToolAction(const char *id, const char *iconName, action->setActionGroup(m_toolsActionGroup); action->setStatusTip(newStatusTip); - // When the viewer is maximized (not fullscreen) the toolbar is hided and the - // action are disabled, + // When the viewer is maximized (not fullscreen) the toolbar is hidden and the + // actions are disabled, // so the tool shortcuts don't work. // Adding tool actions to the main window solve this problem! addAction(action); @@ -2947,7 +2947,7 @@ void MainWindow::defineActions() { // Following actions are for adding "Visualization" menu items to the command // bar. They are separated from the original actions in order to avoid // assigning shortcut keys. They must be triggered only from pressing buttons - // in the command bar. Assinging shortcut keys and registering as MenuItem + // in the command bar. Assigning shortcut keys and registering as MenuItem // will break a logic of ShortcutZoomer. So here we register separate items // and bypass the command. createVisualizationButtonAction(VB_ViewReset, QT_TR_NOOP("Reset View"), diff --git a/toonz/sources/toonz/meshifypopup.cpp b/toonz/sources/toonz/meshifypopup.cpp index 9f335c2f..90bb8a1c 100644 --- a/toonz/sources/toonz/meshifypopup.cpp +++ b/toonz/sources/toonz/meshifypopup.cpp @@ -537,7 +537,7 @@ public: } else if (m_xsh) { // Build reference change affines - // EXPLANATION: RasterPainter receives an affine specifiying the reference + // EXPLANATION: RasterPainter receives an affine specifying the reference // change // from world coordinates to the OpenGL viewport, where (0,0) corresponds // to the @@ -867,7 +867,7 @@ TMeshImageP meshify(const TXshCell &cell, const MeshifyOptions &options) { slDpi = sl->getDpi(); locals::checkEmptyDpi(slDpi); - // Due to a Toonz bug when loading a PLI, slDpi may actually aquire the + // Due to a Toonz bug when loading a PLI, slDpi may actually acquire the // camera dpi - // but it's always shown to be at the STANDARD world DPI, Stage::inch - // plus, the diff --git a/toonz/sources/toonz/meshifypopup.h b/toonz/sources/toonz/meshifypopup.h index 0c1388a7..c0469ef0 100644 --- a/toonz/sources/toonz/meshifypopup.h +++ b/toonz/sources/toonz/meshifypopup.h @@ -62,7 +62,7 @@ private: class Swatch; private: - // GUI memebers + // GUI members DVGui::MeasuredDoubleField *m_edgesLength; //!< Target length of mesh edges. DVGui::DoubleLineEdit diff --git a/toonz/sources/toonz/outputsettingspopup.cpp b/toonz/sources/toonz/outputsettingspopup.cpp index a8145c71..ca01513f 100644 --- a/toonz/sources/toonz/outputsettingspopup.cpp +++ b/toonz/sources/toonz/outputsettingspopup.cpp @@ -827,7 +827,7 @@ QFrame *OutputSettingsPopup::createMoreSettingsBox() { lay->addWidget(m_frameRateFld, 3, 1, Qt::AlignLeft | Qt::AlignVCenter); lay->addWidget(new QLabel(tr("(linked to Scene Settings)"), this), 3, 2, 1, 2, Qt::AlignLeft | Qt::AlignVCenter); - // Strech + // Stretch lay->addWidget(new QLabel(tr("Stretch from FPS:"), this), 4, 0, Qt::AlignRight | Qt::AlignVCenter); lay->addWidget(m_stretchFromFld, 4, 1, Qt::AlignLeft | Qt::AlignVCenter); diff --git a/toonz/sources/toonz/pane.cpp b/toonz/sources/toonz/pane.cpp index 494ac8dd..0ba1f377 100644 --- a/toonz/sources/toonz/pane.cpp +++ b/toonz/sources/toonz/pane.cpp @@ -92,7 +92,7 @@ TPanel::TPanel(QWidget *parent, Qt::WindowFlags flags, //----------------------------------------------------------------------------- TPanel::~TPanel() { - // On quitting, save the floating panel's geomtry and state in order to + // On quitting, save the floating panel's geometry and state in order to // restore them when opening the floating panel next time if (isFloating()) { TFilePath savePath = diff --git a/toonz/sources/toonz/pane.h b/toonz/sources/toonz/pane.h index 211699cc..e9387401 100644 --- a/toonz/sources/toonz/pane.h +++ b/toonz/sources/toonz/pane.h @@ -275,7 +275,7 @@ public: virtual void setViewType(int viewType){}; virtual bool widgetInThisPanelIsFocused() { - // by default, chech if the panel content itself has focus + // by default, check if the panel content itself has focus if (widget()) return widget()->hasFocus(); else diff --git a/toonz/sources/toonz/preferencespopup.cpp b/toonz/sources/toonz/preferencespopup.cpp index 11dd2fbd..708289a3 100644 --- a/toonz/sources/toonz/preferencespopup.cpp +++ b/toonz/sources/toonz/preferencespopup.cpp @@ -1259,7 +1259,7 @@ inline T PreferencesPopup::getUI(PreferencesItemId id) { } //********************************************************************************** -// PrefencesPopup's constructor +// PreferencesPopup's constructor //********************************************************************************** PreferencesPopup::PreferencesPopup() diff --git a/toonz/sources/toonz/previewer.cpp b/toonz/sources/toonz/previewer.cpp index be595215..ba257d52 100644 --- a/toonz/sources/toonz/previewer.cpp +++ b/toonz/sources/toonz/previewer.cpp @@ -76,13 +76,13 @@ The most important method of the class is \b getRaster(), which attempts retrieval of a certain frame and, if the frame was not calculated yet, makes the Previewer build it. \n -The update() slot is provided to refresh the cached informations about the +The update() slot is provided to refresh the cached information about the entire collection of currently stored frames. Updated frames are recalculated only upon a new getRaster(), in case the previously -stored informations no more match the current frame description. +stored information no more match the current frame description. \n -The clear() methods make the Previewer erase all stored informations about one +The clear() methods make the Previewer erase all stored information about one or all frames, so that the following getRaster() will forcibly recalculate the requested frame. */ @@ -618,7 +618,7 @@ inline void Previewer::Imp::notifyUpdate() { //----------------------------------------------------------------------------- -//! Adds the renderized image to TImageCache; listeneres are advised too. +//! Adds the renderized image to TImageCache; listeners are advised too. void Previewer::Imp::onRenderRasterStarted(const RenderData &renderData) { // Emit the started signal to execute code in the main thread m_owner->emitStartedFrame(renderData); @@ -640,7 +640,7 @@ void Previewer::Imp::doOnRenderRasterStarted(const RenderData &renderData) { //----------------------------------------------------------------------------- -//! Adds the renderized image to TImageCache; listeneres are advised too. +//! Adds the renderized image to TImageCache; listeners are advised too. void Previewer::Imp::onRenderRasterCompleted(const RenderData &renderData) { if (renderData.m_rasB) { RenderData _renderData = renderData; @@ -734,7 +734,7 @@ void Previewer::Imp::onRenderFailure(const RenderData &renderData, //----------------------------------------------------------------------------- -//! Adds the renderized image to TImageCache; listeneres are advised too. +//! Adds the renderized image to TImageCache; listeners are advised too. void Previewer::Imp::doOnRenderRasterFailed(const RenderData &renderData) { m_computingFrameCount--; diff --git a/toonz/sources/toonz/previewfxmanager.cpp b/toonz/sources/toonz/previewfxmanager.cpp index b37a4f39..99c1b3c7 100644 --- a/toonz/sources/toonz/previewfxmanager.cpp +++ b/toonz/sources/toonz/previewfxmanager.cpp @@ -41,7 +41,7 @@ // Qt stuff #include #include -#include "toonzqt/gutil.h" //For converions between TRects and QRects +#include "toonzqt/gutil.h" //For conversions between TRects and QRects // Preferences #include "toonz/preferences.h" @@ -379,9 +379,9 @@ PreviewFxInstance::~PreviewFxInstance() { //----------------------------------------------------------------------------------------- -//! Clears the preview instance informations about passed frame, including any +//! Clears the preview instance information about passed frame, including any //! cached image. -//! Informations needed to preview again are NOT rebuilt. +//! Information needed to preview again are NOT rebuilt. void PreviewFxInstance::reset(int frame) { TImageCache::instance()->remove(getCacheId(m_fx, frame)); std::map::iterator it = m_frameInfos.find(frame); @@ -396,8 +396,8 @@ void PreviewFxInstance::reset(int frame) { //----------------------------------------------------------------------------------------- -//! Clears the preview instance informations, including cached images. -//! Informations needed +//! Clears the preview instance information, including cached images. +//! Information needed //! to preview again are rebuilt. void PreviewFxInstance::reset() { int i; @@ -633,7 +633,7 @@ void PreviewFxInstance::updateFlipbookTitles() { std::set::iterator kt; for (kt = m_flipbooks.begin(); kt != m_flipbooks.end(); ++kt) { // In the full preview case, the title must display the frame range - // informations + // information (*kt)->setTitle( /*"Rendered Frames :: From " + QString::number(start) + " To " + QString::number(end) + diff --git a/toonz/sources/toonz/previewfxmanager.h b/toonz/sources/toonz/previewfxmanager.h index 5a1f2c1f..d66a9ef5 100644 --- a/toonz/sources/toonz/previewfxmanager.h +++ b/toonz/sources/toonz/previewfxmanager.h @@ -31,7 +31,7 @@ rendering classes and Flipbooks. \n \n The showNewPreview() method invocation takes place when users activate the 'Preview' command from the -right-click menu of fxs in the schematic. It inizializes a TRenderer object and +right-click menu of fxs in the schematic. It initializes a TRenderer object and starts the render of passed fx over the preview properties range; at the same time, a new Flipbook is opened to diff --git a/toonz/sources/toonz/sceneviewer.cpp b/toonz/sources/toonz/sceneviewer.cpp index 646b79ec..daf396b4 100644 --- a/toonz/sources/toonz/sceneviewer.cpp +++ b/toonz/sources/toonz/sceneviewer.cpp @@ -1835,7 +1835,7 @@ void SceneViewer::drawOverlay() { // outside the draw() methods: // using special style there was a conflict between the draw() methods of // the tool - // and the genaration of the icon inside the style editor (makeIcon()) which + // and the generation of the icon inside the style editor (makeIcon()) which // use // another glContext if (tool->getName() == "T_RGBPicker") tool->onImageChanged(); @@ -1903,9 +1903,9 @@ void SceneViewer::paintGL() { } #endif #ifdef MACOSX - // followin lines are necessary to solve a problem on iMac20 + // following lines are necessary to solve a problem on iMac20 // It seems that for some errors in the openGl implementation, buffers are not - // set corretly. + // set correctly. if (m_isMouseEntered && m_forceGlFlush) { m_isMouseEntered = false; m_forceGlFlush = false; diff --git a/toonz/sources/toonz/sceneviewer.h b/toonz/sources/toonz/sceneviewer.h index 5c642134..3d87d4f0 100644 --- a/toonz/sources/toonz/sceneviewer.h +++ b/toonz/sources/toonz/sceneviewer.h @@ -400,10 +400,10 @@ protected: void mouseZoom(const TMouseEvent &e); void mouseRotate(const TMouseEvent &e); - // overriden from TTool::Viewer + // overridden from TTool::Viewer void pan(const TPointD &delta) override { panQt(QPointF(delta.x, delta.y)); } - // overriden from TTool::Viewer + // overridden from TTool::Viewer void zoom(const TPointD ¢er, double factor) override; void rotate(const TPointD ¢er, double angle) override; void rotate3D(double dPhi, double dTheta) override; diff --git a/toonz/sources/toonz/sceneviewerevents.cpp b/toonz/sources/toonz/sceneviewerevents.cpp index 3d71d86a..2b5c6e7e 100644 --- a/toonz/sources/toonz/sceneviewerevents.cpp +++ b/toonz/sources/toonz/sceneviewerevents.cpp @@ -299,7 +299,7 @@ void SceneViewer::tabletEvent(QTabletEvent *e) { // So, in such case set m_tabletEvent = FALSE and let the mousePressEvent to // work. if (e->button() == Qt::LeftButton) { - // Proces the 1st tabletPress encountered and ignore back-to-back + // Process the 1st tabletPress encountered and ignore back-to-back // tabletPress events. Treat it as if it happened so a following // mousePressEvent gets ignored if (m_tabletState == Released || m_tabletState == None) { diff --git a/toonz/sources/toonz/separatecolorspopup.cpp b/toonz/sources/toonz/separatecolorspopup.cpp index f0963e00..9e8f21f4 100644 --- a/toonz/sources/toonz/separatecolorspopup.cpp +++ b/toonz/sources/toonz/separatecolorspopup.cpp @@ -1261,7 +1261,7 @@ void SeparateColorsPopup::doCompute(TRaster32P raster, TDimensionI& dim, matte_host = (uchar3*)matte_host_ras->getRawData(); } - // input the souce image + // input the source image QVector3D* chann_p = src_host; for (int j = 0; j < dim.ly; j++) { TPixel32* pix = raster->pixels(j); @@ -1447,7 +1447,7 @@ void SeparateColorsPopup::doCompute(TRaster32P raster, TDimensionI& dim, matte_host = (uchar4*)matte_host_ras->getRawData(); } - // input the souce image + // input the source image QVector3D* chann_p = src_host; for (int j = 0; j < dim.ly; j++) { TPixel32* pix = raster->pixels(j); diff --git a/toonz/sources/toonz/separatecolorspopup.h b/toonz/sources/toonz/separatecolorspopup.h index f2974f55..497a5376 100644 --- a/toonz/sources/toonz/separatecolorspopup.h +++ b/toonz/sources/toonz/separatecolorspopup.h @@ -174,7 +174,7 @@ protected: void hideEvent(QHideEvent* e); public slots: - // starts the convertion + // starts the conversion void separate(); void onSeparateFinished(); void onPreviewBtnPressed(); diff --git a/toonz/sources/toonz/subscenecommand.cpp b/toonz/sources/toonz/subscenecommand.cpp index 23d05ac2..bb125663 100644 --- a/toonz/sources/toonz/subscenecommand.cpp +++ b/toonz/sources/toonz/subscenecommand.cpp @@ -692,7 +692,7 @@ std::set explodeStageObjects( objGroupData, groupId); } - // add colums; + // add columns; FxDag *innerDag = subXsh->getFxDag(); FxDag *outerDag = xsh->getFxDag(); TStageObjectId tmpParentId = parentId; @@ -2485,13 +2485,13 @@ void SubsceneCmd::explode(int index) { childLevel->getXsheet(), index, removeColumn, ret == 2)) return; - // Collect column stage object informations + // Collect column stage object information TStageObjectId colId = TStageObjectId::ColumnId(index); TStageObjectId parentId = xsh->getStageObjectParent(colId); TStageObject *obj = xsh->getStageObjectTree()->getStageObject(colId, false); assert(obj); - // Collect StageObjects group informations + // Collect StageObjects group information QStack objGroupIds; QStack objGroupNames; int objEditingGroup = obj->getEditingGroupId(); @@ -2515,7 +2515,7 @@ void SubsceneCmd::explode(int index) { TFx *columnFx = column->getFx(); TFxAttributes *attr = columnFx->getAttributes(); - // Collect Fx group informations + // Collect Fx group information QStack fxGroupIds; QStack fxGroupNames; int fxEditingGroup = attr->getEditingGroupId(); diff --git a/toonz/sources/toonz/svncleanupdialog.cpp b/toonz/sources/toonz/svncleanupdialog.cpp index b39f7b3b..044ab0e7 100644 --- a/toonz/sources/toonz/svncleanupdialog.cpp +++ b/toonz/sources/toonz/svncleanupdialog.cpp @@ -45,7 +45,7 @@ SVNCleanupDialog::SVNCleanupDialog(QWidget *parent, const QString &workingDir) addButtonBarWidget(m_closeButton); - // 0. Connect for svn errors (that may occurs everythings) + // 0. Connect for svn errors (that may occur every time) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); diff --git a/toonz/sources/toonz/svncommitdialog.cpp b/toonz/sources/toonz/svncommitdialog.cpp index 9d7cb85e..81481912 100644 --- a/toonz/sources/toonz/svncommitdialog.cpp +++ b/toonz/sources/toonz/svncommitdialog.cpp @@ -167,7 +167,7 @@ SVNCommitDialog::SVNCommitDialog(QWidget *parent, const QString &workingDir, addButtonBarWidget(m_commitButton, m_cancelButton); - // 0. Connect for svn errors (that may occurs everythings) + // 0. Connect for svn errors (that may occur every time) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); @@ -994,7 +994,7 @@ SVNCommitFrameRangeDialog::SVNCommitFrameRangeDialog(QWidget *parent, addButtonBarWidget(m_commitButton, m_cancelButton); - // 0. Connect for svn errors (that may occurs) + // 0. Connect for svn errors (that may occur) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); } diff --git a/toonz/sources/toonz/svndeletedialog.cpp b/toonz/sources/toonz/svndeletedialog.cpp index 06f04f07..7600a5ac 100644 --- a/toonz/sources/toonz/svndeletedialog.cpp +++ b/toonz/sources/toonz/svndeletedialog.cpp @@ -161,7 +161,7 @@ SVNDeleteDialog::SVNDeleteDialog(QWidget *parent, const QString &workingDir, addButtonBarWidget(m_deleteLocalButton, m_deleteServerButton, m_cancelButton); - // 0. Connect for svn errors (that may occurs) + // 0. Connect for svn errors (that may occur) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); } diff --git a/toonz/sources/toonz/svnlockdialog.cpp b/toonz/sources/toonz/svnlockdialog.cpp index 3c4f110c..02c392c5 100644 --- a/toonz/sources/toonz/svnlockdialog.cpp +++ b/toonz/sources/toonz/svnlockdialog.cpp @@ -153,7 +153,7 @@ SVNLockDialog::SVNLockDialog(QWidget *parent, const QString &workingDir, addButtonBarWidget(m_lockButton, m_cancelButton); - // 0. Connect for svn errors (that may occurs everythings) + // 0. Connect for svn errors (that may occur every time) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); diff --git a/toonz/sources/toonz/svnlockframerangedialog.cpp b/toonz/sources/toonz/svnlockframerangedialog.cpp index d9930d03..74a72000 100644 --- a/toonz/sources/toonz/svnlockframerangedialog.cpp +++ b/toonz/sources/toonz/svnlockframerangedialog.cpp @@ -124,7 +124,7 @@ SVNLockFrameRangeDialog::SVNLockFrameRangeDialog(QWidget *parent, addButtonBarWidget(m_lockButton, m_cancelButton); - // 0. Connect for svn errors (that may occurs) + // 0. Connect for svn errors (that may occur) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); @@ -458,7 +458,7 @@ SVNLockMultiFrameRangeDialog::SVNLockMultiFrameRangeDialog( addButtonBarWidget(m_lockButton, m_cancelButton); - // 0. Connect for svn errors (that may occurs) + // 0. Connect for svn errors (that may occur) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); @@ -706,7 +706,7 @@ SVNUnlockFrameRangeDialog::SVNUnlockFrameRangeDialog(QWidget *parent, addButtonBarWidget(m_unlockButton, m_cancelButton); - // 0. Connect for svn errors (that may occurs) + // 0. Connect for svn errors (that may occur) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); } @@ -942,7 +942,7 @@ SVNUnlockMultiFrameRangeDialog::SVNUnlockMultiFrameRangeDialog( addButtonBarWidget(m_unlockButton, m_cancelButton); - // 0. Connect for svn errors (that may occurs) + // 0. Connect for svn errors (that may occur) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); @@ -1076,7 +1076,7 @@ SVNFrameRangeLockInfoDialog::SVNFrameRangeLockInfoDialog( addButtonBarWidget(closeButton); - // 0. Connect for svn errors (that may occurs) + // 0. Connect for svn errors (that may occur) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); @@ -1174,7 +1174,7 @@ SVNMultiFrameRangeLockInfoDialog::SVNMultiFrameRangeLockInfoDialog( addButtonBarWidget(closeButton); - // 0. Connect for svn errors (that may occurs) + // 0. Connect for svn errors (that may occur) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); diff --git a/toonz/sources/toonz/svnpurgedialog.cpp b/toonz/sources/toonz/svnpurgedialog.cpp index f2c50f11..20dfd49e 100644 --- a/toonz/sources/toonz/svnpurgedialog.cpp +++ b/toonz/sources/toonz/svnpurgedialog.cpp @@ -60,7 +60,7 @@ SVNPurgeDialog::SVNPurgeDialog(QWidget *parent, const QString &workingDir) addButtonBarWidget(m_purgeButton, m_cancelButton); - // 0. Connect for svn errors (that may occurs everythings) + // 0. Connect for svn errors (that may occur every time) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); diff --git a/toonz/sources/toonz/svnrevertdialog.cpp b/toonz/sources/toonz/svnrevertdialog.cpp index 02a64e5b..144c6b87 100644 --- a/toonz/sources/toonz/svnrevertdialog.cpp +++ b/toonz/sources/toonz/svnrevertdialog.cpp @@ -107,7 +107,7 @@ SVNRevertDialog::SVNRevertDialog(QWidget *parent, const QString &workingDir, addButtonBarWidget(m_revertButton, m_cancelButton); - // 0. Connect for svn errors (that may occurs everythings) + // 0. Connect for svn errors (that may occur every time) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); @@ -411,7 +411,7 @@ void SVNRevertFrameRangeDialog::revertFiles() { QStringList list = qDir.entryList(QDir::Files); m_files = list.filter(regExp); - // 0. Connect for svn errors (that may occurs everythings) + // 0. Connect for svn errors (that may occur every time) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); diff --git a/toonz/sources/toonz/svnupdateandlockdialog.cpp b/toonz/sources/toonz/svnupdateandlockdialog.cpp index 2a15fe7b..d56af97e 100644 --- a/toonz/sources/toonz/svnupdateandlockdialog.cpp +++ b/toonz/sources/toonz/svnupdateandlockdialog.cpp @@ -130,7 +130,7 @@ SVNUpdateAndLockDialog::SVNUpdateAndLockDialog(QWidget *parent, addButtonBarWidget(m_updateAndLockButton, m_lockButton, m_cancelButton); - // 0. Connect for svn errors (that may occurs) + // 0. Connect for svn errors (that may occur) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); diff --git a/toonz/sources/toonz/svnupdatedialog.cpp b/toonz/sources/toonz/svnupdatedialog.cpp index c1787733..54c626f6 100644 --- a/toonz/sources/toonz/svnupdatedialog.cpp +++ b/toonz/sources/toonz/svnupdatedialog.cpp @@ -131,7 +131,7 @@ SVNUpdateDialog::SVNUpdateDialog(QWidget *parent, const QString &workingDir, addButtonBarWidget(m_updateButton, m_closeButton, m_cancelButton); - // 0. Connect for svn errors (that may occurs everythings) + // 0. Connect for svn errors (that may occur every time) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); diff --git a/toonz/sources/toonz/tapp.cpp b/toonz/sources/toonz/tapp.cpp index f45cb0a4..0d904591 100644 --- a/toonz/sources/toonz/tapp.cpp +++ b/toonz/sources/toonz/tapp.cpp @@ -506,7 +506,7 @@ void TApp::onXsheetSwitched() { // update xsheetlevel updateXshLevel(); - // no Fx is setted to current. + // no Fx is set to current. m_currentFx->setFx(0); } diff --git a/toonz/sources/toonz/trackerpopup.cpp b/toonz/sources/toonz/trackerpopup.cpp index 61734910..a47c071f 100644 --- a/toonz/sources/toonz/trackerpopup.cpp +++ b/toonz/sources/toonz/trackerpopup.cpp @@ -594,10 +594,10 @@ bool Tracker::setup() { bool image_background = false; bool occl = m_manageOcclusion; - // costruct trackers + // construct trackers for (i = 0; i < m_trackerCount; i++) { - // costruct + // construct m_pObjectTracker[i] = new CObjectTracker(size.lx, size.ly, image_c, image_background, occl); diff --git a/toonz/sources/toonz/vectorizerpopup.cpp b/toonz/sources/toonz/vectorizerpopup.cpp index 60b6ba79..8962f47d 100644 --- a/toonz/sources/toonz/vectorizerpopup.cpp +++ b/toonz/sources/toonz/vectorizerpopup.cpp @@ -421,7 +421,7 @@ int Vectorizer::doVectorize() { void Vectorizer::run() { doVectorize(); } //***************************************************************************** -// VectorizerPopup implentation +// VectorizerPopup implementation //***************************************************************************** #if QT_VERSION >= 0x050500 @@ -771,7 +771,7 @@ paramsLayout->addWidget(m_cThicknessRatio, row++, 1);*/ m_swatchArea = new VectorizerSwatchArea(this); splitter->addWidget(m_swatchArea); - m_swatchArea->setEnabled(false); // Initally not enabled + m_swatchArea->setEnabled(false); // Initially not enabled connect(this, SIGNAL(valuesChanged()), m_swatchArea, SLOT(invalidateContents())); @@ -1247,7 +1247,7 @@ void VectorizerPopup::setType(bool outline) { disconnect(m_typeMenu, SIGNAL(currentIndexChanged(int)), this, SLOT(onTypeChange(int))); - // Setting child visibility alot invokes several layout updates - causing + // Setting child visibility a lot invokes several layout updates - causing // extensive flickering m_paramsWidget->layout()->setEnabled(false); diff --git a/toonz/sources/toonz/vectorizerswatch.cpp b/toonz/sources/toonz/vectorizerswatch.cpp index dcdbe444..f7c89f96 100644 --- a/toonz/sources/toonz/vectorizerswatch.cpp +++ b/toonz/sources/toonz/vectorizerswatch.cpp @@ -418,7 +418,7 @@ VectorizerSwatchArea::VectorizerSwatchArea(QWidget *parent) { setMinimumHeight(150); - // The followings help in re-establishing focus for wheel events + // The following help in re-establishing focus for wheel events m_leftSwatch->setFocusPolicy(Qt::WheelFocus); m_rightSwatch->setFocusPolicy(Qt::WheelFocus); } diff --git a/toonz/sources/toonz/versioncontroltimeline.cpp b/toonz/sources/toonz/versioncontroltimeline.cpp index 75dfdf72..07c41b74 100644 --- a/toonz/sources/toonz/versioncontroltimeline.cpp +++ b/toonz/sources/toonz/versioncontroltimeline.cpp @@ -162,7 +162,7 @@ SVNTimeline::SVNTimeline(QWidget *parent, const QString &workingDir, addButtonBarWidget(m_updateButton, m_updateToRevisionButton, m_closeButton); - // 0. Connect for svn errors (that may occurs everythings) + // 0. Connect for svn errors (that may occur every time) connect(&m_thread, SIGNAL(error(const QString &)), this, SLOT(onError(const QString &))); diff --git a/toonz/sources/toonz/xshcellviewer.cpp b/toonz/sources/toonz/xshcellviewer.cpp index bc751ed9..fafcc351 100644 --- a/toonz/sources/toonz/xshcellviewer.cpp +++ b/toonz/sources/toonz/xshcellviewer.cpp @@ -2523,7 +2523,7 @@ void CellArea::drawKeyframe(QPainter &p, const QRect toBeUpdated) { p.drawLine(target + QPoint(5, 2), target + QPoint(8, 2)); } if (pegbar->isCycleEnabled()) { - // the row zigzag bellow the button + // the row zigzag below the button int ymax = m_viewer->rowToFrameAxis(r1 + 1); int qy = icon_frameAxis + 12; int zig = 2; @@ -3004,7 +3004,7 @@ void CellArea::mouseMoveEvent(QMouseEvent *event) { if (pegbar->getKeyframeSpan(row, r0, e0, r1, e1) && getEaseHandles( r0, r1, e0, e1, rh0, - rh1)) { // triangles in the segment betweeen key frames + rh1)) { // triangles in the segment between key frames if (rh0 == row) m_tooltip = tr("Click and drag to set the acceleration range"); else if (rh1 == row) diff --git a/toonz/sources/toonz/xshcolumnviewer.cpp b/toonz/sources/toonz/xshcolumnviewer.cpp index 3488c7f0..441d56a6 100644 --- a/toonz/sources/toonz/xshcolumnviewer.cpp +++ b/toonz/sources/toonz/xshcolumnviewer.cpp @@ -1602,7 +1602,7 @@ void ColumnArea::drawSoundColumnHead(QPainter &p, int col) { // AREA drawHeader.drawColumnName(); drawHeader.drawColumnNumber(); // Sound columns don't have an image. Passing in an image - // for arguement, but it will be ignored. + // for argument, but it will be ignored. static QPixmap iconignored; drawHeader.drawThumbnail(iconignored); drawHeader.drawPegbarName(); diff --git a/toonz/sources/toonzfarm/tfarmserver/tfarmserver.cpp b/toonz/sources/toonzfarm/tfarmserver/tfarmserver.cpp index 596573e0..e948042b 100644 --- a/toonz/sources/toonzfarm/tfarmserver/tfarmserver.cpp +++ b/toonz/sources/toonzfarm/tfarmserver/tfarmserver.cpp @@ -31,7 +31,7 @@ using namespace TVER; #include #endif -//#define REDIRECT_OUPUT +//#define REDIRECT_OUTPUT #ifdef _WIN32 #define QUOTE_STR "\"" diff --git a/toonz/sources/toonzlib/fxcommand.cpp b/toonz/sources/toonzlib/fxcommand.cpp index 4cb0da3a..6b469cd8 100644 --- a/toonz/sources/toonzlib/fxcommand.cpp +++ b/toonz/sources/toonzlib/fxcommand.cpp @@ -2337,7 +2337,7 @@ static void deleteFxs(const std::list &fxs, TXsheetHandle *xshHandle, std::unique_ptr undo( new DeleteFxOrColumnUndo(*ft, xshHandle, fxHandle)); if (undo->isConsistent()) { - // prevent emiting xsheetChanged signal for every undos which will cause + // prevent emitting xsheetChanged signal for every undos which will cause // multiple triggers of preview rendering undo->m_isLastInRedoBlock = false; undo->redo(); @@ -2390,7 +2390,7 @@ static void deleteColumns(const std::list &columns, std::unique_ptr undo( new DeleteFxOrColumnUndo(cols[c]->getIndex(), xshHandle, fxHandle)); if (undo->isConsistent()) { - // prevent emiting xsheetChanged signal for every undos which will cause + // prevent emitting xsheetChanged signal for every undos which will cause // multiple triggers of preview rendering undo->m_isLastInRedoBlock = false; undo->redo(); diff --git a/toonz/sources/toonzlib/ikjacobian.cpp b/toonz/sources/toonzlib/ikjacobian.cpp index 6151a7ab..091801c5 100644 --- a/toonz/sources/toonzlib/ikjacobian.cpp +++ b/toonz/sources/toonzlib/ikjacobian.cpp @@ -1552,7 +1552,7 @@ void Jacobian::CalcDeltaThetasSDLS() { // Calculate the dTheta from pure pseudoinverse considerations double scale = alpha * - wiInv; // This times i-th column of V is the psuedoinverse response + wiInv; // This times i-th column of V is the pseudoinverse response dPreTheta.LoadScaled(V.GetColumnPtr(i), scale); // Now rescale the dTheta values. double max = dPreTheta.MaxAbs(); diff --git a/toonz/sources/toonzlib/imagemanager.cpp b/toonz/sources/toonzlib/imagemanager.cpp index 1391fe74..1b0f1827 100644 --- a/toonz/sources/toonzlib/imagemanager.cpp +++ b/toonz/sources/toonzlib/imagemanager.cpp @@ -397,7 +397,7 @@ void ImageManager::loadAllTlvIconsAndPutInCache( assert(builder); assert(builder->getRefCount() > 0); - // this function in reimpremented only in ImageLoader + // this function in reimplemented only in ImageLoader builder->buildAllIconsAndPutInCache(level, fids, iconIds, cacheImagesAsWell); builder->getInfo(info, ImageManager::none, 0); diff --git a/toonz/sources/toonzqt/addfxcontextmenu.cpp b/toonz/sources/toonzqt/addfxcontextmenu.cpp index d92d9030..fe87234c 100644 --- a/toonz/sources/toonzqt/addfxcontextmenu.cpp +++ b/toonz/sources/toonzqt/addfxcontextmenu.cpp @@ -415,7 +415,7 @@ bool AddFxContextMenu::loadPreset(const std::string &name, QMenu *insertFxGroup, // This is a workaround to set the bold style to the first element of this // menu - // Setting a font directly to a QAction is not enought; style sheet + // Setting a font directly to a QAction is not enough; style sheet // definitions // preval over QAction font settings. inserMenu->setObjectName("fxMenu"); diff --git a/toonz/sources/toonzqt/docklayout.cpp b/toonz/sources/toonzqt/docklayout.cpp index de7717ac..3345478f 100644 --- a/toonz/sources/toonzqt/docklayout.cpp +++ b/toonz/sources/toonzqt/docklayout.cpp @@ -1655,7 +1655,7 @@ DockPlaceholder *DockDecoAllocator::newPlaceholder(DockWidget *owner, Region *r, //------------------------------------------------------ -// BuildGeometry() method should not be called inside the base contructor - +// BuildGeometry() method should not be called inside the base constructor - // because it's a virtual method. // So we provide this little inline... DockPlaceholder *DockDecoAllocator::newPlaceBuilt(DockWidget *owner, Region *r, diff --git a/toonz/sources/toonzqt/docklayout.h b/toonz/sources/toonzqt/docklayout.h index 71261c5b..95ae3bb4 100644 --- a/toonz/sources/toonzqt/docklayout.h +++ b/toonz/sources/toonzqt/docklayout.h @@ -97,8 +97,8 @@ public: void update(); // Re-applies partition found void redistribute(bool allowFixedItems = true); // Calculates partition - void applyTransform(const QTransform &transform); // Applies tranformation to - // known parition - Da + void applyTransform(const QTransform &transform); // Applies transformation to + // known partition - Da // rimuovere, non serve... DockWidget *getMaximized() { return m_maximizedDock; } @@ -278,7 +278,7 @@ public: // Decorations allocator void setDecoAllocator(DockDecoAllocator *decoAllocator); - // reimpremented in FlipbookPanel + // reimplemented in FlipbookPanel virtual void onDock(bool docked) {} private: @@ -382,7 +382,7 @@ private: // Dock Placeholder //--------------------------- -//! A dock placeholder contains the necessary informations about a possible +//! A dock placeholder contains the necessary information about a possible //! docking solution. /*! @@ -405,11 +405,11 @@ class DockPlaceholder : public QWidget { friend class DockLayout; // DockLayout is granted access to placeholders' // privates - // Docking informations - private + // Docking information - private Region *m_region; int m_idx; - // Docking informations - public + // Docking information - public int m_attributes; // Owner @@ -478,7 +478,7 @@ private: Every subRegion, if present, has opposite subdivision direction with respect to parent one. In addition, regions possess lists of separators and placeholders found along its subdivision direction. - Region informations are owned by the DockLayout who allocates it; however, + Region information are owned by the DockLayout who allocates it; however, they are read-only accessible by the user. \sa DockLayout, DockWidget, DockSeparator and DockPlaceholder classes. diff --git a/toonz/sources/toonzqt/dockwidget.cpp b/toonz/sources/toonzqt/dockwidget.cpp index 41adc78a..c08a76be 100644 --- a/toonz/sources/toonzqt/dockwidget.cpp +++ b/toonz/sources/toonzqt/dockwidget.cpp @@ -113,7 +113,7 @@ DockWidget::DockWidget(QWidget *parent, Qt::WindowFlags flags) , m_parentLayout(0) , m_selectedPlace(0) , m_maximized(0) { - // Don't let this widget inherit the parent's backround color + // Don't let this widget inherit the parent's background color // setAutoFillBackground(true); // setBackgroundRole(QPalette::Background); diff --git a/toonz/sources/toonzqt/dvdialog.cpp b/toonz/sources/toonzqt/dvdialog.cpp index 0d780de9..9676114c 100644 --- a/toonz/sources/toonzqt/dvdialog.cpp +++ b/toonz/sources/toonzqt/dvdialog.cpp @@ -187,7 +187,7 @@ layout, a collection of must recall endVLayout(), this add horizontal layout to first part of dialog. - This struct permit you to allign the object you insert. + This struct permit you to align the object you insert. \n If you need vertical layout you can use an implemented vertical box layout composed of two column, the function beginVLayout() initialize the @@ -195,7 +195,7 @@ vertical box layout, a collection of function permit to insert object in this layout. All this functions insert a pair of object in two vertical layout and permit - to allign the objects, all pairs you insert are tabulated. + to align the objects, all pairs you insert are tabulated. At the end you must recall endVLayout(), this add vertical layout to first part of dialog. @@ -678,7 +678,7 @@ void Dialog::addSeparator(QString name) { } //----------------------------------------------------------------------------- -/*! Set the alignement of the main layout +/*! Set the alignment of the main layout */ void Dialog::setAlignment(Qt::Alignment alignment) { m_mainFrame->layout()->setAlignment(alignment); diff --git a/toonz/sources/toonzqt/flipconsole.cpp b/toonz/sources/toonzqt/flipconsole.cpp index 6a20a973..3951b707 100644 --- a/toonz/sources/toonzqt/flipconsole.cpp +++ b/toonz/sources/toonzqt/flipconsole.cpp @@ -1438,7 +1438,7 @@ void FlipConsole::enableBlanks(bool state) { } //----------------------------------------------------------------------------- -/*! call consoleOwner->onDrawFrame() intead of emitting drawFrame signal +/*! call consoleOwner->onDrawFrame() instead of emitting drawFrame signal */ void FlipConsole::showCurrentFrame() { m_consoleOwner->onDrawFrame(m_currentFrame, m_settings); diff --git a/toonz/sources/toonzqt/functionsegmentviewer.cpp b/toonz/sources/toonzqt/functionsegmentviewer.cpp index f8977865..204313de 100644 --- a/toonz/sources/toonzqt/functionsegmentviewer.cpp +++ b/toonz/sources/toonzqt/functionsegmentviewer.cpp @@ -636,7 +636,7 @@ m_unitFld->setText(""); } //----------------------------------------------------------------------------- -/*! return false if a circular reference is occured +/*! return false if a circular reference is occurred */ bool FunctionExpressionSegmentPage::getGuiValues(std::string &expressionText, std::string &unitName) { diff --git a/toonz/sources/toonzqt/functiontreeviewer.cpp b/toonz/sources/toonzqt/functiontreeviewer.cpp index 6e4337a9..8594329b 100644 --- a/toonz/sources/toonzqt/functiontreeviewer.cpp +++ b/toonz/sources/toonzqt/functiontreeviewer.cpp @@ -6,7 +6,7 @@ #include "tfilepath_io.h" #include "tfunctorinvoker.h" -// TnzBase incudes +// TnzBase includes #include "tunit.h" #include "tparamcontainer.h" #include "tparamset.h" diff --git a/toonz/sources/toonzqt/fxschematicnode.cpp b/toonz/sources/toonzqt/fxschematicnode.cpp index 997906f1..5f9e62b2 100644 --- a/toonz/sources/toonzqt/fxschematicnode.cpp +++ b/toonz/sources/toonzqt/fxschematicnode.cpp @@ -1695,7 +1695,7 @@ void FxSchematicPort::mouseReleaseEvent(QGraphicsSceneMouseEvent *me) { TZeraryColumnFx *colFx = dynamic_cast(targetOwnerFx); if (colFx) targetOwnerFx = colFx->getZeraryFx(); - // if the target fx has no dynamic port or has dinamic ports but the tatgert + // if the target fx has no dynamic port or has dynamic ports but the target // port is not an input port: do nothing! if (!targetOwnerFx || !targetOwnerFx->hasDynamicPortGroups() || targetPort->getType() != eFxInputPort) { @@ -1718,7 +1718,7 @@ void FxSchematicPort::mouseReleaseEvent(QGraphicsSceneMouseEvent *me) { int groupedPortCount = groupedPorts.size(); if (targetOwnerFx != m_ownerFx && me->modifiers() == Qt::ControlModifier && linkTo(targetPort, true)) { - // trying to link different fxs insertin the new link and shifting the + // trying to link different fxs inserting the new link and shifting the // others int targetIndex = getIndex(targetFxPort, groupedPorts); if (targetIndex == -1) { diff --git a/toonz/sources/toonzqt/gutil.cpp b/toonz/sources/toonzqt/gutil.cpp index 1e49b1f5..7d8776f9 100644 --- a/toonz/sources/toonzqt/gutil.cpp +++ b/toonz/sources/toonzqt/gutil.cpp @@ -284,7 +284,7 @@ QIcon createQIcon(const char *iconSVGName, bool useFullOpacity) { const qreal baseOpacity = useFullOpacity ? 1 : 0.8; const qreal disabledOpacity = 0.15; - // Psuedo state name strings + // Pseudo state name strings QString overStr = QString(iconSVGName) + "_over"; QString onStr = QString(iconSVGName) + "_on"; diff --git a/toonz/sources/toonzqt/icongenerator.cpp b/toonz/sources/toonzqt/icongenerator.cpp index 3cb29e6c..82c001c6 100644 --- a/toonz/sources/toonzqt/icongenerator.cpp +++ b/toonz/sources/toonzqt/icongenerator.cpp @@ -200,7 +200,7 @@ void makeChessBackground(const TRaster32P &ras) { //========================================== // -// Image-to-Icon convertion methods +// Image-to-Icon conversion methods // //------------------------------------------ @@ -1576,7 +1576,7 @@ void IconGenerator::invalidate(TXshLevel *xl, const TFrameId &fid, id += "_small"; if (iconsMap.find(id) == iconsMap.end()) return; - // Not-filmstrip icons diable all checks + // Not-filmstrip icons disable all checks IconGenerator::Settings oldSettings = m_settings; m_settings.m_transparencyCheck = false; m_settings.m_inkIndex = -1; diff --git a/toonz/sources/toonzqt/imageutils.cpp b/toonz/sources/toonzqt/imageutils.cpp index 375e2bbb..1561d4cf 100644 --- a/toonz/sources/toonzqt/imageutils.cpp +++ b/toonz/sources/toonzqt/imageutils.cpp @@ -627,7 +627,7 @@ void convert(const TFilePath &source, const TFilePath &dest, TRop::Triangle, frameNotifier, bgColor, removeDotBeforeFrameNumber); else if (srcExt == "pli") - // assert(!"Conversion from pli files is currently diabled"); + // assert(!"Conversion from pli files is currently disabled"); convertFromVector(lr, lw, frames, frameNotifier); else convertFromFullRaster(lr, lw, frames, TAffine(), TRop::Triangle, @@ -913,7 +913,7 @@ bool FullScreenWidget::toggleFullScreen( //============================================================= const bool kfApplicationQuitInProgress) // Indicates whether the - // application is quiting. + // application is quitting. /* * DESCRIPTION: @@ -950,7 +950,7 @@ bool FullScreenWidget::toggleFullScreen( fFullScreenStateToggled = true; } else { // There's no point to switching into full screen if the - // application is in the process of quiting. + // application is in the process of quitting. if (!kfApplicationQuitInProgress) { //============================================================== // diff --git a/toonz/sources/toonzqt/lutcalibrator.cpp b/toonz/sources/toonzqt/lutcalibrator.cpp index 3bc82ca7..8e877229 100644 --- a/toonz/sources/toonzqt/lutcalibrator.cpp +++ b/toonz/sources/toonzqt/lutcalibrator.cpp @@ -256,7 +256,7 @@ bool LutCalibrator::initializeLutTextureShader() { "#version 330 core \n" "// Interpolated values from the vertex shaders \n" "in vec2 UV; \n" - "// Ouput data \n" + "// Output data \n" "out vec4 color; \n" "// Values that stay constant for the whole mesh. \n" "uniform sampler2D tex; \n" @@ -485,7 +485,7 @@ bool LutManager::loadLutFile(const QString& fp) { //---- read the 3DLUT files - // The first line shoud start from "3DMESH" keyword (case sensitive) + // The first line should start from "3DMESH" keyword (case sensitive) line = locals::readDataLine(stream); if (line != "3DMESH") { file.close(); @@ -573,7 +573,7 @@ void LutManager::convert(float& r, float& g, float& b) { for (int c = 0; c < 3; c++) { float val = rawVal[c] * (float)(m_lut.meshSize - 1); index[c][0] = (int)val; - // boundary condition: if rawVal == 1 the value will not be interporated + // boundary condition: if rawVal == 1 the value will not be interpolated index[c][1] = (rawVal[c] >= 1.0f) ? index[c][0] : index[c][0] + 1; ratio[c] = val - (float)index[c][0]; } diff --git a/toonz/sources/toonzqt/palettesscanpopup.cpp b/toonz/sources/toonzqt/palettesscanpopup.cpp index e738dfbe..ea28d837 100644 --- a/toonz/sources/toonzqt/palettesscanpopup.cpp +++ b/toonz/sources/toonzqt/palettesscanpopup.cpp @@ -146,7 +146,7 @@ void PalettesScanPopup::pop() { } //----------------------------------------------------------------------------- -/*! Return true if direcories stack is not empty; otherwise return false. +/*! Return true if directories stack is not empty; otherwise return false. \n If stack is not empty check current directory: \li if all files are checked recall \b pop(); \li if its path is a directory recall \b push(const TFilePath &fp); diff --git a/toonz/sources/toonzqt/paletteviewergui.cpp b/toonz/sources/toonzqt/paletteviewergui.cpp index 75f53984..6fbd072c 100644 --- a/toonz/sources/toonzqt/paletteviewergui.cpp +++ b/toonz/sources/toonzqt/paletteviewergui.cpp @@ -83,7 +83,7 @@ using namespace DVGui; the style is displayed as tooltip. \li SmallChipsWithName: - displays styles as small squares with the name insde. + displays styles as small squares with the name inside. \li LargeChips: displays the styles on top of the name of the style. \li List: List displays style @@ -824,7 +824,7 @@ void PageViewer::paintEvent(QPaintEvent *e) { } else if (m_nameDisplayMode == StyleAndOriginal) { drawChipName(p, chipRect, name); - // display original name only whne LargeChip view + // display original name only when LargeChip view if (m_viewMode == LargeChips && origName != L"") { tmpFont.setItalic(true); tmpFont.setPixelSize(tmpFont.pixelSize() - 3); @@ -1029,7 +1029,7 @@ void PageViewer::mousePressEvent(QMouseEvent *event) { } //----------------------------------------------------------------------------- -/*! If left botton is pressed start drag. +/*! If left button is pressed start drag. */ void PageViewer::mouseMoveEvent(QMouseEvent *event) { if (!m_page) return; diff --git a/toonz/sources/toonzqt/plugin_param_traits.h b/toonz/sources/toonzqt/plugin_param_traits.h index 89606806..4c95b0cf 100644 --- a/toonz/sources/toonzqt/plugin_param_traits.h +++ b/toonz/sources/toonzqt/plugin_param_traits.h @@ -308,7 +308,7 @@ struct set_param_default_t { template <> struct set_param_default_t { static bool set_param_default(Param *param, const toonz_param_desc_t *desc) { - /* unfortunatly, TSpectrumParam's default values must be set within the + /* unfortunately, TSpectrumParam's default values must be set within the constructor, for now. see param_factory_< TSpectrumParam >() */ return false; @@ -407,7 +407,7 @@ inline T *param_factory_(const toonz_param_desc_t *desc) { template <> inline TPointParam *param_factory_(const toonz_param_desc_t *desc) { - return new TPointParam(TPointD(), true /* instanciate from plugin */); + return new TPointParam(TPointD(), true /* instantiate from plugin */); } template <> diff --git a/toonz/sources/toonzqt/pluginhost.cpp b/toonz/sources/toonzqt/pluginhost.cpp index 3d0830e9..3e99d203 100644 --- a/toonz/sources/toonzqt/pluginhost.cpp +++ b/toonz/sources/toonzqt/pluginhost.cpp @@ -1406,7 +1406,7 @@ toonz_plugin_info で検索し、なければ toonz_plugin_probe() を呼び出 if (problist) { if (!is_compatible(*problist)) throw std::domain_error( - "invaid toonz_plugin_info_list: version unmatched"); + "invalid toonz_plugin_info_list: version unmatched"); probinfo_begin = problist->begin; probinfo_end = problist->end; } @@ -1503,7 +1503,7 @@ toonz_plugin_info で検索し、なければ toonz_plugin_probe() を呼び出 throw std::domain_error("not found _toonz_plugin_init"); } } catch (const std::exception &e) { - printf("Exception occured after plugin loading: %s\n", e.what()); + printf("Exception occurred after plugin loading: %s\n", e.what()); } if (pi->handler_ && pi->handler_->setup) { @@ -1522,7 +1522,7 @@ toonz_plugin_info で検索し、なければ toonz_plugin_probe() を呼び出 } } } catch (const std::exception &e) { - printf("Exception occured while plugin loading: %s\n", e.what()); + printf("Exception occurred while plugin loading: %s\n", e.what()); delete pi; pi = NULL; } @@ -1565,7 +1565,7 @@ PluginLoadController::PluginLoadController(const std::string &basedir, connect(&work_entity, &QThread::finished, ld, &QObject::deleteLater); /* AddFxContextMenu から呼ばれていたが、プラグインの検索が load_entries() を通じて起動時に呼ばれるようにした関係で, - (あまりよくはないが)listner の有無によって receiver を分けるようにしている. + (あまりよくはないが)listener の有無によって receiver を分けるようにしている. listener がいる場合は従来通り context menu の構築のために AddFxContextMenu::fixup() に接続するが それ以外では plugin_dict_ への追加のため PluginLoadController::finished diff --git a/toonz/sources/toonzqt/schematicnode.cpp b/toonz/sources/toonzqt/schematicnode.cpp index e9e095df..e834b09d 100644 --- a/toonz/sources/toonzqt/schematicnode.cpp +++ b/toonz/sources/toonzqt/schematicnode.cpp @@ -873,7 +873,7 @@ QPointF SchematicPort::getLinkEndPoint() const { return scenePos() + m_hook; } // //======================================================== -/*! \class SchematicNode schematicnode.h "../inlcude/toonzqt/schematicnode.h" +/*! \class SchematicNode schematicnode.h "../include/toonzqt/schematicnode.h" \brief The class provides methods to draw and handle a node item in the SchematicScene. */ diff --git a/toonz/sources/toonzqt/schematicviewer.cpp b/toonz/sources/toonzqt/schematicviewer.cpp index a5adb02a..8d639747 100644 --- a/toonz/sources/toonzqt/schematicviewer.cpp +++ b/toonz/sources/toonzqt/schematicviewer.cpp @@ -419,7 +419,7 @@ void SchematicSceneViewer::wheelEvent(QWheelEvent *me) { void SchematicSceneViewer::zoomQt(bool zoomin, bool resetView) { if (resetView) { resetMatrix(); - // reseting will set view to the center of items bounding + // resetting will set view to the center of items bounding centerOn(scene()->itemsBoundingRect().center()); return; } @@ -1037,7 +1037,7 @@ void SchematicViewer::createActions() { // Switch display of stage schematic's output port switchPort = - new QAction(tr("&Swtich output port display mode"), m_stageToolbar); + new QAction(tr("&Switch output port display mode"), m_stageToolbar); switchPort->setCheckable(true); switchPort->setChecked(m_stageScene->isShowLetterOnPortFlagEnabled()); QIcon switchPortIcon = createQIcon("switchport"); @@ -1202,7 +1202,7 @@ void SchematicViewer::setStageSchematicViewed(bool isStageSchematic) { } //------------------------------------------------------------------ -// called when the signals xshLevelChanged or objectSwitched is emited +// called when the signals xshLevelChanged or objectSwitched is emitted void SchematicViewer::updateScenes() { TStageObjectId id = m_stageScene->getCurrentObject(); if (id.isColumn()) { diff --git a/toonz/sources/toonzqt/spectrumfield.cpp b/toonz/sources/toonzqt/spectrumfield.cpp index 5306f73e..4d87e6fb 100644 --- a/toonz/sources/toonzqt/spectrumfield.cpp +++ b/toonz/sources/toonzqt/spectrumfield.cpp @@ -186,7 +186,7 @@ void SpectrumBar::paintEvent(QPaintEvent *e) { } //----------------------------------------------------------------------------- -/*! Manage mouse press event. Search exsisting key near click position, if +/*! Manage mouse press event. Search existing key near click position, if there is set it as current key; otherwise add a new key in click position. */ diff --git a/toonz/sources/toonzqt/styleeditor.cpp b/toonz/sources/toonzqt/styleeditor.cpp index b7f22f98..62d79d0a 100644 --- a/toonz/sources/toonzqt/styleeditor.cpp +++ b/toonz/sources/toonzqt/styleeditor.cpp @@ -647,7 +647,7 @@ QPixmap makeSquareShading(const ColorModel &color, ColorChannel channel, HexagonalColorWheel::HexagonalColorWheel(QWidget *parent) : GLWidgetForHighDpi(parent) - , m_bgColor(128, 128, 128) // defaul value in case this value does not set + , m_bgColor(128, 128, 128) // default value in case this value does not set // in the style sheet { setObjectName("HexagonalColorWheel"); @@ -708,7 +708,7 @@ void HexagonalColorWheel::initializeGL() { glClearColor(color.redF(), color.greenF(), color.blueF(), color.alphaF()); // Without the following lines, the wheel in a floating style editor - // dissapears on switching the room due to context switching. + // disappears on switching the room due to context switching. if (m_firstInitialized) m_firstInitialized = false; else { diff --git a/toonz/sources/toonzqt/styleselection.cpp b/toonz/sources/toonzqt/styleselection.cpp index 192ce276..bfd4dfe1 100644 --- a/toonz/sources/toonzqt/styleselection.cpp +++ b/toonz/sources/toonzqt/styleselection.cpp @@ -1641,7 +1641,7 @@ public: }; //----------------------------------------------------------------------------- -/*! remove link from studio palette. Delete the global and the orginal names. +/*! remove link from studio palette. Delete the global and the original names. * return true if something changed */ void TStyleSelection::removeLink() {