ConfigChannel.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. #ifndef __JUCE_HEADER_87598446A41E477A__
  14. #define __JUCE_HEADER_87598446A41E477A__
  15. //[Headers] -- You can add your own extra header files here --
  16. #include "JuceHeader.h"
  17. //[/Headers]
  18. //==============================================================================
  19. /**
  20. //[Comments]
  21. An auto-generated component, created by the Introjucer.
  22. Describe your class and how it works here!
  23. //[/Comments]
  24. */
  25. class ConfigChannel : public Component,
  26. public ButtonListener,
  27. public ComboBoxListener
  28. {
  29. public:
  30. //==============================================================================
  31. ConfigChannel (ValueTree config_store);
  32. ~ConfigChannel();
  33. //==============================================================================
  34. //[UserMethods] -- You can add your own custom methods in this section.
  35. //[/UserMethods]
  36. void paint (Graphics& g);
  37. void resized();
  38. void comboBoxChanged (ComboBox* comboBoxThatHasChanged);
  39. private:
  40. //[UserVariables] -- You can add your own custom variables in this section.
  41. void buttonClicked( Button* a_button) ;
  42. String makeMonoSelectOption( int channel_n) ;
  43. String makeStereoSelectOption( int channel_n) ;
  44. void createChannelSelectOptions() ;
  45. void populateChannelSelect() ;
  46. SortedSet<int> freeAudioSourceNs ;
  47. SortedSet<int> freeAudioSourcePairNs ;
  48. StringArray freeAudioSourceOptions ;
  49. StringArray freeAudioSourcePairOptions ;
  50. ValueTree configStore ;
  51. bool isNewChannel ;
  52. int sourceN ;
  53. bool isStereo ;
  54. //[/UserVariables]
  55. //==============================================================================
  56. ScopedPointer<Label> nameLabel;
  57. ScopedPointer<TextEditor> nameText;
  58. ScopedPointer<ToggleButton> monoButton;
  59. ScopedPointer<ToggleButton> stereoButton;
  60. ScopedPointer<Label> inputLabel;
  61. ScopedPointer<ComboBox> channelSelect;
  62. ScopedPointer<TextButton> okButton;
  63. ScopedPointer<TextButton> cancelButton;
  64. //==============================================================================
  65. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ConfigChannel)
  66. };
  67. //[EndFile] You can add extra defines here...
  68. //[/EndFile]
  69. #endif // __JUCE_HEADER_87598446A41E477A__