ConfigChat.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*\
  2. |*| Copyright 2015-2016 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 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 General Public License for more details.
  14. |*|
  15. |*| You should have received a copy of the GNU General Public License
  16. |*| along with AvCaster. If not, see <http://www.gnu.org/licenses/>.
  17. \*/
  18. #ifndef _CONFIGCHAT_H_
  19. #define _CONFIGCHAT_H_
  20. //[Headers] -- You can add your own extra header files here --
  21. #include "JuceHeader.h"
  22. class MainContent ;
  23. //[/Headers]
  24. //==============================================================================
  25. /**
  26. //[Comments]
  27. ConfigChat is the chat configuration GUI for the AvCaster application.
  28. It has it controls for setting the per-network chat parameters.
  29. //[/Comments]
  30. */
  31. class ConfigChat : public Component
  32. {
  33. public:
  34. //==============================================================================
  35. ConfigChat ();
  36. ~ConfigChat();
  37. //==============================================================================
  38. //[UserMethods] -- You can add your own custom methods in this section.
  39. //[/UserMethods]
  40. void paint (Graphics& g);
  41. void resized();
  42. private:
  43. //[UserVariables] -- You can add your own custom variables in this section.
  44. friend class Config ;
  45. MainContent* mainContent ;
  46. //[/UserVariables]
  47. //==============================================================================
  48. ScopedPointer<ToggleButton> timestampToggle;
  49. ScopedPointer<ToggleButton> joinPartToggle;
  50. ScopedPointer<Label> networkLabel;
  51. ScopedPointer<Label> portLabel;
  52. ScopedPointer<TextEditor> portText;
  53. ScopedPointer<Label> nickLabel;
  54. ScopedPointer<TextEditor> nickText;
  55. ScopedPointer<Label> passLabel;
  56. ScopedPointer<TextEditor> passText;
  57. ScopedPointer<Label> channelLabel;
  58. ScopedPointer<TextEditor> channelText;
  59. ScopedPointer<Label> greetingLabel;
  60. ScopedPointer<TextEditor> greetingText;
  61. ScopedPointer<TextEditor> networkText;
  62. //==============================================================================
  63. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ConfigChat)
  64. };
  65. //[EndFile] You can add extra defines here...
  66. //[/EndFile]
  67. #endif // _CONFIGCHAT_H_