Browse Source

Corrected some spelling mistakes in comments

tags/2021-05-28
jules 9 years ago
parent
commit
fb864a5cb1
38 changed files with 49 additions and 48 deletions
  1. +1
    -1
      extras/Projucer/Source/LiveBuildEngine/projucer_DiagnosticMessage.h
  2. +1
    -1
      extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h
  3. +7
    -6
      extras/Projucer/Source/Project/jucer_Project.cpp
  4. +1
    -1
      modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp
  5. +1
    -1
      modules/juce_audio_devices/native/juce_win32_ASIO.cpp
  6. +1
    -1
      modules/juce_audio_plugin_client/utility/juce_PluginBusUtilities.h
  7. +1
    -1
      modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h
  8. +1
    -1
      modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm
  9. +1
    -1
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h
  10. +1
    -1
      modules/juce_audio_processors/processors/juce_PluginDescription.h
  11. +1
    -1
      modules/juce_audio_utils/gui/juce_MidiKeyboardComponent.h
  12. +1
    -1
      modules/juce_core/maths/juce_MathsFunctions.h
  13. +1
    -1
      modules/juce_core/maths/juce_NormalisableRange.h
  14. +1
    -1
      modules/juce_core/memory/juce_Atomic.h
  15. +1
    -1
      modules/juce_core/memory/juce_ScopedPointer.h
  16. +1
    -1
      modules/juce_core/network/juce_Socket.h
  17. +1
    -1
      modules/juce_graphics/fonts/juce_GlyphArrangement.h
  18. +2
    -2
      modules/juce_graphics/geometry/juce_Path.h
  19. +1
    -1
      modules/juce_graphics/geometry/juce_PathStrokeType.cpp
  20. +1
    -1
      modules/juce_graphics/geometry/juce_Rectangle.h
  21. +1
    -1
      modules/juce_gui_basics/buttons/juce_Button.h
  22. +1
    -1
      modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.h
  23. +1
    -1
      modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h
  24. +1
    -1
      modules/juce_gui_basics/components/juce_Component.h
  25. +1
    -1
      modules/juce_gui_basics/components/juce_Desktop.h
  26. +1
    -1
      modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.h
  27. +1
    -1
      modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h
  28. +1
    -1
      modules/juce_gui_basics/menus/juce_PopupMenu.cpp
  29. +1
    -1
      modules/juce_gui_basics/mouse/juce_LassoComponent.h
  30. +2
    -2
      modules/juce_gui_basics/native/juce_win32_Windowing.cpp
  31. +1
    -1
      modules/juce_gui_basics/widgets/juce_Label.h
  32. +2
    -2
      modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h
  33. +2
    -2
      modules/juce_gui_basics/windows/juce_ResizableWindow.h
  34. +1
    -1
      modules/juce_gui_basics/windows/juce_TopLevelWindow.h
  35. +1
    -1
      modules/juce_gui_extra/code_editor/juce_CodeDocument.h
  36. +2
    -2
      modules/juce_opengl/native/juce_OpenGL_android.h
  37. +1
    -1
      modules/juce_osc/osc/juce_OSCBundle.h
  38. +1
    -1
      modules/juce_osc/osc/juce_OSCMessage.h

+ 1
- 1
extras/Projucer/Source/LiveBuildEngine/projucer_DiagnosticMessage.h View File

@@ -113,7 +113,7 @@ struct DiagnosticReceiver
struct DiagnosticList struct DiagnosticList
{ {
// after some research, it seems that notes never come on their own // after some research, it seems that notes never come on their own
// i.e. they always have a warning / error preceeding them
// i.e. they always have a warning / error preceding them
// so we can use this to keep notes and their associated notes together // so we can use this to keep notes and their associated notes together
// by keeping track of the last message // by keeping track of the last message
DiagnosticMessage lastMessage; DiagnosticMessage lastMessage;


+ 1
- 1
extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h View File

@@ -903,7 +903,7 @@ protected:
addFile (path, parent, addFile (path, parent,
projectItem.shouldBeAddedToBinaryResources() projectItem.shouldBeAddedToBinaryResources()
|| (shouldFileBeCompiledByDefault (path) && ! projectItem.shouldBeCompiled()), || (shouldFileBeCompiledByDefault (path) && ! projectItem.shouldBeCompiled()),
shouldFileBeCompiledByDefault (path) && (bool) projectItem.shouldUseStdCall());
shouldFileBeCompiledByDefault (path) && projectItem.shouldUseStdCall());
} }
} }


+ 7
- 6
extras/Projucer/Source/Project/jucer_Project.cpp View File

@@ -691,6 +691,7 @@ Project::Item Project::Item::findItemWithID (const String& targetId) const
for (int i = getNumChildren(); --i >= 0;) for (int i = getNumChildren(); --i >= 0;)
{ {
Item found (getChild(i).findItemWithID (targetId)); Item found (getChild(i).findItemWithID (targetId));
if (found.isValid()) if (found.isValid())
return found; return found;
} }
@@ -735,7 +736,7 @@ String Project::Item::getFilePath() const
if (isFile()) if (isFile())
return state [Ids::file].toString(); return state [Ids::file].toString();
return String::empty;
return String();
} }
File Project::Item::getFile() const File Project::Item::getFile() const
@@ -1060,8 +1061,8 @@ ValueTree Project::getConfigNode()
return projectRoot.getOrCreateChildWithName (Ids::JUCEOPTIONS, nullptr); return projectRoot.getOrCreateChildWithName (Ids::JUCEOPTIONS, nullptr);
} }
const char* const Project::configFlagDefault = "default";
const char* const Project::configFlagEnabled = "enabled";
const char* const Project::configFlagDefault = "default";
const char* const Project::configFlagEnabled = "enabled";
const char* const Project::configFlagDisabled = "disabled"; const char* const Project::configFlagDisabled = "disabled";
Value Project::getConfigFlag (const String& name) Value Project::getConfigFlag (const String& name)
@@ -1114,7 +1115,7 @@ String Project::getAUMainTypeString()
{ {
if (getPluginIsSynth().getValue()) s = "kAudioUnitType_MusicDevice"; if (getPluginIsSynth().getValue()) s = "kAudioUnitType_MusicDevice";
else if (getPluginWantsMidiInput().getValue()) s = "kAudioUnitType_MusicEffect"; else if (getPluginWantsMidiInput().getValue()) s = "kAudioUnitType_MusicEffect";
else s = "kAudioUnitType_Effect";
else s = "kAudioUnitType_Effect";
} }
return s; return s;
@@ -1129,7 +1130,7 @@ String Project::getAUMainTypeCode()
if (getPluginIsMidiEffectPlugin().getValue()) s = "aumi"; if (getPluginIsMidiEffectPlugin().getValue()) s = "aumi";
else if (getPluginIsSynth().getValue()) s = "aumu"; else if (getPluginIsSynth().getValue()) s = "aumu";
else if (getPluginWantsMidiInput().getValue()) s = "aumf"; else if (getPluginWantsMidiInput().getValue()) s = "aumf";
else s = "aufx";
else s = "aufx";
} }
return s; return s;
@@ -1141,7 +1142,7 @@ String Project::getPluginVSTCategoryString()
if (s.isEmpty()) if (s.isEmpty())
s = static_cast<bool> (getPluginIsSynth().getValue()) ? "kPlugCategSynth" s = static_cast<bool> (getPluginIsSynth().getValue()) ? "kPlugCategSynth"
: "kPlugCategEffect";
: "kPlugCategEffect";
return s; return s;
} }


+ 1
- 1
modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp View File

