From c072b1bc8e19b4d192184d080991efadc008cac2 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Tue, 25 Jan 2022 11:43:53 +0000 Subject: [PATCH] Fix some typos --- README.md | 2 +- docs/CMake API.md | 2 +- docs/JUCE Module Format.md | 2 +- docs/Linux Dependencies.md | 2 +- extras/Build/juceaide/CMakeLists.txt | 2 +- extras/Projucer/Source/Project/jucer_Project.cpp | 2 +- .../juce_audio_basics/midi/ump/juce_UMPSysEx7.h | 2 +- .../processors/juce_AudioProcessorEditor.h | 2 +- .../utilities/juce_AudioProcessorValueTreeState.h | 2 +- .../gui/juce_AudioThumbnailCache.h | 2 +- .../gui/juce_BluetoothMidiDevicePairingDialogue.h | 2 +- modules/juce_core/containers/juce_Array.h | 12 ++++++------ modules/juce_core/xml/juce_XmlDocument.h | 2 +- modules/juce_dsp/widgets/juce_Chorus.h | 2 +- modules/juce_graphics/images/juce_ScaledImage.h | 2 +- .../interfaces/juce_AccessibilityValueInterface.h | 2 +- .../layout/juce_MultiDocumentPanel.h | 2 +- .../native/accessibility/juce_ios_Accessibility.mm | 2 +- .../native/juce_common_MimeTypes.cpp | 2 +- modules/juce_gui_basics/widgets/juce_Slider.h | 2 +- .../juce_gui_basics/windows/juce_TooltipWindow.cpp | 14 +++++++------- .../juce_gui_basics/windows/juce_TooltipWindow.h | 2 +- modules/juce_video/native/juce_ios_CameraDevice.h | 2 +- .../juce_video/native/juce_win32_CameraDevice.h | 2 +- 24 files changed, 35 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 4198e9c87c..0f0eaa8373 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ tool) or with CMake. The repository doesn't contain a pre-built Projucer so you will need to build it for your platform - Xcode, Visual Studio and Linux Makefile projects are located in [extras/Projucer/Builds](/extras/Projucer/Builds) -(the minumum system requirements are listed in the __System Requirements__ section below). +(the minimum system requirements are listed in the __System Requirements__ section below). The Projucer can then be used to create new JUCE projects, view tutorials and run examples. It is also possible to include the JUCE modules source code in an existing project directly, or build them into a static or dynamic library which can be linked into a project. diff --git a/docs/CMake API.md b/docs/CMake API.md index 74e465002a..a2fecc77ff 100644 --- a/docs/CMake API.md +++ b/docs/CMake API.md @@ -539,7 +539,7 @@ attributes directly to these creation functions, rather than adding them later. `USE_LEGACY_COMPATIBILITY_PLUGIN_CODE` - May be either TRUE or FALSE (defaults to FALSE). If TRUE, will override the value of the preprocessor definition "JucePlugin_ManufacturerCode" with the hex equivalent of "proj". This - option exists to maintain compatiblity with a previous, buggy version of JUCE's CMake support + option exists to maintain compatibility with a previous, buggy version of JUCE's CMake support which mishandled the manufacturer code property. Most projects should leave this option set to its default value. diff --git a/docs/JUCE Module Format.md b/docs/JUCE Module Format.md index c342b61d59..60bacd4e21 100644 --- a/docs/JUCE Module Format.md +++ b/docs/JUCE Module Format.md @@ -17,7 +17,7 @@ JUCE convention for naming modules is lower-case with underscores, e.g. juce_events juce_graphics -But any name that is a valid C++ identifer is OK. +But any name that is a valid C++ identifier is OK. Inside the root of this folder, there must be a set of public header and source files which the user's' project will include. The module may have as many other internal source files as diff --git a/docs/Linux Dependencies.md b/docs/Linux Dependencies.md index 13528b2f95..3dc1502c95 100644 --- a/docs/Linux Dependencies.md +++ b/docs/Linux Dependencies.md @@ -6,7 +6,7 @@ flag used to disable it is noted. This has been tested on Ubuntu 16.04 LTS (Xenial Xerus), 18.04 LTS (Bionic Beaver), and 20.04 LTS (Focal Fossa). Packages may differ in name or not be -available on other distrubutions. +available on other distributions. ## Compiler A C++ compiler is required. JUCE has been tested thoroughly with Clang and GCC: diff --git a/extras/Build/juceaide/CMakeLists.txt b/extras/Build/juceaide/CMakeLists.txt index ac0b43214f..dd680eae54 100644 --- a/extras/Build/juceaide/CMakeLists.txt +++ b/extras/Build/juceaide/CMakeLists.txt @@ -61,7 +61,7 @@ else() message(STATUS "Configuring juceaide") - # Looks like we're boostrapping, reinvoke CMake + # Looks like we're bootstrapping, reinvoke CMake execute_process(COMMAND "${CMAKE_COMMAND}" "." "-B${JUCE_BINARY_DIR}/tools" diff --git a/extras/Projucer/Source/Project/jucer_Project.cpp b/extras/Projucer/Source/Project/jucer_Project.cpp index a31e68c841..fd69c0985c 100644 --- a/extras/Projucer/Source/Project/jucer_Project.cpp +++ b/extras/Projucer/Source/Project/jucer_Project.cpp @@ -1314,7 +1314,7 @@ void Project::createPropertyEditors (PropertyListBuilder& props) "which may simplify the includes in the project."); props.add (new ChoicePropertyComponent (addUsingNamespaceToJuceHeader, "Add \"using namespace juce\" to JuceHeader.h"), - "If enabled, the JuceHeader.h will include a \"using namepace juce\" statement. If disabled, " + "If enabled, the JuceHeader.h will include a \"using namespace juce\" statement. If disabled, " "no such statement will be included. This setting used to be enabled by default, but it " "is recommended to leave it disabled for new projects."); diff --git a/modules/juce_audio_basics/midi/ump/juce_UMPSysEx7.h b/modules/juce_audio_basics/midi/ump/juce_UMPSysEx7.h index 2a264bbdba..be73c1725f 100644 --- a/modules/juce_audio_basics/midi/ump/juce_UMPSysEx7.h +++ b/modules/juce_audio_basics/midi/ump/juce_UMPSysEx7.h @@ -28,7 +28,7 @@ namespace universal_midi_packets { /** - This struct acts as a single-file namespace for Univeral MIDI Packet + This struct acts as a single-file namespace for Universal MIDI Packet functionality related to 7-bit SysEx. @tags{Audio} diff --git a/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h b/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h index 3d0450d0f5..896d018c79 100644 --- a/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h +++ b/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h @@ -174,7 +174,7 @@ public: A pointer to the object you pass in will be kept, but it won't be deleted by this object, so it's the caller's responsibility to manage it. - If you pass a nullptr, then no contraints will be placed on the positioning of the window. + If you pass a nullptr, then no constraints will be placed on the positioning of the window. */ void setConstrainer (ComponentBoundsConstrainer* newConstrainer); diff --git a/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.h b/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.h index e9b9999927..e1125680f2 100644 --- a/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.h +++ b/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.h @@ -175,7 +175,7 @@ public: std::make_unique ("b", "Parameter B", 0, 5, 2) }) @endcode - To add parameters programatically you can call `add` repeatedly on a + To add parameters programmatically you can call `add` repeatedly on a ParameterLayout instance: @code diff --git a/modules/juce_audio_utils/gui/juce_AudioThumbnailCache.h b/modules/juce_audio_utils/gui/juce_AudioThumbnailCache.h index 71a3d1afea..0a5743149d 100644 --- a/modules/juce_audio_utils/gui/juce_AudioThumbnailCache.h +++ b/modules/juce_audio_utils/gui/juce_AudioThumbnailCache.h @@ -64,7 +64,7 @@ public: */ bool loadThumb (AudioThumbnailBase& thumb, int64 hashCode); - /** Stores the cachable data from the specified thumb in this cache. + /** Stores the cacheable data from the specified thumb in this cache. This is called automatically by the AudioThumbnail class, so you shouldn't normally need to call it directly. diff --git a/modules/juce_audio_utils/gui/juce_BluetoothMidiDevicePairingDialogue.h b/modules/juce_audio_utils/gui/juce_BluetoothMidiDevicePairingDialogue.h index f56b19d0f2..57e6289718 100644 --- a/modules/juce_audio_utils/gui/juce_BluetoothMidiDevicePairingDialogue.h +++ b/modules/juce_audio_utils/gui/juce_BluetoothMidiDevicePairingDialogue.h @@ -36,7 +36,7 @@ namespace juce Only after a Bluetooth MIDI device has been paired will its MIDI ports be available through JUCE's MidiInput and MidiOutput classes. - This dialogue is currently only available on macOS targetting versions 10.11+, + This dialogue is currently only available on macOS targeting versions 10.11+, iOS and Android. When targeting older versions of macOS you should instead pair Bluetooth MIDI devices using the "Audio MIDI Setup" app (located in /Applications/Utilities). On Windows, you should use the system settings. On diff --git a/modules/juce_core/containers/juce_Array.h b/modules/juce_core/containers/juce_Array.h index 0692a15978..065496e559 100644 --- a/modules/juce_core/containers/juce_Array.h +++ b/modules/juce_core/containers/juce_Array.h @@ -76,7 +76,7 @@ public: { } - /** Initalises from a null-terminated raw array of values. + /** Initialises from a null-terminated raw array of values. @param data the data to copy from */ template @@ -86,7 +86,7 @@ public: add (*data++); } - /** Initalises from a raw array of values. + /** Initialises from a raw array of values. @param data the data to copy from @param numValues the number of values in the array */ @@ -96,26 +96,26 @@ public: values.addArray (data, numValues); } - /** Initalises an Array of size 1 containing a single element. */ + /** Initialises an Array of size 1 containing a single element. */ Array (const ElementType& singleElementToAdd) { add (singleElementToAdd); } - /** Initalises an Array of size 1 containing a single element. */ + /** Initialises an Array of size 1 containing a single element. */ Array (ElementType&& singleElementToAdd) { add (std::move (singleElementToAdd)); } - /** Initalises an Array from a list of items. */ + /** Initialises an Array from a list of items. */ template Array (const ElementType& firstNewElement, OtherElements&&... otherElements) { values.add (firstNewElement, std::forward (otherElements)...); } - /** Initalises an Array from a list of items. */ + /** Initialises an Array from a list of items. */ template Array (ElementType&& firstNewElement, OtherElements&&... otherElements) { diff --git a/modules/juce_core/xml/juce_XmlDocument.h b/modules/juce_core/xml/juce_XmlDocument.h index 92918ed325..fe12c3f508 100644 --- a/modules/juce_core/xml/juce_XmlDocument.h +++ b/modules/juce_core/xml/juce_XmlDocument.h @@ -125,7 +125,7 @@ public: /** Sets a flag to change the treatment of empty text elements. If this is true (the default state), then any text elements that contain only - whitespace characters will be ingored during parsing. If you need to catch + whitespace characters will be ignored during parsing. If you need to catch whitespace-only text, then you should set this to false before calling the getDocumentElement() method. */ diff --git a/modules/juce_dsp/widgets/juce_Chorus.h b/modules/juce_dsp/widgets/juce_Chorus.h index 387850d36b..f1d932976c 100644 --- a/modules/juce_dsp/widgets/juce_Chorus.h +++ b/modules/juce_dsp/widgets/juce_Chorus.h @@ -37,7 +37,7 @@ namespace dsp of the modulation. Note: To get classic chorus sounds try to use a centre delay time around 7-8 ms - with a low feeback volume and a low depth. This effect can also be used as a + with a low feedback volume and a low depth. This effect can also be used as a flanger with a lower centre delay time and a lot of feedback, and as a vibrato effect if the mix value is 1. diff --git a/modules/juce_graphics/images/juce_ScaledImage.h b/modules/juce_graphics/images/juce_ScaledImage.h index fb1790b977..10e4c748a1 100644 --- a/modules/juce_graphics/images/juce_ScaledImage.h +++ b/modules/juce_graphics/images/juce_ScaledImage.h @@ -65,7 +65,7 @@ public: ScaledImage (const Image& imageIn, double scaleIn) : image (imageIn), scaleFactor (scaleIn) {} - /** Returns the image at its original dimentions. */ + /** Returns the image at its original dimensions. */ Image getImage() const { return image; } /** Returns the image's scale. */ diff --git a/modules/juce_gui_basics/accessibility/interfaces/juce_AccessibilityValueInterface.h b/modules/juce_gui_basics/accessibility/interfaces/juce_AccessibilityValueInterface.h index b8a9b7d138..3690ebf75a 100644 --- a/modules/juce_gui_basics/accessibility/interfaces/juce_AccessibilityValueInterface.h +++ b/modules/juce_gui_basics/accessibility/interfaces/juce_AccessibilityValueInterface.h @@ -113,7 +113,7 @@ public: /** Returns the minimum value for this range. */ double getMinimumValue() const noexcept { return range.min; } - /** Returns the maxiumum value for this range. */ + /** Returns the maximum value for this range. */ double getMaximumValue() const noexcept { return range.max; } /** Returns the interval for this range. */ diff --git a/modules/juce_gui_basics/layout/juce_MultiDocumentPanel.h b/modules/juce_gui_basics/layout/juce_MultiDocumentPanel.h index f208e7736c..14034284ba 100644 --- a/modules/juce_gui_basics/layout/juce_MultiDocumentPanel.h +++ b/modules/juce_gui_basics/layout/juce_MultiDocumentPanel.h @@ -328,7 +328,7 @@ public: operation you could give a value of false to the callback to abort the close operation. If your component is based on the FileBasedDocument class, then you'd probably want - to call FileBasedDocument::saveIfNeededAndUserAgreesAsync() and call the calback with + to call FileBasedDocument::saveIfNeededAndUserAgreesAsync() and call the callback with true if this returned FileBasedDocument::savedOk. @see closeDocumentAsync, FileBasedDocument::saveIfNeededAndUserAgreesAsync() diff --git a/modules/juce_gui_basics/native/accessibility/juce_ios_Accessibility.mm b/modules/juce_gui_basics/native/accessibility/juce_ios_Accessibility.mm index d22ef1c86f..eacd2753c5 100644 --- a/modules/juce_gui_basics/native/accessibility/juce_ios_Accessibility.mm +++ b/modules/juce_gui_basics/native/accessibility/juce_ios_Accessibility.mm @@ -399,7 +399,7 @@ private: { if (auto* handler = getHandler (self)) { - // occasionaly VoiceOver sends accessibilityActivate to the wrong element, so we first query + // Occasionally VoiceOver sends accessibilityActivate to the wrong element, so we first query // which element it thinks has focus and forward the event on to that element if it differs id focusedElement = UIAccessibilityFocusedElement (UIAccessibilityNotificationVoiceOverIdentifier); diff --git a/modules/juce_gui_basics/native/juce_common_MimeTypes.cpp b/modules/juce_gui_basics/native/juce_common_MimeTypes.cpp index 3a3f017d09..0474ec345a 100644 --- a/modules/juce_gui_basics/native/juce_common_MimeTypes.cpp +++ b/modules/juce_gui_basics/native/juce_common_MimeTypes.cpp @@ -434,7 +434,7 @@ MimeTypeTableEntry MimeTypeTableEntry::table[641] = {"psd", "application/octet-stream"}, {"pvu", "paleovu/x-pv"}, {"pwz", "application/vnd.ms-powerpoint"}, - {"py", "text/x-script.phyton"}, + {"py", "text/x-script.python"}, {"pyc", "application/x-bytecode.python"}, {"qcp", "audio/vnd.qcelp"}, {"qd3", "x-world/x-3dmf"}, diff --git a/modules/juce_gui_basics/widgets/juce_Slider.h b/modules/juce_gui_basics/widgets/juce_Slider.h index a7616b151c..df95a5f24a 100644 --- a/modules/juce_gui_basics/widgets/juce_Slider.h +++ b/modules/juce_gui_basics/widgets/juce_Slider.h @@ -889,7 +889,7 @@ public: //============================================================================== /** An RAII class for sending slider listener drag messages. - This is useful if you are programatically updating the slider's value and want + This is useful if you are programmatically updating the slider's value and want to imitate a mouse event, for example in a custom AccessibilityHandler. @see Slider::Listener diff --git a/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp b/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp index 08e3b7fa33..8f1eb5de63 100644 --- a/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp +++ b/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp @@ -71,13 +71,13 @@ void TooltipWindow::mouseEnter (const MouseEvent& e) void TooltipWindow::mouseDown (const MouseEvent&) { if (isVisible()) - dismissalMouseEventOccured = true; + dismissalMouseEventOccurred = true; } void TooltipWindow::mouseWheelMove (const MouseEvent&, const MouseWheelDetails&) { if (isVisible()) - dismissalMouseEventOccured = true; + dismissalMouseEventOccurred = true; } void TooltipWindow::updatePosition (const String& tip, Point pos, Rectangle parentArea) @@ -145,7 +145,7 @@ void TooltipWindow::displayTipInternal (Point screenPos, const String& tip, toFront (false); manuallyShownTip = shownManually == ShownManually::yes ? tip : String(); - dismissalMouseEventOccured = false; + dismissalMouseEventOccurred = false; } } @@ -168,7 +168,7 @@ void TooltipWindow::hideTip() { tipShowing = {}; manuallyShownTip = {}; - dismissalMouseEventOccured = false; + dismissalMouseEventOccurred = false; removeFromDesktop(); setVisible (false); @@ -201,7 +201,7 @@ void TooltipWindow::timerCallback() if (manuallyShownTip.isNotEmpty()) { - if (dismissalMouseEventOccured || newComp == nullptr) + if (dismissalMouseEventOccurred || newComp == nullptr) hideTip(); return; @@ -218,7 +218,7 @@ void TooltipWindow::timerCallback() const auto tipChanged = (newTip != lastTipUnderMouse || newComp != lastComponentUnderMouse); const auto now = Time::getApproximateMillisecondCounter(); - if (tipChanged || dismissalMouseEventOccured || mouseMovedQuickly) + if (tipChanged || dismissalMouseEventOccurred || mouseMovedQuickly) lastCompChangeTime = now; const auto showTip = [this, &mouseSource, &mousePos, &newTip] @@ -231,7 +231,7 @@ void TooltipWindow::timerCallback() { // if a tip is currently visible (or has just disappeared), update to a new one // immediately if needed.. - if (newComp == nullptr || dismissalMouseEventOccured || newTip.isEmpty()) + if (newComp == nullptr || dismissalMouseEventOccurred || newTip.isEmpty()) hideTip(); else if (tipChanged) showTip(); diff --git a/modules/juce_gui_basics/windows/juce_TooltipWindow.h b/modules/juce_gui_basics/windows/juce_TooltipWindow.h index 158f0df15e..72deb74a96 100644 --- a/modules/juce_gui_basics/windows/juce_TooltipWindow.h +++ b/modules/juce_gui_basics/windows/juce_TooltipWindow.h @@ -140,7 +140,7 @@ private: String tipShowing, lastTipUnderMouse, manuallyShownTip; int millisecondsBeforeTipAppears; unsigned int lastCompChangeTime = 0, lastHideTime = 0; - bool reentrant = false, dismissalMouseEventOccured = false; + bool reentrant = false, dismissalMouseEventOccurred = false; enum ShownManually { yes, no }; void displayTipInternal (Point, const String&, ShownManually); diff --git a/modules/juce_video/native/juce_ios_CameraDevice.h b/modules/juce_video/native/juce_ios_CameraDevice.h index fbe288114b..49f847413b 100644 --- a/modules/juce_video/native/juce_ios_CameraDevice.h +++ b/modules/juce_video/native/juce_ios_CameraDevice.h @@ -1305,7 +1305,7 @@ struct CameraDevice::ViewerComponent : public UIViewComponent { static JuceCameraDeviceViewerClass cls; - // Initial size that can be overriden later. + // Initial size that can be overridden later. setSize (640, 480); auto view = [cls.createInstance() init]; diff --git a/modules/juce_video/native/juce_win32_CameraDevice.h b/modules/juce_video/native/juce_win32_CameraDevice.h index 7ea42fd21a..dbe86d9772 100644 --- a/modules/juce_video/native/juce_win32_CameraDevice.h +++ b/modules/juce_video/native/juce_win32_CameraDevice.h @@ -362,7 +362,7 @@ struct CameraDevice::Pimpl : public ChangeBroadcaster using Fn = HRESULT (*) (IWMProfileManager**); - // This function is available on Windows 2000 and up, but we load it at runtime anway + // This function is available on Windows 2000 and up, but we load it at runtime anyway // because some versions of MinGW ship with libraries that don't include this symbol. if (auto* fn = reinterpret_cast (wmvcoreLibrary.getFunction ("WMCreateProfileManager"))) hr = fn (profileManager.resetAndGetPointerAddress());