2 ==============================================================================
4 This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 Copyright 2004-11 by Raw Material Software Ltd.
7 ------------------------------------------------------------------------------
9 JUCE can be redistributed and/or modified under the terms of the GNU General
10 Public License (Version 2), as published by the Free Software Foundation.
11 A copy of the license is included in the JUCE distribution, or can be found
12 online at www.gnu.org/licenses.
14 JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 ------------------------------------------------------------------------------
20 To release a closed-source product which uses JUCE, commercial licenses are
21 available: visit www.rawmaterialsoftware.com/juce for more information.
23 ==============================================================================
26 #ifndef __JUCE_AUDIOPROCESSOREDITOR_JUCEHEADER__
27 #define __JUCE_AUDIOPROCESSOREDITOR_JUCEHEADER__
29 #include "../../gui/components/juce_Component.h"
33 //==============================================================================
35 Base class for the component that acts as the GUI for an AudioProcessor.
37 Derive your editor component from this class, and create an instance of it
38 by overriding the AudioProcessor::createEditor() method.
40 @see AudioProcessor, GenericAudioProcessorEditor
42 class JUCE_API AudioProcessorEditor
: public Component
45 //==============================================================================
46 /** Creates an editor for the specified processor.
48 AudioProcessorEditor (AudioProcessor
* owner
);
52 ~AudioProcessorEditor();
55 //==============================================================================
56 /** Returns a pointer to the processor that this editor represents. */
57 AudioProcessor
* getAudioProcessor() const noexcept
{ return owner
; }
61 //==============================================================================
62 AudioProcessor
* const owner
;
64 JUCE_DECLARE_NON_COPYABLE (AudioProcessorEditor
);
68 #endif // __JUCE_AUDIOPROCESSOREDITOR_JUCEHEADER__