@@ -691,7 +691,7 @@ public:
{ const ScopedLock sl (callbackLock); } { const ScopedLock sl (callbackLock); }
// wait until it's definately stopped calling back..
// wait until it's definitely stopped calling back..
for (int i = 40; --i >= 0;) for (int i = 40; --i >= 0;)
{ {
Thread::sleep (50); Thread::sleep (50);


+ 1
- 1
modules/juce_audio_devices/native/juce_win32_ASIO.cpp View File

@@ -1567,7 +1567,7 @@ private:
DWORD dsize = sizeof (pathName); DWORD dsize = sizeof (pathName);
if (RegQueryValueEx (pathKey, 0, 0, &dtype, (LPBYTE) pathName, &dsize) == ERROR_SUCCESS) if (RegQueryValueEx (pathKey, 0, 0, &dtype, (LPBYTE) pathName, &dsize) == ERROR_SUCCESS)
// In older code, this used to check for the existance of the file, but there are situations
// In older code, this used to check for the existence of the file, but there are situations
// where our process doesn't have access to it, but where the driver still loads ok.. // where our process doesn't have access to it, but where the driver still loads ok..
ok = (pathName[0] != 0); ok = (pathName[0] != 0);


+ 1
- 1
modules/juce_audio_plugin_client/utility/juce_PluginBusUtilities.h View File

@@ -341,7 +341,7 @@ private:
AudioChannelSet set; AudioChannelSet set;
// If the plug-in does not complain about setting it's layout to an undefined layout // If the plug-in does not complain about setting it's layout to an undefined layout
// then we assume that the plug-in ignores the layout alltogether
// then we assume that the plug-in ignores the layout altogether
for (int i = 0; i < channelNum; ++i) for (int i = 0; i < channelNum; ++i)
set.addChannel (static_cast<AudioChannelSet::ChannelType> (pseudoChannelBitNum + i)); set.addChannel (static_cast<AudioChannelSet::ChannelType> (pseudoChannelBitNum + i));


+ 1
- 1
modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h View File

@@ -106,7 +106,7 @@ public:
If you intend to instantiate a AudioUnit v3 plug-in then you must use If you intend to instantiate a AudioUnit v3 plug-in then you must use
this non-blocking asynchrous version - or call the synchrous method this non-blocking asynchrous version - or call the synchrous method
from an auxilliary thread.
from an auxiliary thread.
*/ */
void createPluginInstanceAsync (const PluginDescription& description, void createPluginInstanceAsync (const PluginDescription& description,
double initialSampleRate, double initialSampleRate,


+ 1
- 1
modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm View File

@@ -1902,7 +1902,7 @@ void AudioUnitPluginFormat::createPluginInstance (const PluginDescription& desc,
} }
else else
{ {
String errMsg = NEEDS_TRANS ("An OS error ocurred during initialisation of the plug-in (XXX)");
String errMsg = NEEDS_TRANS ("An OS error occurred during initialisation of the plug-in (XXX)");
originalCallback (passUserData, nullptr, errMsg.replace ("XXX", String (err))); originalCallback (passUserData, nullptr, errMsg.replace ("XXX", String (err)));
} }


+ 1
- 1
modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h View File

@@ -36,7 +36,7 @@ public:
~VSTPluginFormat(); ~VSTPluginFormat();
//============================================================================== //==============================================================================
/** Attempts to retreive the VSTXML data from a plugin.
/** Attempts to retrieve the VSTXML data from a plugin.
Will return nullptr if the plugin isn't a VST, or if it doesn't have any VSTXML. Will return nullptr if the plugin isn't a VST, or if it doesn't have any VSTXML.
*/ */
static const XmlElement* getVSTXML (AudioPluginInstance* plugin); static const XmlElement* getVSTXML (AudioPluginInstance* plugin);


+ 1
- 1
modules/juce_audio_processors/processors/juce_PluginDescription.h View File

@@ -118,7 +118,7 @@ public:
given identifier string. given identifier string.
Note that this isn't quite as simple as them just calling createIdentifierString() Note that this isn't quite as simple as them just calling createIdentifierString()
and comparing the strings, because the identifers can differ (thanks to shell plug-ins).
and comparing the strings, because the identifiers can differ (thanks to shell plug-ins).
*/ */
bool matchesIdentifierString (const String& identifierString) const; bool matchesIdentifierString (const String& identifierString) const;


+ 1
- 1
modules/juce_audio_utils/gui/juce_MidiKeyboardComponent.h View File

@@ -362,7 +362,7 @@ protected:
*/ */
virtual void mouseUpOnKey (int midiNoteNumber, const MouseEvent& e); virtual void mouseUpOnKey (int midiNoteNumber, const MouseEvent& e);
/** Calculates the positon of a given midi-note.
/** Calculates the position of a given midi-note.
This can be overridden to create layouts with custom key-widths. This can be overridden to create layouts with custom key-widths.


+ 1
- 1
modules/juce_core/maths/juce_MathsFunctions.h View File

@@ -93,7 +93,7 @@ typedef unsigned int uint32;
#endif #endif
//============================================================================== //==============================================================================
// Some indispensible min/max functions
// Some indispensable min/max functions
/** Returns the larger of two values. */ /** Returns the larger of two values. */
template <typename Type> template <typename Type>


+ 1
- 1
modules/juce_core/maths/juce_NormalisableRange.h View File

@@ -150,7 +150,7 @@ public:
/** An optional skew factor that alters the way values are distribute across the range. /** An optional skew factor that alters the way values are distribute across the range.
The skew factor lets you skew the mapping logarithmically so that larger or smaller The skew factor lets you skew the mapping logarithmically so that larger or smaller
values are given a larger proportion of the avilable space.
values are given a larger proportion of the available space.
A factor of 1.0 has no skewing effect at all. If the factor is < 1.0, the lower end A factor of 1.0 has no skewing effect at all. If the factor is < 1.0, the lower end
of the range will fill more of the slider's length; if the factor is > 1.0, the upper of the range will fill more of the slider's length; if the factor is > 1.0, the upper


+ 1
- 1
modules/juce_core/memory/juce_Atomic.h View File

@@ -147,7 +147,7 @@ public:
#endif #endif
/** The raw value that this class operates on. /** The raw value that this class operates on.
This is exposed publically in case you need to manipulate it directly
This is exposed publicly in case you need to manipulate it directly
for performance reasons. for performance reasons.
*/ */
volatile Type value; volatile Type value;


+ 1
- 1
modules/juce_core/memory/juce_ScopedPointer.h View File

@@ -56,7 +56,7 @@
can use the release() method. can use the release() method.
Something to note is the main difference between this class and the std::auto_ptr class, Something to note is the main difference between this class and the std::auto_ptr class,
which is that ScopedPointer provides a cast-to-object operator, wheras std::auto_ptr
which is that ScopedPointer provides a cast-to-object operator, whereas std::auto_ptr
requires that you always call get() to retrieve the pointer. The advantages of providing requires that you always call get() to retrieve the pointer. The advantages of providing
the cast is that you don't need to call get(), so can use the ScopedPointer in pretty much the cast is that you don't need to call get(), so can use the ScopedPointer in pretty much
exactly the same way as a raw pointer. The disadvantage is that the compiler is free to exactly the same way as a raw pointer. The disadvantage is that the compiler is free to


+ 1
- 1
modules/juce_core/network/juce_Socket.h View File

@@ -247,7 +247,7 @@ public:
This is useful if you need to know to which port the OS has actually bound your This is useful if you need to know to which port the OS has actually bound your
socket when bindToPort was called with zero. socket when bindToPort was called with zero.
Returns -1 if the socket didn't bind to any port yet or an error occured. */
Returns -1 if the socket didn't bind to any port yet or an error occurred. */
int getBoundPort() const noexcept; int getBoundPort() const noexcept;
/** Returns the OS's socket handle that's currently open. */ /** Returns the OS's socket handle that's currently open. */


+ 1
- 1
modules/juce_graphics/fonts/juce_GlyphArrangement.h View File

@@ -195,7 +195,7 @@ public:
float maxLineWidth, float maxLineWidth,
Justification horizontalLayout); Justification horizontalLayout);
/** Tries to fit some text withing a given space.
/** Tries to fit some text within a given space.
This does its best to make the given text readable within the specified rectangle, This does its best to make the given text readable within the specified rectangle,
so it useful for labelling things. so it useful for labelling things.


+ 2
- 2
modules/juce_graphics/geometry/juce_Path.h View File

@@ -98,7 +98,7 @@ public:
/** Checks whether a point lies within the path. /** Checks whether a point lies within the path.
This is only relevent for closed paths (see closeSubPath()), and
This is only relevant for closed paths (see closeSubPath()), and
may produce false results if used on a path which has open sub-paths. may produce false results if used on a path which has open sub-paths.
The path's winding rule is taken into account by this method. The path's winding rule is taken into account by this method.
@@ -114,7 +114,7 @@ public:
/** Checks whether a point lies within the path. /** Checks whether a point lies within the path.
This is only relevent for closed paths (see closeSubPath()), and
This is only relevant for closed paths (see closeSubPath()), and
may produce false results if used on a path which has open sub-paths. may produce false results if used on a path which has open sub-paths.
The path's winding rule is taken into account by this method. The path's winding rule is taken into account by this method.


+ 1
- 1
modules/juce_graphics/geometry/juce_PathStrokeType.cpp View File

@@ -316,7 +316,7 @@ namespace PathStrokeHelpers
if (style == PathStrokeType::square) if (style == PathStrokeType::square)
{ {
// sqaure ends
// square ends
destPath.lineTo (offx1, offy1); destPath.lineTo (offx1, offy1);
destPath.lineTo (offx2, offy2); destPath.lineTo (offx2, offy2);
destPath.lineTo (x2, y2); destPath.lineTo (x2, y2);


+ 1
- 1
modules/juce_graphics/geometry/juce_Rectangle.h View File

@@ -773,7 +773,7 @@ public:
} }
/** Returns the smallest integer-aligned rectangle that completely contains this one. /** Returns the smallest integer-aligned rectangle that completely contains this one.
This is only relevent for floating-point rectangles, of course.
This is only relevant for floating-point rectangles, of course.
@see toFloat(), toNearestInt() @see toFloat(), toNearestInt()
*/ */
Rectangle<int> getSmallestIntegerContainer() const noexcept Rectangle<int> getSmallestIntegerContainer() const noexcept


+ 1
- 1
modules/juce_gui_basics/buttons/juce_Button.h View File

@@ -295,7 +295,7 @@ public:
E.g. if you are placing two buttons adjacent to each other, you could use this to E.g. if you are placing two buttons adjacent to each other, you could use this to
indicate which edges are touching, and the LookAndFeel might choose to drawn them indicate which edges are touching, and the LookAndFeel might choose to drawn them
without rounded corners on the edges that connect. It's only a hint, so the without rounded corners on the edges that connect. It's only a hint, so the
LookAndFeel can choose to ignore it if it's not relevent for this type of
LookAndFeel can choose to ignore it if it's not relevant for this type of
button. button.
*/ */
void setConnectedEdges (int connectedEdgeFlags); void setConnectedEdges (int connectedEdgeFlags);


+ 1
- 1
modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.h View File

@@ -135,7 +135,7 @@ struct JUCE_API ApplicationCommandInfo
/** Indicates that the command can't currently be performed. /** Indicates that the command can't currently be performed.
The ApplicationCommandTarget::getCommandInfo() method must set this flag if it's The ApplicationCommandTarget::getCommandInfo() method must set this flag if it's
not currently permissable to perform the command. If the flag is set, then
not currently permissible to perform the command. If the flag is set, then
components that trigger the command, e.g. PopupMenu, may choose to grey-out the components that trigger the command, e.g. PopupMenu, may choose to grey-out the
command or show themselves as not being enabled. command or show themselves as not being enabled.


+ 1
- 1
modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h View File

@@ -219,7 +219,7 @@ public:
*/ */
bool isCommandActive (const CommandID commandID); bool isCommandActive (const CommandID commandID);
/** If this object is a Component, this method will seach upwards in its current
/** If this object is a Component, this method will search upwards in its current
UI hierarchy for the next parent component that implements the UI hierarchy for the next parent component that implements the
ApplicationCommandTarget class. ApplicationCommandTarget class.


+ 1
- 1
modules/juce_gui_basics/components/juce_Component.h View File

@@ -2036,7 +2036,7 @@ public:
look-and-feel either, it will just return black. look-and-feel either, it will just return black.
The colour IDs for various purposes are stored as enums in the components that The colour IDs for various purposes are stored as enums in the components that
they are relevent to - for an example, see Slider::ColourIds,
they are relevant to - for an example, see Slider::ColourIds,
Label::ColourIds, TextEditor::ColourIds, TreeView::ColourIds, etc. Label::ColourIds, TextEditor::ColourIds, TreeView::ColourIds, etc.
@see setColour, isColourSpecified, colourChanged, LookAndFeel::findColour, LookAndFeel::setColour @see setColour, isColourSpecified, colourChanged, LookAndFeel::findColour, LookAndFeel::setColour


+ 1
- 1
modules/juce_gui_basics/components/juce_Desktop.h View File

@@ -159,7 +159,7 @@ public:
If allowMenusAndBars is true, things like the menu and dock (on mac) are still If allowMenusAndBars is true, things like the menu and dock (on mac) are still
allowed to pop up when the mouse moves onto them. If this is false, it'll try allowed to pop up when the mouse moves onto them. If this is false, it'll try
to hide as much on-screen paraphenalia as possible.
to hide as much on-screen paraphernalia as possible.
*/ */
void setKioskModeComponent (Component* componentToUse, void setKioskModeComponent (Component* componentToUse,
bool allowMenusAndBars = true); bool allowMenusAndBars = true);


+ 1
- 1
modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.h View File

@@ -59,7 +59,7 @@ public:
canSelectFiles = 4, /**< specifies that the user can select files (can be used in canSelectFiles = 4, /**< specifies that the user can select files (can be used in
conjunction with canSelectDirectories). */ conjunction with canSelectDirectories). */
canSelectDirectories = 8, /**< specifies that the user can select directories (can be used in canSelectDirectories = 8, /**< specifies that the user can select directories (can be used in
conjuction with canSelectFiles). */
conjunction with canSelectFiles). */
canSelectMultipleItems = 16, /**< specifies that the user can select multiple items. */ canSelectMultipleItems = 16, /**< specifies that the user can select multiple items. */
useTreeView = 32, /**< specifies that a tree-view should be shown instead of a file list. */ useTreeView = 32, /**< specifies that a tree-view should be shown instead of a file list. */
filenameBoxIsReadOnly = 64, /**< specifies that the user can't type directly into the filename box. */ filenameBoxIsReadOnly = 64, /**< specifies that the user can't type directly into the filename box. */


