Mixer.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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_EB46FF61849DA256__
  14. #define __JUCE_HEADER_EB46FF61849DA256__
  15. //[Headers] -- You can add your own extra header files here --
  16. #include "Channels.h"
  17. #include "JuceHeader.h"
  18. //[/Headers]
  19. //==============================================================================
  20. /**
  21. //[Comments]
  22. An auto-generated component, created by the Introjucer.
  23. Describe your class and how it works here!
  24. //[/Comments]
  25. */
  26. class Mixer : public Component,
  27. public ButtonListener
  28. {
  29. public:
  30. //==============================================================================
  31. Mixer ();
  32. ~Mixer();
  33. //==============================================================================
  34. //[UserMethods] -- You can add your own custom methods in this section.
  35. bool addRemoteUser( ValueTree user_store , ValueTree subscriptions) ;
  36. bool addChannel( Identifier channels_id , ValueTree channel_store) ;
  37. void removeChannel( Identifier channels_id , Identifier channel_id) ;
  38. void positionResizers() ;
  39. void pruneRemotes( ValueTree active_users) ;
  40. //[/UserMethods]
  41. void paint (Graphics& g);
  42. void resized();
  43. private:
  44. //[UserVariables] -- You can add your own custom variables in this section.
  45. ScopedPointer<MasterChannels> masterChannels ;
  46. ScopedPointer<LocalChannels> localChannels ;
  47. ScopedPointer<TextButton> prevScrollButton ;
  48. ScopedPointer<TextButton> nextScrollButton ;
  49. ScopedPointer<ResizableEdgeComponent> localsResizer ;
  50. ScopedPointer<ResizableEdgeComponent> mastersResizer ;
  51. uint8 scrollZ ;
  52. void buttonClicked( Button* buttonThatWasClicked) override ;
  53. void addChannels( Channels* channels , Identifier channels_id) ;
  54. void removeChannels( Channels* channels) ;
  55. void addScrollButton( TextButton* scroll_button , String button_text) ;
  56. void addResizer( ResizableEdgeComponent* resizer) ;
  57. Channels* getChannels( Identifier channels_id) ;
  58. int getNumDynamicMixers() ;
  59. int getLocalsResizerNextX() ;
  60. int getMastersResizerNextX() ;
  61. //[/UserVariables]
  62. //==============================================================================
  63. //==============================================================================
  64. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Mixer)
  65. };
  66. //[EndFile] You can add extra defines here...
  67. //[/EndFile]
  68. #endif // __JUCE_HEADER_EB46FF61849DA256__