1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-23 01:44:22 +00:00

Introjucer: minor refactoring.

This commit is contained in:
jules 2013-08-04 17:53:56 +01:00
parent 711764103e
commit 127342e147
15 changed files with 55 additions and 34 deletions

View file

@ -23,6 +23,7 @@
*/
#include "jucer_SourceCodeEditor.h"
#include "../Application/jucer_Application.h"
#include "../Application/jucer_OpenDocumentManager.h"
@ -208,7 +209,7 @@ GenericCodeEditorComponent::GenericCodeEditorComponent (const File& f, CodeDocum
CodeTokeniser* tokeniser)
: CodeEditorComponent (codeDocument, tokeniser), file (f)
{
setCommandManager (commandManager);
setCommandManager (&IntrojucerApp::getCommandManager());
}
GenericCodeEditorComponent::~GenericCodeEditorComponent() {}
@ -381,7 +382,7 @@ public:
void textEditorReturnKeyPressed (TextEditor&) override
{
commandManager->invokeDirectly (CommandIDs::findNext, true);
IntrojucerApp::getCommandManager().invokeDirectly (CommandIDs::findNext, true);
}
void textEditorEscapeKeyPressed (TextEditor&) override
@ -417,7 +418,7 @@ void GenericCodeEditorComponent::showFindPanel()
if (findPanel == nullptr)
{
findPanel = new FindPanel();
findPanel->setCommandManager (commandManager);
findPanel->setCommandManager (&IntrojucerApp::getCommandManager());
addAndMakeVisible (findPanel);
resized();