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.

111 lines
3.5KB

  1. /*
  2. ==============================================================================
  3. This is an automatically generated GUI class created by the Introjucer!
  4. Be careful when adding custom code to these files, as only the code within
  5. the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
  6. and re-saved.
  7. Created with Introjucer version: 3.1.0
  8. ------------------------------------------------------------------------------
  9. The Introjucer is part of the JUCE library - "Jules' Utility Class Extensions"
  10. Copyright 2004-13 by Raw Material Software Ltd.
  11. ==============================================================================
  12. */
  13. //[Headers] You can add your own extra header files here...
  14. //[/Headers]
  15. #include "AudioDemoSetupPage.h"
  16. //[MiscUserDefs] You can add your own user definitions and misc code here...
  17. //[/MiscUserDefs]
  18. //==============================================================================
  19. AudioDemoSetupPage::AudioDemoSetupPage (AudioDeviceManager& deviceManager_)
  20. : deviceManager (deviceManager_),
  21. deviceSelector (0)
  22. {
  23. addAndMakeVisible (deviceSelector = new AudioDeviceSelectorComponent (deviceManager, 0, 2, 0, 2, true, true, true, false));
  24. //[UserPreSize]
  25. //[/UserPreSize]
  26. setSize (600, 400);
  27. //[Constructor] You can add your own custom stuff here..
  28. //[/Constructor]
  29. }
  30. AudioDemoSetupPage::~AudioDemoSetupPage()
  31. {
  32. //[Destructor_pre]. You can add your own custom destruction code here..
  33. //[/Destructor_pre]
  34. deleteAndZero (deviceSelector);
  35. //[Destructor]. You can add your own custom destruction code here..
  36. //[/Destructor]
  37. }
  38. //==============================================================================
  39. void AudioDemoSetupPage::paint (Graphics& g)
  40. {
  41. //[UserPrePaint] Add your own custom painting code here..
  42. //[/UserPrePaint]
  43. g.fillAll (Colours::lightgrey);
  44. //[UserPaint] Add your own custom painting code here..
  45. //[/UserPaint]
  46. }
  47. void AudioDemoSetupPage::resized()
  48. {
  49. deviceSelector->setBounds (8, 8, getWidth() - 16, getHeight() - 16);
  50. //[UserResized] Add your own custom resize handling here..
  51. //[/UserResized]
  52. }
  53. //[MiscUserCode] You can add your own definitions of your custom methods or any other code here...
  54. //[/MiscUserCode]
  55. //==============================================================================
  56. #if 0
  57. /* -- Introjucer information section --
  58. This is where the Introjucer stores the metadata that describe this GUI layout, so
  59. make changes in here at your peril!
  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
  74. //[EndFile] You can add extra defines here...
  75. //[/EndFile]