Tom Poole
61c638106f
Clarify some FileChooser example code
3 years ago
Tom Poole
fe4ba9071b
Set the default value of JUCE_MODAL_LOOPS_PERMITTED to 0
See BREAKING-CHANGES.txt for more details.
3 years ago
reuk
1ee106d730
PopupMenu: Avoid dismissing PopupMenus in bridged plugin editors
When bridging 32-bit/64-bit plugins on Windows, the plugin is hosted in
an auxilliary process, and the plugin's editor is embedded into an HWND
owned by a different process (the plugin host).
Previously, the `isForegroundProcess` check would fail for bridged
plugins, because the foreground window may belong to the DAW, rather
than to the auxilliary hosting process.
This patch adds an additional check, to find whether the same process
owns both the foreground window, and the window which embeds the
PopupMenu's target component. In this case, we avoid immediately
dismissing the PopupMenu.
4 years ago
reuk
31a7c62baf
Windows: Fix and suppress some analysis warnings
This fixes warnings that are emitted when building with the `-analyze`
flag enabled.
4 years ago
ed
ec990202b1
Accessibility: Added VoiceOver (macOS) and Narrator (Windows) accessibility screen reader support to juce_gui_basics
4 years ago
Tom Poole
79fbde7099
Added preliminary support for FreeBSD
4 years ago
reuk
fd2f866dd1
FileChooser: Avoid throwing bad_weak_ptr
It seems like shared_from_this may not be enabled when a unique_ptr is
assigned to a shared_ptr (although it *should* be enabled when
constructing a new shared_ptr from a unique_ptr). Functions that return
objects that may need to use shared_from_this now return shared_ptr,
just to be safe.
Additionally, in some cases, shared_from_this was being called from
Thread::run after the last reference to the shared object had been
released. We now call shared_from_this during 'open', which will always
run on the message thread while at least once reference to the shared
object is alive.
4 years ago
reuk
45409bb4e6
FileChooser: Hide chooser when it leaves scope on Windows
4 years ago
ed
ad38182530
Added checks for DOXYGEN #define when excluding modal methods in headers
4 years ago
ed
04c28eaa3b
Added a missing #if JUCE_MODAL_LOOPS_PERMITTED guard to FileChooser modal methods
4 years ago
reuk
f647c54b74
FileChooserDialogBox: Ensure filechoosers open in front of other windows
4 years ago
reuk
c3f6318c7c
FileBrowserComponent: Update all filenameBox text when LnF changes
4 years ago
reuk
b096c16c04
FileBrowserComponent: Fix issue where up button was hidden after changing the look and feel
4 years ago
reuk
394c4fd475
Clang: Fix warnings when building with clang 10
4 years ago
ed
009d685179
Updated all license headers
4 years ago
reuk
39b5c22a29
GUI: Ensure components refresh correctly when their look and feel changes
5 years ago
ed
b5214a341e
Normalised lambda whitespace
5 years ago
ed
d510b73cdf
Normalised all whitespace before args in std::function
5 years ago
ed
1507ceb941
Ensure that the ContentSharer singleton is cleaned up on shutdown
5 years ago
Tom Poole
894e7d2bd2
Updated all license headers
5 years ago
Tom Poole
2d16374b14
Updated all license headers
5 years ago
reuk
e7e1de78fa
Files: Add RangedDirectoryIterator
5 years ago
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
5 years ago
ed
18df1b0937
Added JUCE_CONTENT_SHARING define to conditionally compile the native content sharer code
5 years ago
ed
59a058fdc6
Fixed some warnings flagged up when enabling -Wswitch-enum, -Wswitch-default, -Wredundant-decls, and -Wimplicit-fallthrough
5 years ago
reuk
4b7043b0cd
OptionalScopedPointer: Added proper move semantics and convenience constructors
5 years ago
ed
a54da0b832
Fixed some more typos
5 years ago
ed
dcd2ee6ef8
Fixed a couple of typos in the FileChooser docs
5 years ago
Tom Poole
670f77f80c
Fixed some Android compiler warnings
6 years ago
jules
62ead7dc7d
Added some overloads to OwnedArray to let items be added from std::unique_ptrs. Also removed OwnedArray::addIfNotAlreadyThere because it's ambiguous about whether the object should be deleted if it fails to be added!
6 years ago
Tom Poole
b59fa68724
Fixed some compiler warnings
6 years ago
ed
3c312b9d76
Reworked the logic in FileBrowserComponent::currentFileIsValid() to ensure that directories can't be selected when only browsing for files
6 years ago
ed
fb5d55f052
Fixed the behaviour of FilenameComponent::getLocationToBrowse() when a default file has been set
6 years ago
ed
1a46fb3a5f
Minor whitespace tidying
6 years ago
ed
363d86ce6e
Ensure that DirectoryContentsList sends a change message when the last file in a directory is deleted
6 years ago
ed
a234721110
Added various clang-tidy modernize-* fixes
6 years ago
jules
cadac817c6
Enabled some more warning flags in Xcode, and fixed the problems they caused
6 years ago
ed
eaf0f990d4
Replaced all uses of static_cast<Type&&> with std::move
6 years ago
hogliux
008b7a9ab2
Re-structured the low-level Android native code
Please see the forum post "Re-structuring of JUCE’s low-level Android code" and the BREAKING-CHANGES.txt for more information.
6 years ago
jules
302019dd43
Tidied up some comments and usage of File::createOutputStream() and createInputStream()
6 years ago
Tom Poole
493591a7ef
Cleaned up some doc comments
6 years ago
hogliux
ceea888507
Added an option to specify a parent component when creating a file chooser
6 years ago
hogliux
c3c43bc738
Only send a single change message when DirectoryContentsList::refresh() is invoked
7 years ago
Tom Poole
0469fde310
Fixed a data race when iterating directory contents
7 years ago
Tom Poole
ab863a6dc2
Replaced all usage of ScopedPointer with std::unique_ptr
7 years ago
Lukasz Kozakiewicz
b0d515f329
iOS: fix a crash in ContentSharer upon sharing finish.
7 years ago
ed
cdbc28c18b
Add documentation tags
7 years ago
hogliux
3724a52ac8
FileBrowserComponents and non-native FileChoosers will now correctly respect the initialFileOrDirectory parameter and actually select the file (if initialFileOrDirectory points to a file)
7 years ago
Noah Dayan
e690350df3
Use lambda callbacks instead of listeners with Slider, Button, Label, ComboBox and TextEditor classes
7 years ago
jules
415f0e4c90
Added an alternative version of File::findChildFiles that returns the results array rather than it being an out-parameter. In almost all cases using this new version will make your code smaller and cleaner, as you can see from all the changes in this commit!
7 years ago