ChatListItem.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*\
  2. |*| Copyright 2015 bill-auger <https://github.com/bill-auger/av-caster/issues>
  3. |*|
  4. |*| This file is part of the AvCaster program.
  5. |*|
  6. |*| AvCaster is free software: you can redistribute it and/or modify
  7. |*| it under the terms of the GNU Lesser General Public License version 3
  8. |*| as published by the Free Software Foundation.
  9. |*|
  10. |*| AvCaster is distributed in the hope that it will be useful,
  11. |*| but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. |*| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. |*| GNU Lesser General Public License for more details.
  14. |*|
  15. |*| You should have received a copy of the GNU Lesser General Public License
  16. |*| along with AvCaster. If not, see <http://www.gnu.org/licenses/>.
  17. \*/
  18. #ifndef _CHATLISTITEM_H_
  19. #define _CHATLISTITEM_H_
  20. //[Headers] -- You can add your own extra header files here --
  21. #include "JuceHeader.h"
  22. //[/Headers]
  23. //==============================================================================
  24. /**
  25. //[Comments]
  26. Instances of ChatListItem are subcomponents of the ChatList container
  27. They each represent an individual chat user.
  28. //[/Comments]
  29. */
  30. class ChatListItem : public Component,
  31. public ButtonListener
  32. {
  33. public:
  34. //==============================================================================
  35. ChatListItem (ValueTree chatter_store);
  36. ~ChatListItem();
  37. //==============================================================================
  38. //[UserMethods] -- You can add your own custom methods in this section.
  39. //[/UserMethods]
  40. void paint (Graphics& g);
  41. void resized();
  42. void buttonClicked (Button* buttonThatWasClicked);
  43. private:
  44. //[UserVariables] -- You can add your own custom variables in this section.
  45. ValueTree chatterStore ;
  46. //[/UserVariables]
  47. //==============================================================================
  48. ScopedPointer<TextButton> banButton;
  49. ScopedPointer<Label> nickLabel;
  50. //==============================================================================
  51. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChatListItem)
  52. };
  53. //[EndFile] You can add extra defines here...
  54. //[/EndFile]
  55. #endif // _CHATLISTITEM_H_