1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00
Commit graph

115 commits

Author SHA1 Message Date
hogliux
b5afccc37c Updated file headers and the README with the JUCE 5 license 2017-04-27 14:43:04 +01:00
jules
fbee2788ee Made File::appendText return false if the write failed 2017-04-07 11:24:35 +01:00
jules
44cd80969d A few C++11 modernisations and comment corrections 2017-03-28 12:31:51 +01:00
jules
8ed41ed14b Fixed some whitespace style and cleaned up some code using C++11 2017-03-27 13:06:42 +01:00
jules
d3bb833f0e Made File::getRelativePathFrom() return '.' if comparing two identical folders. 2017-03-06 15:02:24 +00:00
jules
c04c9ee56e Added a sanity check on the value returned by DirectoryIterator::getEstimatedProgress() 2017-02-23 16:50:52 +00:00
Felipe F. Tonello
c2100022cc Added several linux improvements to the event loop, MIDI and X11 (see commit messsage)
MIDI: Several ALSA Seq improvements
===================================

Many things were done in this patch (I couldn't really split in several
patches):
 * Only one ALSA Sequencer client per application
 * ALSA Sequencer client name is the application's name by default
 * Fixed a bug when getDeivces() would return devices created by the
   application itself
 * Only ports created with createNewDevice() are allowed to be subscribed,
   other ports (created by openDevice()) doesn't allow subscription
 * AlsaPort is now handled by AlsaClient, basically having the proper
 representation such as the ALSA Sequencer has.

Files: Fix default directory paths
==================================

Some information on:
* Linux LSB FHS:
  http://www.linuxfoundation.org/collaborate/workgroups/lsb/fhs-30
* https://wiki.archlinux.org/index.php/Xdg_user_directories

Refactor Event loop to remove X11 dependency
============================================

The goal of this refactor was to remove X11 dependencies on juce_events
to enable non-gui applications (example, Embedded Linux apps) to have no
libx11 dependency.

The side-effect of this refactor is easy implementation of other Linux
graphical back-end, cleanup some code, better handling of X displays and
other benefits.

I removed a lot of the code from juce_linux_Windowing to separate files
for clarity. I also renamed all Linux X11 files to *linux_X11* instead of
just *linux*.

X11: Remove unnecessary XGrabButton call
========================================