+ 1
- 1
modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h View File

@@ -133,7 +133,7 @@ public:
returned. If none has been set, it will just return Colours::black. returned. If none has been set, it will just return Colours::black.
The colour IDs for various purposes are stored as enums in the components that The colour IDs for various purposes are stored as enums in the components that
they are relevent to - for an example, see Slider::ColourIds,
they are relevant to - for an example, see Slider::ColourIds,
Label::ColourIds, TextEditor::ColourIds, TreeView::ColourIds, etc. Label::ColourIds, TextEditor::ColourIds, TreeView::ColourIds, etc.
If you're looking up a colour for use in drawing a component, it's usually If you're looking up a colour for use in drawing a component, it's usually


+ 1
- 1
modules/juce_gui_basics/menus/juce_PopupMenu.cpp View File

@@ -407,7 +407,7 @@ public:
{ {
// we want to dismiss the menu, but if we do it synchronously, then // we want to dismiss the menu, but if we do it synchronously, then
// the mouse-click will be allowed to pass through. That's good, except // the mouse-click will be allowed to pass through. That's good, except
// when the user clicks on the button that orginally popped the menu up,
// when the user clicks on the button that originally popped the menu up,
// as they'll expect the menu to go away, and in fact it'll just // as they'll expect the menu to go away, and in fact it'll just
// come back. So only dismiss synchronously if they're not on the original // come back. So only dismiss synchronously if they're not on the original
// comp that we're attached to. // comp that we're attached to.


+ 1
- 1
modules/juce_gui_basics/mouse/juce_LassoComponent.h View File

@@ -44,7 +44,7 @@ public:
/** Returns the set of items that lie within a given lassoable region. /** Returns the set of items that lie within a given lassoable region.
Your implementation of this method must find all the relevent items that lie
Your implementation of this method must find all the relevant items that lie
within the given rectangle. and add them to the itemsFound array. within the given rectangle. and add them to the itemsFound array.
The coordinates are relative to the top-left of the lasso component's parent The coordinates are relative to the top-left of the lasso component's parent


+ 2
- 2
modules/juce_gui_basics/native/juce_win32_Windowing.cpp View File

@@ -858,7 +858,7 @@ public:
if (! makeActive) if (! makeActive)
{ {
// in this case a broughttofront call won't have occured, so do it now..
// in this case a broughttofront call won't have occurred, so do it now..
handleBroughtToFront(); handleBroughtToFront();
} }
} }
@@ -1726,7 +1726,7 @@ private:
if (registerTouchWindow == nullptr) if (registerTouchWindow == nullptr)
return false; return false;
// Relevent info about touch/pen detection flags:
// Relevant info about touch/pen detection flags:
// https://msdn.microsoft.com/en-us/library/windows/desktop/ms703320(v=vs.85).aspx // https://msdn.microsoft.com/en-us/library/windows/desktop/ms703320(v=vs.85).aspx
// http://www.petertissen.de/?p=4 // http://www.petertissen.de/?p=4


+ 1
- 1
modules/juce_gui_basics/widgets/juce_Label.h View File

@@ -148,7 +148,7 @@ public:
/** If the label is attached to the left of another component, this returns true. /** If the label is attached to the left of another component, this returns true.
Returns false if the label is above the other component. This is only relevent if
Returns false if the label is above the other component. This is only relevant if
attachToComponent() has been called. attachToComponent() has been called.
*/ */
bool isAttachedOnLeft() const noexcept { return leftOfOwnerComp; } bool isAttachedOnLeft() const noexcept { return leftOfOwnerComp; }


+ 2
- 2
modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h View File

@@ -208,14 +208,14 @@ public:
If there's no such column ID, this will return -1. If there's no such column ID, this will return -1.
If onlyCountVisibleColumns is true, this will return the index amoungst the visible columns;
If onlyCountVisibleColumns is true, this will return the index amongst the visible columns;
otherwise it'll return the index amongst all the columns, including any hidden ones. otherwise it'll return the index amongst all the columns, including any hidden ones.
*/ */
int getIndexOfColumnId (int columnId, bool onlyCountVisibleColumns) const; int getIndexOfColumnId (int columnId, bool onlyCountVisibleColumns) const;
/** Returns the ID of the column at a given index. /** Returns the ID of the column at a given index.
If onlyCountVisibleColumns is true, this will count the index amoungst the visible columns;
If onlyCountVisibleColumns is true, this will count the index amongst the visible columns;
otherwise it'll count it amongst all the columns, including any hidden ones. otherwise it'll count it amongst all the columns, including any hidden ones.
If the index is out-of-range, it'll return 0. If the index is out-of-range, it'll return 0.


+ 2
- 2
modules/juce_gui_basics/windows/juce_ResizableWindow.h View File

@@ -154,7 +154,7 @@ public:
/** Sets the bounds-constrainer object to use for resizing and dragging this window. /** Sets the bounds-constrainer object to use for resizing and dragging this window.
A pointer to the object you pass in will be kept, but it won't be deleted 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 responsiblity to manage it.
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 contraints will be placed on the positioning of the window.
*/ */
@@ -216,7 +216,7 @@ public:
/** Restores the window to a previously-saved size and position. /** Restores the window to a previously-saved size and position.
This restores the window's size, positon and full-screen status from an
This restores the window's size, position and full-screen status from an
string that was previously created with the getWindowStateAsString() string that was previously created with the getWindowStateAsString()
method. method.


+ 1
- 1
modules/juce_gui_basics/windows/juce_TopLevelWindow.h View File

@@ -79,7 +79,7 @@ public:
window. window.
If your app has a few windows open and want to pop up a dialog box for one of If your app has a few windows open and want to pop up a dialog box for one of
them, you can use this to show it in front of the relevent parent window, which
them, you can use this to show it in front of the relevant parent window, which
is a bit neater than just having it appear in the middle of the screen. is a bit neater than just having it appear in the middle of the screen.
If componentToCentreAround is nullptr, then the currently active TopLevelWindow will If componentToCentreAround is nullptr, then the currently active TopLevelWindow will


+ 1
- 1
modules/juce_gui_extra/code_editor/juce_CodeDocument.h View File

@@ -142,7 +142,7 @@ public:
/** Allows the position to be automatically updated when the document changes. /** Allows the position to be automatically updated when the document changes.
If this is set to true, the positon will register with its document so that
If this is set to true, the position will register with its document so that
when the document has text inserted or deleted, this position will be automatically when the document has text inserted or deleted, this position will be automatically
moved to keep it at the same position in the text. moved to keep it at the same position in the text.
*/ */


+ 2
- 2
modules/juce_opengl/native/juce_OpenGL_android.h View File

@@ -68,7 +68,7 @@ public:
if (surfaceView.get() == nullptr) if (surfaceView.get() == nullptr)
return; return;
// add the view to the view hierachy
// add the view to the view hierarchy
// after this the nativecontext can receive callbacks // after this the nativecontext can receive callbacks
env->CallVoidMethod ((jobject) component.getPeer()->getNativeHandle(), env->CallVoidMethod ((jobject) component.getPeer()->getNativeHandle(),
AndroidViewGroup.addView, surfaceView.get()); AndroidViewGroup.addView, surfaceView.get());
@@ -251,7 +251,7 @@ private:
} }
//============================================================================== //==============================================================================
bool hasInitialised, hasBeenAddedToViewHierachy;
bool hasInitialised;
GlobalRef surfaceView; GlobalRef surfaceView;
Rectangle<int> lastBounds; Rectangle<int> lastBounds;


