mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added some missing 'override' decorators
This commit is contained in:
parent
0a377a95c5
commit
06c1a15496
18 changed files with 37 additions and 37 deletions
|
|
@ -130,7 +130,7 @@ private:
|
|||
addSubItem (new DemoTreeViewItem ("Demo sub-node " + String (i), numItems - 1));
|
||||
}
|
||||
|
||||
void paintItem (Graphics& g, int width, int height)
|
||||
void paintItem (Graphics& g, int width, int height) override
|
||||
{
|
||||
if (isSelected())
|
||||
g.fillAll (Colours::lightblue);
|
||||
|
|
@ -140,7 +140,7 @@ private:
|
|||
g.drawText (name, 4, 0, width - 4, height, Justification::centredLeft, true);
|
||||
}
|
||||
|
||||
bool mightContainSubItems()
|
||||
bool mightContainSubItems() override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,10 +58,10 @@ public:
|
|||
|
||||
@see isLooping
|
||||
*/
|
||||
void setLooping (bool shouldLoop);
|
||||
void setLooping (bool shouldLoop) override;
|
||||
|
||||
/** Returns whether loop-mode is turned on or not. */
|
||||
bool isLooping() const { return looping; }
|
||||
bool isLooping() const override { return looping; }
|
||||
|
||||
/** Returns the reader that's being used. */
|
||||
AudioFormatReader* getAudioFormatReader() const noexcept { return reader; }
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ public:
|
|||
void startNote (int midiNoteNumber, float velocity, SynthesiserSound*, int pitchWheel) override;
|
||||
void stopNote (float velocity, bool allowTailOff) override;
|
||||
|
||||
void pitchWheelMoved (int newValue);
|
||||
void pitchWheelMoved (int newValue) override;
|
||||
void controllerMoved (int controllerNumber, int newValue) override;
|
||||
|
||||
void renderNextBlock (AudioSampleBuffer&, int startSample, int numSamples) override;
|
||||
|
|
|
|||
|
|
@ -308,7 +308,7 @@ public:
|
|||
void fillInPluginDescription (PluginDescription&) const override;
|
||||
void prepareToPlay (double sampleRate, int estimatedSamplesPerBlock) override;
|
||||
void releaseResources() override;
|
||||
void processBlock (AudioSampleBuffer&, MidiBuffer&);
|
||||
void processBlock (AudioSampleBuffer&, MidiBuffer&) override;
|
||||
|
||||
const String getInputChannelName (int channelIndex) const override;
|
||||
const String getOutputChannelName (int channelIndex) const override;
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ public:
|
|||
capacity off the block, so that its length matches the amount of actual data that
|
||||
has been written so far.
|
||||
*/
|
||||
void flush();
|
||||
void flush() override;
|
||||
|
||||
bool write (const void*, size_t) override;
|
||||
int64 getPosition() override { return (int64) position; }
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ public:
|
|||
the stream is closed - this means that no more data can be written to it, and any
|
||||
subsequent attempts to call write() will cause an assertion.
|
||||
*/
|
||||
void flush();
|
||||
void flush() override;
|
||||
|
||||
int64 getPosition() override;
|
||||
bool setPosition (int64) override;
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ public:
|
|||
|
||||
protected:
|
||||
/** @internal */
|
||||
virtual void propertyChanged();
|
||||
void propertyChanged() override;
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -72,12 +72,12 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
var getValue() const
|
||||
var getValue() const override
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
void setValue (const var& newValue)
|
||||
void setValue (const var& newValue) override
|
||||
{
|
||||
if (! newValue.equalsWithSameType (value))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -814,8 +814,8 @@ public:
|
|||
tree.removeListener (this);
|
||||
}
|
||||
|
||||
var getValue() const { return tree [property]; }
|
||||
void setValue (const var& newValue) { tree.setProperty (property, newValue, undoManager); }
|
||||
var getValue() const override { return tree [property]; }
|
||||
void setValue (const var& newValue) override { tree.setProperty (property, newValue, undoManager); }
|
||||
|
||||
private:
|
||||
ValueTree tree;
|
||||
|
|
|
|||
|
|
@ -182,10 +182,10 @@ public:
|
|||
return newImage.getPixelData();
|
||||
}
|
||||
|
||||
ImageType* createType() const override { return image->createType(); }
|
||||
ImageType* createType() const override { return image->createType(); }
|
||||
|
||||
/* as we always hold a reference to image, don't double count */
|
||||
int getSharedCount() const noexcept { return getReferenceCount() + image->getSharedCount() - 1; }
|
||||
int getSharedCount() const noexcept override { return getReferenceCount() + image->getSharedCount() - 1; }
|
||||
|
||||
private:
|
||||
friend class Image;
|
||||
|
|
|
|||
|
|
@ -172,13 +172,13 @@ public:
|
|||
|
||||
//==============================================================================
|
||||
/** @internal */
|
||||
ApplicationCommandTarget* getNextCommandTarget();
|
||||
ApplicationCommandTarget* getNextCommandTarget() override;
|
||||
/** @internal */
|
||||
void getCommandInfo (CommandID, ApplicationCommandInfo&);
|
||||
void getCommandInfo (CommandID, ApplicationCommandInfo&) override;
|
||||
/** @internal */
|
||||
void getAllCommands (Array<CommandID>&);
|
||||
void getAllCommands (Array<CommandID>&) override;
|
||||
/** @internal */
|
||||
bool perform (const InvocationInfo&);
|
||||
bool perform (const InvocationInfo&) override;
|
||||
|
||||
private:
|
||||
bool initialiseApp() override;
|
||||
|
|
|
|||
|
|
@ -92,15 +92,15 @@ public:
|
|||
|
||||
//==============================================================================
|
||||
/** @internal */
|
||||
Drawable* createCopy() const;
|
||||
Drawable* createCopy() const override;
|
||||
/** @internal */
|
||||
void refreshFromValueTree (const ValueTree& tree, ComponentBuilder& builder);
|
||||
void refreshFromValueTree (const ValueTree&, ComponentBuilder&);
|
||||
/** @internal */
|
||||
ValueTree createValueTree (ComponentBuilder::ImageProvider* imageProvider) const;
|
||||
ValueTree createValueTree (ComponentBuilder::ImageProvider* imageProvider) const override;
|
||||
/** @internal */
|
||||
static const Identifier valueTreeType;
|
||||
/** @internal */
|
||||
Rectangle<float> getDrawableBounds() const;
|
||||
Rectangle<float> getDrawableBounds() const override;
|
||||
/** @internal */
|
||||
void childBoundsChanged (Component*) override;
|
||||
/** @internal */
|
||||
|
|
|
|||
|
|
@ -56,23 +56,23 @@ public:
|
|||
/** Returns the number of files the user has got selected.
|
||||
@see getSelectedFile
|
||||
*/
|
||||
int getNumSelectedFiles() const;
|
||||
int getNumSelectedFiles() const override;
|
||||
|
||||
/** Returns one of the files that the user has currently selected.
|
||||
The index should be in the range 0 to (getNumSelectedFiles() - 1).
|
||||
@see getNumSelectedFiles
|
||||
*/
|
||||
File getSelectedFile (int index = 0) const;
|
||||
File getSelectedFile (int index = 0) const override;
|
||||
|
||||
/** Deselects any files that are currently selected. */
|
||||
void deselectAllFiles();
|
||||
void deselectAllFiles() override;
|
||||
|
||||
/** Scrolls to the top of the list. */
|
||||
void scrollToTop();
|
||||
void scrollToTop() override;
|
||||
|
||||
/** If the specified file is in the list, it will become the only selected item
|
||||
(and if the file isn't in the list, all other items will be deselected). */
|
||||
void setSelectedFile (const File&);
|
||||
void setSelectedFile (const File&) override;
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
|
|
@ -84,7 +84,7 @@ private:
|
|||
|
||||
int getNumRows() override;
|
||||
void paintListBoxItem (int, Graphics&, int, int, bool) override;
|
||||
Component* refreshComponentForRow (int rowNumber, bool isRowSelected, Component* existingComponentToUpdate) override;
|
||||
Component* refreshComponentForRow (int rowNumber, bool isRowSelected, Component*) override;
|
||||
void selectedRowsChanged (int lastRowSelected) override;
|
||||
void deleteKeyPressed (int currentSelectedRow) override;
|
||||
void returnKeyPressed (int currentSelectedRow) override;
|
||||
|
|
|
|||
|
|
@ -1240,14 +1240,14 @@ public:
|
|||
setLookAndFeel (&s.getLookAndFeel());
|
||||
}
|
||||
|
||||
void paintContent (Graphics& g, int w, int h)
|
||||
void paintContent (Graphics& g, int w, int h) override
|
||||
{
|
||||
g.setFont (font);
|
||||
g.setColour (owner.findColour (TooltipWindow::textColourId, true));
|
||||
g.drawFittedText (text, Rectangle<int> (w, h), Justification::centred, 1);
|
||||
}
|
||||
|
||||
void getContentSize (int& w, int& h)
|
||||
void getContentSize (int& w, int& h) override
|
||||
{
|
||||
w = font.getStringWidth (text) + 18;
|
||||
h = (int) (font.getHeight() * 1.6f);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public:
|
|||
}
|
||||
|
||||
bool getToolbarItemSizes (int toolbarThickness, bool /*isToolbarVertical*/,
|
||||
int& preferredSize, int& minSize, int& maxSize)
|
||||
int& preferredSize, int& minSize, int& maxSize) override
|
||||
{
|
||||
if (fixedSize <= 0)
|
||||
{
|
||||
|
|
@ -219,7 +219,7 @@ public:
|
|||
setSize (maxX + 8, y + height + 8);
|
||||
}
|
||||
|
||||
void getIdealSize (int& idealWidth, int& idealHeight)
|
||||
void getIdealSize (int& idealWidth, int& idealHeight) override
|
||||
{
|
||||
idealWidth = getWidth();
|
||||
idealHeight = getHeight();
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ public:
|
|||
(This is overridden from Component::setName() to cause a repaint, as
|
||||
the name is what gets drawn across the window's title bar).
|
||||
*/
|
||||
void setName (const String& newName);
|
||||
void setName (const String& newName) override;
|
||||
|
||||
/** Sets an icon to show in the title bar, next to the title.
|
||||
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ private:
|
|||
void setSV (float newS, float newV);
|
||||
void updateHSV();
|
||||
void update();
|
||||
void sliderValueChanged (Slider*);
|
||||
void sliderValueChanged (Slider*) override;
|
||||
void paint (Graphics&) override;
|
||||
void resized() override;
|
||||
|
||||
|
|
|
|||
|
|
@ -347,8 +347,8 @@ public:
|
|||
owner.getMappings().removeChangeListener (this);
|
||||
}
|
||||
|
||||
bool mightContainSubItems() { return true; }
|
||||
String getUniqueName() const { return "keys"; }
|
||||
bool mightContainSubItems() override { return true; }
|
||||
String getUniqueName() const override { return "keys"; }
|
||||
|
||||
void changeListenerCallback (ChangeBroadcaster*) override
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue