reuk
7504fa065b
FileChooser: In Linux FileChoosers, prefer to open files rather than directories if both are requested
Zenity and Kdialog only support opening either files or directories
during a single invocation.
3 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
009d685179
Updated all license headers
4 years ago
ed
d510b73cdf
Normalised all whitespace before args in std::function
5 years ago
Tom Poole
894e7d2bd2
Updated all license headers
5 years ago
Tom Poole
2d16374b14
Updated all license headers
5 years ago
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
5 years ago
ed
1a46fb3a5f
Minor whitespace tidying
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
ceea888507
Added an option to specify a parent component when creating a file chooser
6 years ago
jules
48a5fbd333
Another batch of ScopedPointer cleanups
7 years ago
Lukasz Kozakiewicz
5358756d58
FileChooser: misc fixes and improvements to iOS and Android file choosers.
7 years ago
hogliux
9e74c7ce6b
Clean-up the temporary file if the file chooser was canceled or failed
7 years ago
hogliux
df8fc9b910
FileChoosers: Added a file-chooser save mode where the caller already supplies a temporary file which should be saved. JUCE will automatically move the temporary file to the location selected by the user
7 years ago
hogliux
7e23bf28ae
Added iOS/Android native file chooser support and support for asynchronous invocation of file choosers
7 years ago
jules
eda613c6db
Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools
7 years ago
hogliux
b5afccc37c
Updated file headers and the README with the JUCE 5 license
8 years ago
jules
b6d78f882c
Avoided an analyser warning on iOS
8 years ago
hogliux
9629de32bb
Add treatFilePackagesAsDirectories flag to native FileChooser
9 years ago
hogliux
c7b8e77031
Update copyright notice
9 years ago
jules
8b3935f121
Added support for extra info panels in OSX native file choosers.
10 years ago
jules
042d9f22fc
Various changes to improve the behaviour of kiosk mode for DocumentWindows on win32.
11 years ago
jules
03c2801f3f
Copyright header update in all module files. juce_core modules are now ISC licensed. All other modules are GPLv2/3/AGPLv3
12 years ago
jules
e10dfff1af
Cleaned up some FileChooser code, and added a new method showDialog()
12 years ago
jules
56bbab1537
(automated whitespace clean-up)
13 years ago
jules
295d125142
Stopped using the old BEGIN_JUCE_NAMESPACE macros, and just used hard-coded namespaces where necessary instead. The macro definitions are still there, so this shouldn't affect anyone's code.
13 years ago
jules
fce514266e
Refactored the linux Freetype font code and native file chooser (via zenity).
13 years ago
Julian Storer
b70e0a28d2
First check-in of the "jucequake": a major re-organisation of the library to break it up into modules. For more details about this, see the website forum..
13 years ago
Julian Storer
67e22bbb56
Added selection to treeview persistent state. Minor optimisations to AudioThumbnail. Added FTP password support for win32 networking. Cleaned up some file dependencies and altered some return value types to allow better c++0x forwarding behaviour.
14 years ago
Julian Storer
46c3a6bbe5
CustomTypeface unicode fix. Misc nullptr additions.
14 years ago
Julian Storer
f04309f44a
Added fake placeholder versions of the new c++0x 'noexcept' and 'nullptr' keywords, and altered the library classes to use these instead of 'throw()' and '0'. This shouldn't make any difference at all to existing code, but will enable better static checking with future c++0x compilers.
14 years ago
Julian Storer
5d98779f19
Updated the date in the copyright notice.
14 years ago
Julian Storer
60e3ff8f5a
Android development and modal loop elimination.
14 years ago
Julian Storer
2d10b0b43d
Changes and additions to provide alternatives to modal-loop functionality (Android can't run modal loops). New class ModalCallbackFunction providing quick objects for making callbacks to static functions. Changes to remove modal loops from most of the internal library classes. Added new methods to PopupMenu to provide easier async callbacks, and also a cleaner way of specifying options when showing a menu. Fix for PNG decoding of corrupted image files.
14 years ago
Julian Storer
2bb0c77216
New class: WeakReference. Used this to clean up and simplify implementation of Component::SafePointer and BailOutChecker.
14 years ago
Julian Storer
b56494b29b
Replaced the old atomic ops with a templated Atomic class. Minor tweaks to directory browser. Jucer development.
15 years ago
Julian Storer
27506c2120
Copyright notice update.
15 years ago
Julian Storer
841a6665bd
Minor string literal tidy-ups.
15 years ago
Julian Storer
5fecb8a353
Created a new class Component::SafePointer that keeps a pointer to a component and automatically nulls it if the component is deleted - this makes it a much more elegant replacement for the old ComponentDeletionWatcher class. Removed Component::getComponentUnderMouse(), which doesn't fit with multi-touch interfaces - for similar functionality, use the Desktop::getMouseInputSource() methods to find out what MouseInputSources are available, and ask them about the component they are over or dragging.
15 years ago
Julian Storer
773c7d7407
Changed all uses of OwnedArray<File> to be Array<File> instead, which is a bit more efficient and easier to work with. Optimised the software renderer to improve most drawing operations, particularly simple shapes filling like drawing lines, etc.
15 years ago
Julian Storer
c22c06c80c
New class: ScopedPointer, which auto-releases a pointer when it goes out of scope. I've used this extensively to replace a lot of pointer deletions with more RAII-style patterns.
15 years ago
Julian Storer
1f6d9ec92c
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.
15 years ago
Julian Storer
71a12a140e
Improved CoreGraphics clipping. Added a method File::revealToUser(). Added obj-c keywords to the c++ tokeniser. Added a new mode to the file chooser (only implemented on mac so far)
15 years ago
Julian Storer
1fc8f483e2
Tweaked lots of code to help things compile on the iPhone (still work-in-progress).
15 years ago
jules
4d16424d9c
Rearranged the layout of the source tree, giving it a slightly flatter directory structure. Also fixed a small bug with DragAndDropComponents that was stopping the toolbar customisation working properly.
15 years ago
jules
eb32240e95
Updated the text of the copyright/license blurb at the top of each source file.
15 years ago
jules
4c1b6ce430
Added method String::containsNonWhitespaceChars(); changed the XML parser to not strip whitespace from around text elements, and also added XmlDocument::setEmptyTextElementsIgnored() to make it optionally keep all whitespace-only text elements. Added methods File::containsSubDirectories(), WebBrowserComponent::refresh(), TreeView::deleteRootItem(). Ironed out a possible bug with buttons crashing when deleted during a keypress callback. Changed pixel ordering to sort out transparent windows on PPC macs. Also fixed a mac AU build problem, and removed a couple of gcc warnings.
16 years ago
jules
15dfdff5f8
(automatic tidy-up of whitespace)
18 years ago