mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-15 00:24:19 +00:00
Added support for c++11 override and final keywords, and blank definitions for older compilers.
This commit is contained in:
parent
e6b717e713
commit
69b90487aa
3 changed files with 38 additions and 19 deletions
|
|
@ -341,7 +341,7 @@ public:
|
|||
findNext.setCommandToTrigger (cm, CommandIDs::findNext, true);
|
||||
}
|
||||
|
||||
void paint (Graphics& g)
|
||||
void paint (Graphics& g) override
|
||||
{
|
||||
Path outline;
|
||||
outline.addRoundedRectangle (1.0f, 1.0f, getWidth() - 2.0f, getHeight() - 2.0f, 8.0f);
|
||||
|
|
@ -352,7 +352,7 @@ public:
|
|||
g.strokePath (outline, PathStrokeType (1.0f));
|
||||
}
|
||||
|
||||
void resized()
|
||||
void resized() override
|
||||
{
|
||||
int y = 30;
|
||||
editor.setBounds (10, y, getWidth() - 20, 24);
|
||||
|
|
@ -362,12 +362,12 @@ public:
|
|||
findPrev.setBounds (getWidth() - 70, y, 30, 22);
|
||||
}
|
||||
|
||||
void buttonClicked (Button*)
|
||||
void buttonClicked (Button*) override
|
||||
{
|
||||
setCaseSensitiveSearch (caseButton.getToggleState());
|
||||
}
|
||||
|
||||
void textEditorTextChanged (TextEditor&)
|
||||
void textEditorTextChanged (TextEditor&) override
|
||||
{
|
||||
setSearchString (editor.getText());
|
||||
|
||||
|
|
@ -375,14 +375,14 @@ public:
|
|||
ed->findNext (true, false);
|
||||
}
|
||||
|
||||
void textEditorFocusLost (TextEditor&) {}
|
||||
void textEditorFocusLost (TextEditor&) override {}
|
||||
|
||||
void textEditorReturnKeyPressed (TextEditor&)
|
||||
void textEditorReturnKeyPressed (TextEditor&) override
|
||||
{
|
||||
commandManager->invokeDirectly (CommandIDs::findNext, true);
|
||||
}
|
||||
|
||||
void textEditorEscapeKeyPressed (TextEditor&)
|
||||
void textEditorEscapeKeyPressed (TextEditor&) override
|
||||
{
|
||||
if (GenericCodeEditorComponent* ed = getOwner())
|
||||
ed->hideFindPanel();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue