Add TAL-Reverb-II plugin to test
[juce-lv2.git] / juce / source / extras / JuceDemo / Source / demos / AudioDemoSetupPage.cpp
blob18bfd52e8c47270a456bdb45d9c7ee03d9d06045
1 /*
2 ==============================================================================
4 This is an automatically generated file created by the Jucer!
6 Creation date: 1 May 2011 1:54:18pm
8 Be careful when adding custom code to these files, as only the code within
9 the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
10 and re-saved.
12 Jucer version: 1.12
14 ------------------------------------------------------------------------------
16 The Jucer is part of the JUCE library - "Jules' Utility Class Extensions"
17 Copyright 2004-6 by Raw Material Software ltd.
19 ==============================================================================
22 //[Headers] You can add your own extra header files here...
23 //[/Headers]
25 #include "AudioDemoSetupPage.h"
28 //[MiscUserDefs] You can add your own user definitions and misc code here...
29 //[/MiscUserDefs]
31 //==============================================================================
32 AudioDemoSetupPage::AudioDemoSetupPage (AudioDeviceManager& deviceManager_)
33 : deviceManager (deviceManager_),
34 deviceSelector (0)
36 addAndMakeVisible (deviceSelector = new AudioDeviceSelectorComponent (deviceManager, 0, 2, 0, 2, true, true, true, false));
39 //[UserPreSize]
40 //[/UserPreSize]
42 setSize (600, 400);
45 //[Constructor] You can add your own custom stuff here..
46 //[/Constructor]
49 AudioDemoSetupPage::~AudioDemoSetupPage()
51 //[Destructor_pre]. You can add your own custom destruction code here..
52 //[/Destructor_pre]
54 deleteAndZero (deviceSelector);
57 //[Destructor]. You can add your own custom destruction code here..
58 //[/Destructor]
61 //==============================================================================
62 void AudioDemoSetupPage::paint (Graphics& g)
64 //[UserPrePaint] Add your own custom painting code here..
65 //[/UserPrePaint]
67 g.fillAll (Colours::lightgrey);
69 //[UserPaint] Add your own custom painting code here..
70 //[/UserPaint]
73 void AudioDemoSetupPage::resized()
75 deviceSelector->setBounds (8, 8, getWidth() - 16, getHeight() - 16);
76 //[UserResized] Add your own custom resize handling here..
77 //[/UserResized]
82 //[MiscUserCode] You can add your own definitions of your custom methods or any other code here...
83 //[/MiscUserCode]
86 //==============================================================================
87 #if 0
88 /* -- Jucer information section --
90 This is where the Jucer puts all of its metadata, so don't change anything in here!
92 BEGIN_JUCER_METADATA
94 <JUCER_COMPONENT documentType="Component" className="AudioDemoSetupPage" componentName=""
95 parentClasses="public Component" constructorParams="AudioDeviceManager&amp; deviceManager_"
96 variableInitialisers="deviceManager (deviceManager_)" snapPixels="8"
97 snapActive="1" snapShown="1" overlayOpacity="0.330000013" fixedSize="0"
98 initialWidth="600" initialHeight="400">
99 <BACKGROUND backgroundColour="ffd3d3d3"/>
100 <GENERICCOMPONENT name="" id="a04c56de9f3fc537" memberName="deviceSelector" virtualName=""
101 explicitFocusOrder="0" pos="8 8 16M 16M" class="AudioDeviceSelectorComponent"
102 params="deviceManager, 0, 2, 0, 2, true, true, true, false"/>
103 </JUCER_COMPONENT>
105 END_JUCER_METADATA
107 #endif