Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.0KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 6 technical preview.
  4. Copyright (c) 2020 - Raw Material Software Limited
  5. You may use this code under the terms of the GPL v3
  6. (see www.gnu.org/licenses).
  7. For this technical preview, this file is not subject to commercial licensing.
  8. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  9. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  10. DISCLAIMED.
  11. ==============================================================================
  12. */
  13. namespace juce
  14. {
  15. //==============================================================================
  16. /**
  17. Base class for components that live inside a file chooser dialog box and
  18. show previews of the files that get selected.
  19. One of these allows special extra information to be displayed for files
  20. in a dialog box as the user selects them. Each time the current file or
  21. directory is changed, the selectedFileChanged() method will be called
  22. to allow it to update itself appropriately.
  23. @see FileChooser, ImagePreviewComponent
  24. @tags{GUI}
  25. */
  26. class JUCE_API FilePreviewComponent : public Component
  27. {
  28. public:
  29. //==============================================================================
  30. /** Creates a FilePreviewComponent. */
  31. FilePreviewComponent();
  32. /** Destructor. */
  33. ~FilePreviewComponent() override;
  34. /** Called to indicate that the user's currently selected file has changed.
  35. @param newSelectedFile the newly selected file or directory, which may be
  36. a default File() object if none is selected.
  37. */
  38. virtual void selectedFileChanged (const File& newSelectedFile) = 0;
  39. private:
  40. //==============================================================================
  41. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FilePreviewComponent)
  42. };
  43. } // namespace juce