+ 1
- 1
modules/juce_osc/osc/juce_OSCBundle.h View File

@@ -106,7 +106,7 @@ public:
bool isEmpty() const noexcept { return elements.isEmpty(); } bool isEmpty() const noexcept { return elements.isEmpty(); }
/** Returns a reference to the OSCBundle element at index i in this bundle. /** Returns a reference to the OSCBundle element at index i in this bundle.
This method does not check the range and results in undefined behavour
This method does not check the range and results in undefined behaviour
in case i < 0 or i >= size(). in case i < 0 or i >= size().
*/ */
OSCBundle::Element& operator[] (const int i) const noexcept OSCBundle::Element& operator[] (const int i) const noexcept


+ 1
- 1
modules/juce_osc/osc/juce_OSCMessage.h View File

@@ -89,7 +89,7 @@ public:
bool isEmpty() const noexcept; bool isEmpty() const noexcept;
/** Returns a reference to the OSCArgument at index i in the OSCMessage object. /** Returns a reference to the OSCArgument at index i in the OSCMessage object.
This method does not check the range and results in undefined behavour
This method does not check the range and results in undefined behaviour
in case i < 0 or i >= size(). in case i < 0 or i >= size().
*/ */
OSCArgument& operator[] (const int i) const noexcept; OSCArgument& operator[] (const int i) const noexcept;


Loading…
Cancel
Save