1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-13 00:04:19 +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

@ -172,7 +172,7 @@ static const unsigned char temp_binary_data_4[] =
"\r\n"
" This file was auto-generated by the Introjucer!\r\n"
"\r\n"
" It contains the basic startup code for a Juce application.\r\n"
" It contains the basic framework code for a JUCE plugin editor.\r\n"
"\r\n"
" ==============================================================================\r\n"
"*/\r\n"
@ -181,10 +181,11 @@ static const unsigned char temp_binary_data_4[] =
"\r\n"
"\r\n"
"//==============================================================================\r\n"
"EDITORCLASSNAME::EDITORCLASSNAME (FILTERCLASSNAME* ownerFilter)\r\n"
" : AudioProcessorEditor (ownerFilter)\r\n"
"EDITORCLASSNAME::EDITORCLASSNAME (FILTERCLASSNAME& p)\r\n"
" : AudioProcessorEditor (&p), processor (p)\r\n"
"{\r\n"
" // This is where our plugin's editor size is set.\r\n"
" // Make sure that before the constructor has finished, you've set the\r\n"
" // editor's size to whatever you need it to be.\r\n"
" setSize (400, 300);\r\n"
"}\r\n"
"\r\n"
@ -196,11 +197,16 @@ static const unsigned char temp_binary_data_4[] =
"void EDITORCLASSNAME::paint (Graphics& g)\r\n"
"{\r\n"
" g.fillAll (Colours::white);\r\n"
"\r\n"
" g.setColour (Colours::black);\r\n"
" g.setFont (15.0f);\r\n"
" g.drawFittedText (\"Hello World!\",\r\n"
" 0, 0, getWidth(), getHeight(),\r\n"
" Justification::centred, 1);\r\n"
" g.drawFittedText (\"Hello World!\", getLocalBounds(), Justification::centred, 1);\r\n"
"}\r\n"
"\r\n"
"void EDITORCLASSNAME::resized()\r\n"
"{\r\n"
" // This is generally where you'll want to lay out the positions of any\r\n"
" // subcomponents in your editor..\r\n"
"}\r\n";
const char* jucer_AudioPluginEditorTemplate_cpp = (const char*) temp_binary_data_4;
@ -212,7 +218,7 @@ static const unsigned char temp_binary_data_5[] =
"\r\n"
" This file was auto-generated by the Introjucer!\r\n"
"\r\n"
" It contains the basic startup code for a Juce application.\r\n"
" It contains the basic framework code for a JUCE plugin editor.\r\n"
"\r\n"
" ==============================================================================\r\n"
"*/\r\n"
@ -229,12 +235,19 @@ static const unsigned char temp_binary_data_5[] =
"class EDITORCLASSNAME : public AudioProcessorEditor\r\n"
"{\r\n"
"public:\r\n"
" EDITORCLASSNAME (FILTERCLASSNAME* ownerFilter);\r\n"
" EDITORCLASSNAME (FILTERCLASSNAME&);\r\n"
" ~EDITORCLASSNAME();\r\n"
"\r\n"
" //==============================================================================\r\n"
" // This is just a standard Juce paint method...\r\n"
" void paint (Graphics& g);\r\n"
" void paint (Graphics&) override;\r\n"
" void resized() override;\r\n"
"\r\n"
"private:\r\n"
" // This reference is provided as a quick way for your editor to\r\n"
" // access the processor object that created it.\r\n"
" FILTERCLASSNAME& processor;\r\n"
"\r\n"
" JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (EDITORCLASSNAME)\r\n"
"};\r\n"
"\r\n"
"\r\n"
@ -247,9 +260,9 @@ static const unsigned char temp_binary_data_6[] =
"/*\r\n"
" ==============================================================================\r\n"
"\r\n"
" This file was auto-generated!\r\n"
" This file was auto-generated by the Introjucer!\r\n"
"\r\n"
" It contains the basic startup code for a Juce application.\r\n"
" It contains the basic framework code for a JUCE plugin processor.\r\n"
"\r\n"
" ==============================================================================\r\n"
"*/\r\n"
@ -288,12 +301,12 @@ static const unsigned char temp_binary_data_6[] =
"\r\n"
"const String FILTERCLASSNAME::getParameterName (int index)\r\n"
"{\r\n"
" return String::empty;\r\n"
" return String();\r\n"
"}\r\n"
"\r\n"
"const String FILTERCLASSNAME::getParameterText (int index)\r\n"
"{\r\n"
" return String::empty;\r\n"
" return String();\r\n"
"}\r\n"
"\r\n"
"const String FILTERCLASSNAME::getInputChannelName (int channelIndex) const\r\n"
@ -361,7 +374,7 @@ static const unsigned char temp_binary_data_6[] =
"\r\n"
"const String FILTERCLASSNAME::getProgramName (int index)\r\n"
"{\r\n"
" return String::empty;\r\n"
" return String();\r\n"
"}\r\n"
"\r\n"
"void FILTERCLASSNAME::changeProgramName (int index, const String& newName)\r\n"
@ -410,7 +423,7 @@ static const unsigned char temp_binary_data_6[] =
"\r\n"
"AudioProcessorEditor* FILTERCLASSNAME::createEditor()\r\n"
"{\r\n"
" return new EDITORCLASSNAME (this);\r\n"
" return new EDITORCLASSNAME (*this);\r\n"
"}\r\n"
"\r\n"
"//==============================================================================\r\n"
@ -441,9 +454,9 @@ static const unsigned char temp_binary_data_7[] =
"/*\r\n"
" ==============================================================================\r\n"
"\r\n"
" This file was auto-generated!\r\n"
" This file was auto-generated by the Introjucer!\r\n"
"\r\n"
" It contains the basic startup code for a Juce application.\r\n"
" It contains the basic framework code for a JUCE plugin processor.\r\n"
"\r\n"
" ==============================================================================\r\n"
"*/\r\n"
@ -465,52 +478,52 @@ static const unsigned char temp_binary_data_7[] =
" ~FILTERCLASSNAME();\r\n"
"\r\n"
" //==============================================================================\r\n"
" void prepareToPlay (double sampleRate, int samplesPerBlock);\r\n"
" void releaseResources();\r\n"
" void prepareToPlay (double sampleRate, int samplesPerBlock) override;\r\n"
" void releaseResources() override;\r\n"
"\r\n"
" void processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages);\r\n"
" void processBlock (AudioSampleBuffer&, MidiBuffer&) override;\r\n"
"\r\n"
" //==============================================================================\r\n"
" AudioProcessorEditor* createEditor();\r\n"
" bool hasEditor() const;\r\n"
" AudioProcessorEditor* createEditor() override;\r\n"
" bool hasEditor() const override;\r\n"
"\r\n"
" //==============================================================================\r\n"
" const String getName() const;\r\n"
" const String getName() const override;\r\n"
"\r\n"
" int getNumParameters();\r\n"
" int getNumParameters() override;\r\n"
" float getParameter (int index) override;\r\n"
" void setParameter (int index, float newValue) override;\r\n"
"\r\n"
" float getParameter (int index);\r\n"
" void setParameter (int index, float newValue);\r\n"
" const String getParameterName (int index) override;\r\n"
" const String getParameterText (int index) override;\r\n"
"\r\n"
" const String getParameterName (int index);\r\n"
" const String getParameterText (int index);\r\n"
" const String getInputChannelName (int channelIndex) const override;\r\n"
" const String getOutputChannelName (int channelIndex) const override;\r\n"
" bool isInputChannelStereoPair (int index) const override;\r\n"
" bool isOutputChannelStereoPair (int index) const override;\r\n"
"\r\n"
" const String getInputChannelName (int channelIndex) const;\r\n"
" const String getOutputChannelName (int channelIndex) const;\r\n"
" bool isInputChannelStereoPair (int index) const;\r\n"
" bool isOutputChannelStereoPair (int index) const;\r\n"
"\r\n"
" bool acceptsMidi() const;\r\n"
" bool producesMidi() const;\r\n"
" bool silenceInProducesSilenceOut() const;\r\n"
" double getTailLengthSeconds() const;\r\n"
" bool acceptsMidi() const override;\r\n"
" bool producesMidi() const override;\r\n"
" bool silenceInProducesSilenceOut() const override;\r\n"
" double getTailLengthSeconds() const override;\r\n"
"\r\n"
" //==============================================================================\r\n"
" int getNumPrograms();\r\n"
" int getCurrentProgram();\r\n"
" void setCurrentProgram (int index);\r\n"
" const String getProgramName (int index);\r\n"
" void changeProgramName (int index, const String& newName);\r\n"
" int getNumPrograms() override;\r\n"
" int getCurrentProgram() override;\r\n"
" void setCurrentProgram (int index) override;\r\n"
" const String getProgramName (int index) override;\r\n"
" void changeProgramName (int index, const String& newName) override;\r\n"
"\r\n"
" //==============================================================================\r\n"
" void getStateInformation (MemoryBlock& destData);\r\n"
" void setStateInformation (const void* data, int sizeInBytes);\r\n"
" void getStateInformation (MemoryBlock& destData) override;\r\n"
" void setStateInformation (const void* data, int sizeInBytes) override;\r\n"
"\r\n"
"private:\r\n"
" //==============================================================================\r\n"
" JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FILTERCLASSNAME)\r\n"
"};\r\n"
"\r\n"
"\r\n"
"#endif // HEADERGUARD\r\n";
const char* jucer_AudioPluginFilterTemplate_h = (const char*) temp_binary_data_7;
@ -1234,10 +1247,10 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
case 0x4a0cfd09: numBytes = 151; return background_tile_png;
case 0x763d39dc: numBytes = 1050; return colourscheme_dark_xml;
case 0xe8b08520: numBytes = 1050; return colourscheme_light_xml;
case 0x27c5a93a: numBytes = 1008; return jucer_AudioPluginEditorTemplate_cpp;
case 0x4d0721bf: numBytes = 799; return jucer_AudioPluginEditorTemplate_h;
case 0x51b49ac5: numBytes = 5028; return jucer_AudioPluginFilterTemplate_cpp;
case 0x488afa0a: numBytes = 2488; return jucer_AudioPluginFilterTemplate_h;
case 0x27c5a93a: numBytes = 1180; return jucer_AudioPluginEditorTemplate_cpp;
case 0x4d0721bf: numBytes = 1012; return jucer_AudioPluginEditorTemplate_h;
case 0x51b49ac5: numBytes = 5039; return jucer_AudioPluginFilterTemplate_cpp;
case 0x488afa0a: numBytes = 2727; return jucer_AudioPluginFilterTemplate_h;
case 0xabad7041: numBytes = 2083; return jucer_ComponentTemplate_cpp;
case 0xfc72fe86: numBytes = 2156; return jucer_ComponentTemplate_h;
case 0x0b66646c: numBytes = 886; return jucer_ContentCompTemplate_cpp;