mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added some more folders to the list of common locations in the file browser.
This commit is contained in:
parent
ad324efc01
commit
bfbb6c2413
1 changed files with 15 additions and 7 deletions
|
|
@ -532,17 +532,25 @@ void FileBrowserComponent::getDefaultRoots (StringArray& rootNames, StringArray&
|
||||||
rootNames.add (String::empty);
|
rootNames.add (String::empty);
|
||||||
|
|
||||||
rootPaths.add (File::getSpecialLocation (File::userDocumentsDirectory).getFullPathName());
|
rootPaths.add (File::getSpecialLocation (File::userDocumentsDirectory).getFullPathName());
|
||||||
rootNames.add ("Documents");
|
rootNames.add (TRANS("Documents"));
|
||||||
|
rootPaths.add (File::getSpecialLocation (File::userMusicDirectory).getFullPathName());
|
||||||
|
rootNames.add (TRANS("Music"));
|
||||||
|
rootPaths.add (File::getSpecialLocation (File::userPicturesDirectory).getFullPathName());
|
||||||
|
rootNames.add (TRANS("Pictures"));
|
||||||
rootPaths.add (File::getSpecialLocation (File::userDesktopDirectory).getFullPathName());
|
rootPaths.add (File::getSpecialLocation (File::userDesktopDirectory).getFullPathName());
|
||||||
rootNames.add ("Desktop");
|
rootNames.add (TRANS("Desktop"));
|
||||||
|
|
||||||
#elif JUCE_MAC
|
#elif JUCE_MAC
|
||||||
rootPaths.add (File::getSpecialLocation (File::userHomeDirectory).getFullPathName());
|
rootPaths.add (File::getSpecialLocation (File::userHomeDirectory).getFullPathName());
|
||||||
rootNames.add ("Home folder");
|
rootNames.add (TRANS("Home folder"));
|
||||||
rootPaths.add (File::getSpecialLocation (File::userDocumentsDirectory).getFullPathName());
|
rootPaths.add (File::getSpecialLocation (File::userDocumentsDirectory).getFullPathName());
|
||||||
rootNames.add ("Documents");
|
rootNames.add (TRANS("Documents"));
|
||||||
|
rootPaths.add (File::getSpecialLocation (File::userMusicDirectory).getFullPathName());
|
||||||
|
rootNames.add (TRANS("Music"));
|
||||||
|
rootPaths.add (File::getSpecialLocation (File::userPicturesDirectory).getFullPathName());
|
||||||
|
rootNames.add (TRANS("Pictures"));
|
||||||
rootPaths.add (File::getSpecialLocation (File::userDesktopDirectory).getFullPathName());
|
rootPaths.add (File::getSpecialLocation (File::userDesktopDirectory).getFullPathName());
|
||||||
rootNames.add ("Desktop");
|
rootNames.add (TRANS("Desktop"));
|
||||||
|
|
||||||
rootPaths.add (String::empty);
|
rootPaths.add (String::empty);
|
||||||
rootNames.add (String::empty);
|
rootNames.add (String::empty);
|
||||||
|
|
@ -566,9 +574,9 @@ void FileBrowserComponent::getDefaultRoots (StringArray& rootNames, StringArray&
|
||||||
rootPaths.add ("/");
|
rootPaths.add ("/");
|
||||||
rootNames.add ("/");
|
rootNames.add ("/");
|
||||||
rootPaths.add (File::getSpecialLocation (File::userHomeDirectory).getFullPathName());
|
rootPaths.add (File::getSpecialLocation (File::userHomeDirectory).getFullPathName());
|
||||||
rootNames.add ("Home folder");
|
rootNames.add (TRANS("Home folder"));
|
||||||
rootPaths.add (File::getSpecialLocation (File::userDesktopDirectory).getFullPathName());
|
rootPaths.add (File::getSpecialLocation (File::userDesktopDirectory).getFullPathName());
|
||||||
rootNames.add ("Desktop");
|
rootNames.add (TRANS("Desktop"));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue