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

Updated some dusty code in the introjucer templates for a new plugin project.

This commit is contained in:
jules 2014-09-29 16:30:48 +01:00
parent 7671e6a350
commit 85e7ccd8be
6 changed files with 126 additions and 100 deletions

View file

@ -3,7 +3,7 @@
This file was auto-generated by the Introjucer!
It contains the basic startup code for a Juce application.
It contains the basic framework code for a JUCE plugin editor.
==============================================================================
*/
@ -12,10 +12,11 @@ EDITORCPPHEADERS
//==============================================================================
EDITORCLASSNAME::EDITORCLASSNAME (FILTERCLASSNAME* ownerFilter)
: AudioProcessorEditor (ownerFilter)
EDITORCLASSNAME::EDITORCLASSNAME (FILTERCLASSNAME& p)
: AudioProcessorEditor (&p), processor (p)
{
// This is where our plugin's editor size is set.
// Make sure that before the constructor has finished, you've set the
// editor's size to whatever you need it to be.
setSize (400, 300);
}
@ -27,9 +28,14 @@ EDITORCLASSNAME::~EDITORCLASSNAME()
void EDITORCLASSNAME::paint (Graphics& g)
{
g.fillAll (Colours::white);
g.setColour (Colours::black);
g.setFont (15.0f);
g.drawFittedText ("Hello World!",
0, 0, getWidth(), getHeight(),
Justification::centred, 1);
g.drawFittedText ("Hello World!", getLocalBounds(), Justification::centred, 1);
}
void EDITORCLASSNAME::resized()
{
// This is generally where you'll want to lay out the positions of any
// subcomponents in your editor..
}