Gin
Loading...
Searching...
No Matches
FilePropertyComponent Class Reference

Property component for selecting files with a browse button. More...

#include <gin_propertycomponents.h>

Inheritance diagram for FilePropertyComponent:

Public Member Functions

 FilePropertyComponent (const juce::Value &valueToControl, const juce::String &propertyName, const juce::String &title_="Open", const juce::String pattern_="*.*")
void refresh () override
Public Member Functions inherited from PropertyComponentBase
 PropertyComponentBase (const juce::Value &valueToControl, const juce::String &propertyName)
juce::Value & getValueObject ()

Additional Inherited Members

Protected Member Functions inherited from PropertyComponentBase
void valueChanged (juce::Value &) override
Protected Attributes inherited from PropertyComponentBase
juce::Value value

Detailed Description

Property component for selecting files with a browse button.

FilePropertyComponent provides a file path editor with browse and clear buttons. It displays the selected file path and allows users to browse for files using a native file chooser dialog.

Usage:

Value filePathValue;
FilePropertyComponent fileProp(filePathValue, "Audio File", "Open Audio", "*.wav;*.mp3;*.aif");
propertyPanel.addProperty(&fileProp);
FilePropertyComponent(const juce::Value &valueToControl, const juce::String &propertyName, const juce::String &title_="Open", const juce::String pattern_="*.*")
Definition gin_propertycomponents.h:68
See also
PropertyComponentBase, juce::FileChooser

Constructor & Destructor Documentation

◆ FilePropertyComponent()

FilePropertyComponent::FilePropertyComponent ( const juce::Value & valueToControl,
const juce::String & propertyName,
const juce::String & title_ = "Open",
const juce::String pattern_ = "*.*" )

Member Function Documentation

◆ refresh()

void FilePropertyComponent::refresh ( )
override

The documentation for this class was generated from the following file: