mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Found a few missing 'override' specifiers
This commit is contained in:
parent
6d03314a28
commit
8343f3468c
21 changed files with 70 additions and 71 deletions
|
|
@ -102,7 +102,7 @@ struct BallComponent : public Component
|
|||
return position.y < 400.0f && position.x >= -10.0f;
|
||||
}
|
||||
|
||||
void paint (Graphics& g)
|
||||
void paint (Graphics& g) override
|
||||
{
|
||||
g.setColour (colour);
|
||||
g.fillEllipse (2.0f, 2.0f, getWidth() - 4.0f, getHeight() - 4.0f);
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ struct Box2DRenderComponent : public Component
|
|||
setOpaque (true);
|
||||
}
|
||||
|
||||
void paint (Graphics& g)
|
||||
void paint (Graphics& g) override
|
||||
{
|
||||
g.fillAll (Colours::white);
|
||||
|
||||
|
|
|
|||
|
|
@ -569,13 +569,13 @@ public:
|
|||
setOpaque (true);
|
||||
}
|
||||
|
||||
void paint (Graphics& g)
|
||||
void paint (Graphics& g) override
|
||||
{
|
||||
g.fillCheckerBoard (getLocalBounds(), 48, 48,
|
||||
Colours::lightgrey, Colours::white);
|
||||
}
|
||||
|
||||
void timerCallback()
|
||||
void timerCallback() override
|
||||
{
|
||||
if (currentDemo != nullptr)
|
||||
currentDemo->repaint();
|
||||
|
|
@ -596,7 +596,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
void resized()
|
||||
void resized() override
|
||||
{
|
||||
if (currentDemo != nullptr)
|
||||
currentDemo->setBounds (getLocalBounds());
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ struct LiveConstantDemoComponent : public Component
|
|||
{
|
||||
LiveConstantDemoComponent() {}
|
||||
|
||||
void paint (Graphics& g)
|
||||
void paint (Graphics& g) override
|
||||
{
|
||||
g.fillAll (JUCE_LIVE_CONSTANT (Colour (0xffe5e7a7)));
|
||||
|
||||
|
|
|
|||
|
|
@ -110,13 +110,13 @@ public:
|
|||
startTimer (60);
|
||||
}
|
||||
|
||||
void paint (Graphics& g)
|
||||
void paint (Graphics& g) override
|
||||
{
|
||||
g.setColour (colour);
|
||||
g.fillEllipse (ballBounds - getPosition().toFloat());
|
||||
}
|
||||
|
||||
void timerCallback()
|
||||
void timerCallback() override
|
||||
{
|
||||
ballBounds += direction;
|
||||
|
||||
|
|
@ -150,18 +150,18 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
void mouseDown (const MouseEvent& e)
|
||||
void mouseDown (const MouseEvent& e) override
|
||||
{
|
||||
dragger.startDraggingComponent (this, e);
|
||||
}
|
||||
|
||||
void mouseDrag (const MouseEvent& e)
|
||||
void mouseDrag (const MouseEvent& e) override
|
||||
{
|
||||
// as there's no titlebar we have to manage the dragging ourselves
|
||||
dragger.dragComponent (this, e, 0);
|
||||
}
|
||||
|
||||
void paint (Graphics& g)
|
||||
void paint (Graphics& g) override
|
||||
{
|
||||
if (isOpaque())
|
||||
g.fillAll (Colours::white);
|
||||
|
|
|
|||
|
|
@ -136,12 +136,12 @@ public:
|
|||
setSize (400, jlimit (25, 400, totalHeight));
|
||||
}
|
||||
|
||||
void paint (Graphics& g)
|
||||
void paint (Graphics& g) override
|
||||
{
|
||||
g.fillAll (Colours::grey);
|
||||
}
|
||||
|
||||
void resized()
|
||||
void resized() override
|
||||
{
|
||||
panel.setBounds (getLocalBounds());
|
||||
}
|
||||
|
|
@ -253,7 +253,7 @@ public:
|
|||
setSize (16, 16);
|
||||
}
|
||||
|
||||
void paint (Graphics& g)
|
||||
void paint (Graphics& g) override
|
||||
{
|
||||
const float w = (float) getWidth();
|
||||
const float h = (float) getHeight();
|
||||
|
|
@ -267,7 +267,7 @@ public:
|
|||
g.fillPath (p);
|
||||
}
|
||||
|
||||
void mouseDown (const MouseEvent& e)
|
||||
void mouseDown (const MouseEvent& e) override
|
||||
{
|
||||
getGraphPanel()->beginConnectorDrag (isInput ? 0 : filterID,
|
||||
index,
|
||||
|
|
@ -276,12 +276,12 @@ public:
|
|||
e);
|
||||
}
|
||||
|
||||
void mouseDrag (const MouseEvent& e)
|
||||
void mouseDrag (const MouseEvent& e) override
|
||||
{
|
||||
getGraphPanel()->dragConnector (e);
|
||||
}
|
||||
|
||||
void mouseUp (const MouseEvent& e)
|
||||
void mouseUp (const MouseEvent& e) override
|
||||
{
|
||||
getGraphPanel()->endDraggingConnector (e);
|
||||
}
|
||||
|
|
@ -663,7 +663,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
void paint (Graphics& g)
|
||||
void paint (Graphics& g) override
|
||||
{
|
||||
if (sourceFilterChannel == FilterGraph::midiChannelNumber
|
||||
|| destFilterChannel == FilterGraph::midiChannelNumber)
|
||||
|
|
@ -678,7 +678,7 @@ public:
|
|||
g.fillPath (linePath);
|
||||
}
|
||||
|
||||
bool hitTest (int x, int y)
|
||||
bool hitTest (int x, int y) override
|
||||
{
|
||||
if (hitPath.contains ((float) x, (float) y))
|
||||
{
|
||||
|
|
@ -692,12 +692,12 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
void mouseDown (const MouseEvent&)
|
||||
void mouseDown (const MouseEvent&) override
|
||||
{
|
||||
dragging = false;
|
||||
}
|
||||
|
||||
void mouseDrag (const MouseEvent& e)
|
||||
void mouseDrag (const MouseEvent& e) override
|
||||
{
|
||||
if (dragging)
|
||||
{
|
||||
|
|
@ -721,13 +721,13 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
void mouseUp (const MouseEvent& e)
|
||||
void mouseUp (const MouseEvent& e) override
|
||||
{
|
||||
if (dragging)
|
||||
getGraphPanel()->endDraggingConnector (e);
|
||||
}
|
||||
|
||||
void resized()
|
||||
void resized() override
|
||||
{
|
||||
float x1, y1, x2, y2;
|
||||
getPoints (x1, y1, x2, y2);
|
||||
|
|
@ -1058,14 +1058,14 @@ public:
|
|||
startTimer (100);
|
||||
}
|
||||
|
||||
void paint (Graphics& g)
|
||||
void paint (Graphics& g) override
|
||||
{
|
||||
g.setFont (Font (getHeight() * 0.7f, Font::bold));
|
||||
g.setColour (Colours::black);
|
||||
g.drawFittedText (tip, 10, 0, getWidth() - 12, getHeight(), Justification::centredLeft, 1);
|
||||
}
|
||||
|
||||
void timerCallback()
|
||||
void timerCallback() override
|
||||
{
|
||||
Component* const underMouse = Desktop::getInstance().getMainMouseSource().getComponentUnderMouse();
|
||||
TooltipClient* const ttc = dynamic_cast<TooltipClient*> (underMouse);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue