25 #ifndef JUCE_FILENAMECOMPONENT_H_INCLUDED 26 #define JUCE_FILENAMECOMPONENT_H_INCLUDED 45 virtual void filenameComponentChanged (
FilenameComponent* fileComponentThatHasChanged) = 0;
91 const File& currentFile,
95 const String& fileBrowserWildcard,
96 const String& enforcedSuffix,
97 const String& textWhenNothingSelected);
104 File getCurrentFile()
const;
107 String getCurrentFileText()
const;
116 void setCurrentFile (
File newFile,
117 bool addToRecentlyUsedList,
122 void setFilenameIsEditable (
bool shouldBeEditable);
128 void setDefaultBrowseTarget (
const File& newDefaultDirectory);
135 virtual File getLocationToBrowse();
153 void setRecentlyUsedFilenames (
const StringArray& filenames);
162 void addRecentlyUsedFile (
const File& file);
166 void setMaxNumberOfRecentFiles (
int newMaximum);
174 void setBrowseButtonText (
const String& browseButtonText);
192 virtual Button* createFilenameComponentBrowseButton (
const String& text) = 0;
198 void paintOverChildren (
Graphics&)
override;
200 void resized()
override;
202 void lookAndFeelChanged()
override;
204 bool isInterestedInFileDrag (
const StringArray&)
override;
206 void filesDropped (
const StringArray&,
int,
int)
override;
208 void fileDragEnter (
const StringArray&,
int,
int)
override;
220 bool isDir, isSaving, isFileDragOver;
221 String wildcard, enforcedSuffix, browseButtonText;
223 File defaultBrowseFile;
225 void comboBoxChanged (
ComboBox*)
override;
226 void buttonClicked (
Button*)
override;
227 void handleAsyncUpdate()
override;
234 #endif // JUCE_FILENAMECOMPONENT_H_INCLUDED
Definition: juce_NotificationType.h:38
Definition: juce_FileDragAndDropTarget.h:33
virtual ~LookAndFeelMethods()
Definition: juce_FilenameComponent.h:190
Definition: juce_String.h:43
virtual ~FilenameComponentListener()
Definition: juce_FilenameComponent.h:42
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_AsyncUpdater.h:39
NotificationType
Definition: juce_NotificationType.h:33
Definition: juce_ComboBox.h:284
Definition: juce_KeyboardFocusTraverser.h:49
Definition: juce_Component.h:33
Definition: juce_FilenameComponent.h:188
Definition: juce_StringArray.h:39
Definition: juce_FilenameComponent.h:38
Definition: juce_GraphicsContext.h:42
Definition: juce_ComboBox.h:44
Definition: juce_File.h:45
Definition: juce_FilenameComponent.h:63