mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Corrected some spelling mistakes in comments
This commit is contained in:
parent
7d178feb0c
commit
fb864a5cb1
38 changed files with 49 additions and 48 deletions
|
|
@ -113,7 +113,7 @@ struct DiagnosticReceiver
|
|||
struct DiagnosticList
|
||||
{
|
||||
// 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
|
||||
// by keeping track of the last message
|
||||
DiagnosticMessage lastMessage;
|
||||
|
|
|
|||
|
|
@ -903,7 +903,7 @@ protected:
|
|||
addFile (path, parent,
|
||||
projectItem.shouldBeAddedToBinaryResources()
|
||||
|| (shouldFileBeCompiledByDefault (path) && ! projectItem.shouldBeCompiled()),
|
||||
shouldFileBeCompiledByDefault (path) && (bool) projectItem.shouldUseStdCall());
|
||||
shouldFileBeCompiledByDefault (path) && projectItem.shouldUseStdCall());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -691,6 +691,7 @@ Project::Item Project::Item::findItemWithID (const String& targetId) const
|
|||
for (int i = getNumChildren(); --i >= 0;)
|
||||
{
|
||||
Item found (getChild(i).findItemWithID (targetId));
|
||||
|
||||
if (found.isValid())
|
||||
return found;
|
||||
}
|
||||
|
|
@ -735,7 +736,7 @@ String Project::Item::getFilePath() const
|
|||
if (isFile())
|
||||
return state [Ids::file].toString();
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
File Project::Item::getFile() const
|
||||
|
|
|
|||
|
|
@ -691,7 +691,7 @@ public:
|
|||
|
||||
{ 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;)
|
||||
{
|
||||
Thread::sleep (50);
|
||||
|
|
|
|||
|
|
@ -1567,7 +1567,7 @@ private:
|
|||
DWORD dsize = sizeof (pathName);
|
||||
|
||||
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..
|
||||
ok = (pathName[0] != 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -341,7 +341,7 @@ private:
|
|||
AudioChannelSet set;
|
||||
|
||||
// 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)
|
||||
set.addChannel (static_cast<AudioChannelSet::ChannelType> (pseudoChannelBitNum + i));
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ public:
|
|||
|
||||
If you intend to instantiate a AudioUnit v3 plug-in then you must use
|
||||
this non-blocking asynchrous version - or call the synchrous method
|
||||
from an auxilliary thread.
|
||||
from an auxiliary thread.
|
||||
*/
|
||||
void createPluginInstanceAsync (const PluginDescription& description,
|
||||
double initialSampleRate,
|
||||
|
|
|
|||
|
|
@ -1902,7 +1902,7 @@ void AudioUnitPluginFormat::createPluginInstance (const PluginDescription& desc,
|
|||
}
|
||||
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)));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public:
|
|||
~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.
|
||||
*/
|
||||
static const XmlElement* getVSTXML (AudioPluginInstance* plugin);
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ public:
|
|||
given identifier string.
|
||||
|
||||
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;
|
||||
|
||||
|
|
|
|||
|
|
@ -362,7 +362,7 @@ protected:
|
|||
*/
|
||||
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.
|
||||
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ typedef unsigned int uint32;
|
|||
#endif
|
||||
|
||||
//==============================================================================
|
||||
// Some indispensible min/max functions
|
||||
// Some indispensable min/max functions
|
||||
|
||||
/** Returns the larger of two values. */
|
||||
template <typename Type>
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ public:
|
|||
/** 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
|
||||
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
|
||||
of the range will fill more of the slider's length; if the factor is > 1.0, the upper
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ public:
|
|||
#endif
|
||||
|
||||
/** 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.
|
||||
*/
|
||||
volatile Type value;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
can use the release() method.
|
||||
|
||||
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
|
||||
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
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ public:
|
|||
This is useful if you need to know to which port the OS has actually bound your
|
||||
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;
|
||||
|
||||
/** Returns the OS's socket handle that's currently open. */
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ public:
|
|||
float maxLineWidth,
|
||||
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,
|
||||
so it useful for labelling things.
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ public:
|
|||
|
||||
/** 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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
The path's winding rule is taken into account by this method.
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ namespace PathStrokeHelpers
|
|||
|
||||
if (style == PathStrokeType::square)
|
||||
{
|
||||
// sqaure ends
|
||||
// square ends
|
||||
destPath.lineTo (offx1, offy1);
|
||||
destPath.lineTo (offx2, offy2);
|
||||
destPath.lineTo (x2, y2);
|
||||
|
|
|
|||
|
|
@ -773,7 +773,7 @@ public:
|
|||
}
|
||||
|
||||
/** 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()
|
||||
*/
|
||||
Rectangle<int> getSmallestIntegerContainer() const noexcept
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@ public:
|
|||
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
|
||||
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.
|
||||
*/
|
||||
void setConnectedEdges (int connectedEdgeFlags);
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ struct JUCE_API ApplicationCommandInfo
|
|||
/** Indicates that the command can't currently be performed.
|
||||
|
||||
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
|
||||
command or show themselves as not being enabled.
|
||||
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ public:
|
|||
*/
|
||||
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
|
||||
ApplicationCommandTarget class.
|
||||
|
||||
|
|
|
|||
|
|
@ -2036,7 +2036,7 @@ public:
|
|||
look-and-feel either, it will just return black.
|
||||
|
||||
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.
|
||||
|
||||
@see setColour, isColourSpecified, colourChanged, LookAndFeel::findColour, LookAndFeel::setColour
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ public:
|
|||
|
||||
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
|
||||
to hide as much on-screen paraphenalia as possible.
|
||||
to hide as much on-screen paraphernalia as possible.
|
||||
*/
|
||||
void setKioskModeComponent (Component* componentToUse,
|
||||
bool allowMenusAndBars = true);
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ public:
|
|||
canSelectFiles = 4, /**< specifies that the user can select files (can be used in
|
||||
conjunction with canSelectDirectories). */
|
||||
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. */
|
||||
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. */
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ public:
|
|||
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
|
||||
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.
|
||||
|
||||
If you're looking up a colour for use in drawing a component, it's usually
|
||||
|
|
|
|||
|
|
@ -407,7 +407,7 @@ public:
|
|||
{
|
||||
// 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
|
||||
// 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
|
||||
// come back. So only dismiss synchronously if they're not on the original
|
||||
// comp that we're attached to.
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public:
|
|||
|
||||
/** 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.
|
||||
|
||||
The coordinates are relative to the top-left of the lasso component's parent
|
||||
|
|
|
|||
|
|
@ -858,7 +858,7 @@ public:
|
|||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
@ -1726,7 +1726,7 @@ private:
|
|||
if (registerTouchWindow == nullptr)
|
||||
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
|
||||
// http://www.petertissen.de/?p=4
|
||||
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ public:
|
|||
|
||||
/** 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.
|
||||
*/
|
||||
bool isAttachedOnLeft() const noexcept { return leftOfOwnerComp; }
|
||||
|
|
|
|||
|
|
@ -208,14 +208,14 @@ public:
|
|||
|
||||
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.
|
||||
*/
|
||||
int getIndexOfColumnId (int columnId, bool onlyCountVisibleColumns) const;
|
||||
|
||||
/** 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.
|
||||
|
||||
If the index is out-of-range, it'll return 0.
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ public:
|
|||
/** 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
|
||||
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.
|
||||
*/
|
||||
|
|
@ -216,7 +216,7 @@ public:
|
|||
|
||||
/** 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()
|
||||
method.
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ public:
|
|||
window.
|
||||
|
||||
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.
|
||||
|
||||
If componentToCentreAround is nullptr, then the currently active TopLevelWindow will
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ public:
|
|||
|
||||
/** 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
|
||||
moved to keep it at the same position in the text.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ public:
|
|||
if (surfaceView.get() == nullptr)
|
||||
return;
|
||||
|
||||
// add the view to the view hierachy
|
||||
// add the view to the view hierarchy
|
||||
// after this the nativecontext can receive callbacks
|
||||
env->CallVoidMethod ((jobject) component.getPeer()->getNativeHandle(),
|
||||
AndroidViewGroup.addView, surfaceView.get());
|
||||
|
|
@ -251,7 +251,7 @@ private:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
bool hasInitialised, hasBeenAddedToViewHierachy;
|
||||
bool hasInitialised;
|
||||
|
||||
GlobalRef surfaceView;
|
||||
Rectangle<int> lastBounds;
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ public:
|
|||
bool isEmpty() const noexcept { return elements.isEmpty(); }
|
||||
|
||||
/** 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().
|
||||
*/
|
||||
OSCBundle::Element& operator[] (const int i) const noexcept
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ public:
|
|||
bool isEmpty() const noexcept;
|
||||
|
||||
/** 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().
|
||||
*/
|
||||
OSCArgument& operator[] (const int i) const noexcept;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue