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.

110 lines
3.4KB

  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. {
  22. addAndMakeVisible (deviceSelector = new AudioDeviceSelectorComponent (deviceManager, 0, 2, 0, 2, true, true, true, false));
  23. //[UserPreSize]
  24. //[/UserPreSize]
  25. setSize (600, 400);
  26. //[Constructor] You can add your own custom stuff here..
  27. //[/Constructor]
  28. }
  29. AudioDemoSetupPage::~AudioDemoSetupPage()
  30. {
  31. //[Destructor_pre]. You can add your own custom destruction code here..
  32. //[/Destructor_pre]
  33. deviceSelector = nullptr;
  34. //[Destructor]. You can add your own custom destruction code here..
  35. //[/Destructor]
  36. }
  37. //==============================================================================
  38. void AudioDemoSetupPage::paint (Graphics& g)
  39. {
  40. //[UserPrePaint] Add your own custom painting code here..
  41. //[/UserPrePaint]
  42. g.fillAll (Colours::lightgrey);
  43. //[UserPaint] Add your own custom painting code here..
  44. //[/UserPaint]
  45. }
  46. void AudioDemoSetupPage::resized()
  47. {
  48. deviceSelector->setBounds (8, 8, getWidth() - 16, getHeight() - 16);
  49. //[UserResized] Add your own custom resize handling here..
  50. //[/UserResized]
  51. }
  52. //[MiscUserCode] You can add your own definitions of your custom methods or any other code here...
  53. //[/MiscUserCode]
  54. //==============================================================================
  55. #if 0
  56. /* -- Introjucer information section --
  57. This is where the Introjucer stores the metadata that describe this GUI layout, so
  58. make changes in here at your peril!
  59. BEGIN_JUCER_METADATA
  60. <JUCER_COMPONENT documentType="Component" className="AudioDemoSetupPage" componentName=""
  61. parentClasses="public Component" constructorParams="AudioDeviceManager&amp; deviceManager_"
  62. variableInitialisers="deviceManager (deviceManager_)" snapPixels="8"
  63. snapActive="1" snapShown="1" overlayOpacity="0.330000013" fixedSize="0"
  64. initialWidth="600" initialHeight="400">
  65. <BACKGROUND backgroundColour="ffd3d3d3"/>
  66. <GENERICCOMPONENT name="" id="a04c56de9f3fc537" memberName="deviceSelector" virtualName=""
  67. explicitFocusOrder="0" pos="8 8 16M 16M" class="AudioDeviceSelectorComponent"
  68. params="deviceManager, 0, 2, 0, 2, true, true, true, false"/>
  69. </JUCER_COMPONENT>
  70. END_JUCER_METADATA
  71. */
  72. #endif
  73. //[EndFile] You can add extra defines here...
  74. //[/EndFile]