Chat.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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_8B23E8CA1D72080__
  14. #define __JUCE_HEADER_8B23E8CA1D72080__
  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 Chat : public Component,
  26. public TextEditor::Listener,
  27. public LabelListener
  28. {
  29. public:
  30. //==============================================================================
  31. Chat ();
  32. ~Chat();
  33. //==============================================================================
  34. //[UserMethods] -- You can add your own custom methods in this section.
  35. void setTopic( String topic_text) ;
  36. void addChatLine(String chat_user , String chat_text) ;
  37. void textEditorReturnKeyPressed(TextEditor& a_text_editor) override ;
  38. //[/UserMethods]
  39. void paint (Graphics& g);
  40. void resized();
  41. void labelTextChanged (Label* labelThatHasChanged);
  42. private:
  43. //[UserVariables] -- You can add your own custom variables in this section.
  44. String prevTopicText ;
  45. //[/UserVariables]
  46. //==============================================================================
  47. ScopedPointer<TextEditor> chatText;
  48. ScopedPointer<TextEditor> chatEntryText;
  49. ScopedPointer<Label> topicLabel;
  50. //==============================================================================
  51. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Chat)
  52. };
  53. //[EndFile] You can add extra defines here...
  54. //[/EndFile]
  55. #endif // __JUCE_HEADER_8B23E8CA1D72080__