The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
3.4KB

  1. /*
  2. ==============================================================================
  3. This is an automatically generated file created by the Jucer!
  4. Creation date: 1 May 2011 1:54:18pm
  5. Be careful when adding custom code to these files, as only the code within
  6. the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
  7. and re-saved.
  8. Jucer version: 1.12
  9. ------------------------------------------------------------------------------
  10. The Jucer is part of the JUCE library - "Jules' Utility Class Extensions"
  11. Copyright 2004-6 by Raw Material Software ltd.
  12. ==============================================================================
  13. */
  14. //[Headers] You can add your own extra header files here...
  15. //[/Headers]
  16. #include "AudioDemoSetupPage.h"
  17. //[MiscUserDefs] You can add your own user definitions and misc code here...
  18. //[/MiscUserDefs]
  19. //==============================================================================
  20. AudioDemoSetupPage::AudioDemoSetupPage (AudioDeviceManager& deviceManager_)
  21. : deviceManager (deviceManager_),
  22. deviceSelector (0)
  23. {
  24. addAndMakeVisible (deviceSelector = new AudioDeviceSelectorComponent (deviceManager, 0, 2, 0, 2, true, true, true, false));
  25. //[UserPreSize]
  26. //[/UserPreSize]
  27. setSize (600, 400);
  28. //[Constructor] You can add your own custom stuff here..
  29. //[/Constructor]
  30. }
  31. AudioDemoSetupPage::~AudioDemoSetupPage()
  32. {
  33. //[Destructor_pre]. You can add your own custom destruction code here..
  34. //[/Destructor_pre]
  35. deleteAndZero (deviceSelector);
  36. //[Destructor]. You can add your own custom destruction code here..
  37. //[/Destructor]
  38. }
  39. //==============================================================================
  40. void AudioDemoSetupPage::paint (Graphics& g)
  41. {
  42. //[UserPrePaint] Add your own custom painting code here..
  43. //[/UserPrePaint]
  44. g.fillAll (Colours::lightgrey);
  45. //[UserPaint] Add your own custom painting code here..
  46. //[/UserPaint]
  47. }
  48. void AudioDemoSetupPage::resized()
  49. {
  50. deviceSelector->setBounds (8, 8, getWidth() - 16, getHeight() - 16);
  51. //[UserResized] Add your own custom resize handling here..
  52. //[/UserResized]
  53. }
  54. //[MiscUserCode] You can add your own definitions of your custom methods or any other code here...
  55. //[/MiscUserCode]
  56. //==============================================================================
  57. #if 0
  58. /* -- Jucer information section --
  59. This is where the Jucer puts all of its metadata, so don't change anything in here!
  60. BEGIN_JUCER_METADATA
  61. <JUCER_COMPONENT documentType="Component" className="AudioDemoSetupPage" componentName=""
  62. parentClasses="public Component" constructorParams="AudioDeviceManager&amp; deviceManager_"
  63. variableInitialisers="deviceManager (deviceManager_)" snapPixels="8"
  64. snapActive="1" snapShown="1" overlayOpacity="0.330000013" fixedSize="0"
  65. initialWidth="600" initialHeight="400">
  66. <BACKGROUND backgroundColour="ffd3d3d3"/>
  67. <GENERICCOMPONENT name="" id="a04c56de9f3fc537" memberName="deviceSelector" virtualName=""
  68. explicitFocusOrder="0" pos="8 8 16M 16M" class="AudioDeviceSelectorComponent"
  69. params="deviceManager, 0, 2, 0, 2, true, true, true, false"/>
  70. </JUCER_COMPONENT>
  71. END_JUCER_METADATA
  72. */
  73. #endif