Subscriptions.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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_C8CF85E1A55C1DDD__
  14. #define __JUCE_HEADER_C8CF85E1A55C1DDD__
  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 Subscription : public Component,
  26. public ButtonListener
  27. {
  28. public:
  29. //==============================================================================
  30. Subscription (ValueTree config_store);
  31. ~Subscription();
  32. //==============================================================================
  33. //[UserMethods] -- You can add your own custom methods in this section.
  34. //[/UserMethods]
  35. void paint (Graphics& g);
  36. void resized();
  37. void buttonClicked (Button* buttonThatWasClicked);
  38. private:
  39. //[UserVariables] -- You can add your own custom variables in this section.
  40. ValueTree configStore ;
  41. //[/UserVariables]
  42. //==============================================================================
  43. ScopedPointer<TextButton> removeButton;
  44. ScopedPointer<Label> userLabel;
  45. //==============================================================================
  46. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Subscription)
  47. };
  48. //[EndFile] You can add extra defines here...
  49. /**
  50. this is the GUI container for Subscription instances //[/Comments]
  51. */
  52. class Subscriptions : public Component
  53. {
  54. friend class Subscription ;
  55. public:
  56. Subscriptions(ValueTree config_store) ;
  57. ~Subscriptions() ;
  58. private:
  59. void resized() ;
  60. int computeHeight() ;
  61. void removeSubscription(Subscription* a_subscription) ;
  62. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(Subscriptions)
  63. } ;
  64. //[/EndFile]
  65. #endif // __JUCE_HEADER_C8CF85E1A55C1DDD__