mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-19 01:04:20 +00:00
Added multiple-selection, and the ability to browse for both files and folders to the Juce file chooser dialog classes. This has involved changing a few methods, so if you're using these classes directly, you may need to tweak your code, but it should be very easy to do.
This commit is contained in:
parent
71a12a140e
commit
1f6d9ec92c
13 changed files with 602 additions and 307 deletions
|
|
@ -101,13 +101,13 @@ void FileChooserDialogBox::buttonClicked (Button* button)
|
|||
if (button == content->okButton)
|
||||
{
|
||||
if (warnAboutOverwritingExistingFiles
|
||||
&& content->chooserComponent->getMode() == FileBrowserComponent::saveFileMode
|
||||
&& content->chooserComponent->getCurrentFile().exists())
|
||||
&& content->chooserComponent->isSaveMode()
|
||||
&& content->chooserComponent->getSelectedFile(0).exists())
|
||||
{
|
||||
if (! AlertWindow::showOkCancelBox (AlertWindow::WarningIcon,
|
||||
TRANS("File already exists"),
|
||||
TRANS("There's already a file called:\n\n")
|
||||
+ content->chooserComponent->getCurrentFile().getFullPathName()
|
||||
+ content->chooserComponent->getSelectedFile(0).getFullPathName()
|
||||
+ T("\n\nAre you sure you want to overwrite it?"),
|
||||
TRANS("overwrite"),
|
||||
TRANS("cancel")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue