ConfigBlacklist.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.1
  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 _CONFIGBLACKLIST_H_
  14. #define _CONFIGBLACKLIST_H_
  15. //[Headers] -- You can add your own extra header files here --
  16. #include "JuceHeader.h"
  17. //[/Headers]
  18. //==============================================================================
  19. /**
  20. //[Comments]
  21. ConfigBlacklist is a tab of the configuration screen
  22. it configures options specific to the NJClient subscriptions list
  23. //[/Comments]
  24. */
  25. class ConfigBlacklist : public Component,
  26. public Button::Listener
  27. {
  28. public:
  29. //==============================================================================
  30. ConfigBlacklist (ValueTree blacklist_store);
  31. ~ConfigBlacklist();
  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 blacklistStore ;
  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> blacklistViewport;
  48. //==============================================================================
  49. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ConfigBlacklist)
  50. };
  51. //[EndFile] You can add extra defines here...
  52. //[/EndFile]
  53. #endif // _CONFIGBLACKLIST_H_