This call is made unnecessary if used proper window flags when a window
is created.
2017-02-13 17:14:34 +00:00
hogliux
2da1bc5f41 Replace include guards with "#pragma once" 2017-02-01 17:18:07 +00:00
hogliux
9f3fb1c0a6 Added a compiler error if your compiler is too old and removed numerous code checks for old compilers which are now deprecated 2017-02-01 17:18:06 +00:00
jules
d4b47809a1 Fixed some spelling mistakes in comments 2017-01-01 11:59:39 +00:00
jules
9e0370c9b7 Made sure the File::getNonexistentChildFile() method's putNumbersInBrackets is used when the name already ends in a digit 2016-12-30 11:39:09 +00:00
tpoole
2e84129479 Updated the juce_audio_basics, juce_audio_devices, juce_blocks_basics, juce_core and juce_events modules to a new ISC license 2016-12-14 10:07:26 +00:00
ed
fb08261013 Fixed VS2013 warning in File::NaturalFileComparator struct 2016-12-06 14:28:38 +00:00
ed
a0ed11ebee Made File::NaturalFileComparator::compareElements() method const 2016-12-05 14:09:07 +00:00
ed
e93eee0eb1 Added NaturalFileComparator struct to File. Reverted File::compareFilenames method to old behaviour. 2016-12-05 12:03:44 +00:00
ed
d6fc589b6d Reverted File::compareFilenames() method to not compare filenames naturally and added an optional argument to use a natural comparison 2016-12-02 16:18:15 +00:00
ed
2f5b8e5f9f Changed File::compareFilenames() method to use String::compareNatural() and added argument to String::compareNatural() for case sensitivity 2016-11-25 12:41:19 +00:00
hogliux
bfd5605dda Added comments to specify what File::create vs. FileOutputStream() will do when the parent directoy of the file does not exist 2016-11-07 17:42:11 +00:00
tpoole
278505913c Restored non-flushing behaviour of FileOutputStream 2016-09-30 15:24:46 +01:00
tpoole
495e2bfd56 Fixed file flushing for FileOutputStream on Windows 2016-09-29 11:39:11 +01:00
jules
9fa0d49be7 Added an option JUCE_ALLOW_STATIC_NULL_VARIABLES that can be used to turn off dangerous statics like String::empty, var::null, etc. 2016-09-16 12:03:02 +01:00
stefan
8ec9443543 Projucer various fixes
* Use separate folder for disk cache in debug mode to avoid mixing debug/release-mode object files while testing
* Quote the server's file name as it may contain spaces etc.
* Fix saving source files during compilation on Windows
* Fix JuceDemo for live builds on Mac: long chains of recursive operator<< invocations caused compiler crash
* Move code for creating disabled Build tab to extra function and add names to improve readability
* Implement new "subscribe" behavior for createDisabledBuildTab
* Clean up trailing spaces
2016-09-15 17:13:41 +02:00
hogliux
ec9c033cdf Add exclusive flag to MemoryMappedFile 2016-08-09 09:23:06 +01:00
jules
16913f2cd6 Added a unit test 2016-06-23 11:46:03 +01:00
jules
69a7506274 Made File remove any redundant "/./" subfolders of paths that it is given 2016-06-23 11:38:35 +01:00
Timur Doumler
fc69dc00db Changed addIfNotAlreadyThere method of all array classes to return a bool, indicating whether the object was added or not. 2016-06-08 20:42:19 +01:00
jules
eca3a5b232 Fixed a typo in a comment 2016-02-17 14:42:15 +00:00
jules
28a322138d Added method Desktop::isOSXDarkModeActive() 2016-02-03 11:30:55 +00:00
jules
e86417b60f Added some more File unit tests, and fixed a parsing problem with dot-prefixed filenames 2016-02-03 10:43:15 +00:00
jules
bbee942645 Made File::getChildFile handle paths containing double-slashes 2016-01-28 10:58:52 +00:00
jules
db09156251 Added a couple of missing 'override's 2016-01-20 08:18:42 -08:00
jules
f6dd015999 The File class will now canonicalise the paths that it is given, to remove ellipsis 2016-01-11 14:59:30 +00:00
jules
02492b36b9 Lots of small whitespace tweaks. 2015-12-13 19:32:05 +00:00
jules
41c2e8ea26 Minor documentation correction in File. 2015-12-07 14:21:02 +00:00
Joshua Gerrard
e220f35250 Fixed compilation errors on MinGW 2015-11-23 12:35:05 +00:00
jules
810f2bfb2a Introjucer: Added Android Studio exporter 2015-11-02 16:13:46 +00:00
jules
8602b8b172 Minor spelling correction 2015-10-14 09:31:46 +01:00
jules
88ca15e6f2 Added override specifiers to unit test classes 2015-08-10 16:21:16 +01:00
hogliux
c7b8e77031 Update copyright notice 2015-07-22 15:59:34 +01:00
jules
58105cde57 Fix for File::isDirectory on posix when given a File::nonexistent. Also added unit tests for this. 2015-06-01 12:28:02 +01:00
jules
f6395d4cda Raised the warnings level in the introjucer, and fixed a few warnings that were thrown up by this. 2015-03-31 11:44:10 +01:00
jules
c5d9600fa1 Added comment to a file method. 2015-01-17 13:29:26 +00:00
jules
73d2d1469b Avoided some recursion in DirectoryIterator which could cause stack overflows in large filesystems 2014-11-15 17:17:44 +00:00
jules
9c884f79d3 Added method File::setExecutePermission() 2014-11-12 15:01:34 +00:00
jules
7a7f7814fb Moved the new MountedVolumeListChangeDetector into the juce_events module to avoid some win32 problems. 2014-10-26 19:36:54 +00:00
jules
74571aba11 New class: MountedVolumeListChangeDetector 2014-10-26 17:39:49 +00:00
jules
2fd89b0ac4 A few minor clean-ups. 2014-08-26 10:17:40 +01:00
jules
fe61c37d93 Updated the return types of OutputStream::writeFromInputStream and InputStream::readIntoMemoryBlock 2014-08-11 09:44:14 +01:00
jules
ae0383c7db Added a win32-specific flag File::windowsSystemDirectory 2014-07-08 14:05:55 +01:00
jules
d8180f7ba5 Tweaked FileInputStream::setPosition to make sure it returns false when trying to seek beyond the limits of the file. 2014-05-24 18:36:17 +01:00