Preview.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 _PREVIEW_H_
  19. #define _PREVIEW_H_
  20. //[Headers] -- You can add your own extra header files here --
  21. #include "JuceHeader.h"
  22. //[/Headers]
  23. //==============================================================================
  24. /**
  25. //[Comments]
  26. Preview is the live preview GUI for the AvCaster application.
  27. It is essentially a dummy widget for the media to be drawn within.
  28. //[/Comments]
  29. */
  30. class Preview : public Component
  31. {
  32. public:
  33. //==============================================================================
  34. Preview ();
  35. ~Preview();
  36. //==============================================================================
  37. //[UserMethods] -- You can add your own custom methods in this section.
  38. //[/UserMethods]
  39. void paint (Graphics& g) override;
  40. void resized() override;
  41. private:
  42. //[UserVariables] -- You can add your own custom variables in this section.
  43. //[/UserVariables]
  44. //==============================================================================
  45. ScopedPointer<GroupComponent> previewGroup;
  46. ScopedPointer<Drawable> drawable1;
  47. //==============================================================================
  48. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Preview)
  49. };
  50. //[EndFile] You can add extra defines here...
  51. //[/EndFile]
  52. #endif // _PREVIEW_H_