ConfigSubscriptions.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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_2F4D86CC6EC233C__
  14. #define __JUCE_HEADER_2F4D86CC6EC233C__
  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 ConfigSubscriptions : public Component,
  26. public ButtonListener
  27. {
  28. public:
  29. //==============================================================================
  30. ConfigSubscriptions (ValueTree config_store);
  31. ~ConfigSubscriptions();
  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. void setConfig(Identifier a_key , var a_value) ;
  42. //[/UserVariables]
  43. //==============================================================================
  44. ScopedPointer<ToggleButton> subscribeButton;
  45. ScopedPointer<ToggleButton> ignoreButton;
  46. ScopedPointer<Label> bansLabel;
  47. ScopedPointer<Viewport> subscriptionsViewport;
  48. //==============================================================================
  49. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ConfigSubscriptions)
  50. };
  51. //[EndFile] You can add extra defines here...
  52. //[/EndFile]
  53. #endif // __JUCE_HEADER_2F4D86CC6EC233C__