MainContent.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 _MAINCONTENT_H_
  19. #define _MAINCONTENT_H_
  20. //[Headers] -- You can add your own extra header files here --
  21. #include "Background.h"
  22. #include "Chat.h"
  23. #include "Config.h"
  24. #include "Controls.h"
  25. #include "Preview.h"
  26. #include "Presets.h"
  27. #include "Statusbar.h"
  28. //[/Headers]
  29. //==============================================================================
  30. /**
  31. //[Comments]
  32. MainContent is the main GUI container class for the AvCaster application.
  33. //[/Comments]
  34. */
  35. class MainContent : public Component
  36. {
  37. public:
  38. //==============================================================================
  39. MainContent ();
  40. ~MainContent();
  41. //==============================================================================
  42. //[UserMethods] -- You can add your own custom methods in this section.
  43. void configureCombobox(ComboBox* a_combobox) ;
  44. void loadPresetsCombo (ComboBox* a_combobox) ;
  45. //[/UserMethods]
  46. void paint (Graphics& g);
  47. void resized();
  48. private:
  49. //[UserVariables] -- You can add your own custom variables in this section.
  50. friend class AvCaster ;
  51. void initialize (ValueTree servers_store) ;
  52. void warning (String message_text) ;
  53. void error (String message_text) ;
  54. Rectangle<int> getPreviewBounds() ;
  55. //[/UserVariables]
  56. //==============================================================================
  57. ScopedPointer<Background> background;
  58. ScopedPointer<Controls> controls;
  59. ScopedPointer<Chat> chat;
  60. ScopedPointer<Preview> preview;
  61. ScopedPointer<Presets> presets;
  62. ScopedPointer<Config> config;
  63. ScopedPointer<Statusbar> statusbar;
  64. //==============================================================================
  65. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContent)
  66. };
  67. //[EndFile] You can add extra defines here...
  68. //[/EndFile]
  69. #endif // _MAINCONTENT_H_