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

115 commits

Author SHA1 Message Date
Julian Storer
1e1e4ae848 Removed the ComponentDeletionWatcher class - use Component::SafePointer or Component::BailOutChecker instead. 2010-03-08 19:22:48 +00:00
Julian Storer
28518aa834 Tweaked some component methods. Added function call types for some operators for compatibility with RTAS build. 2010-03-08 18:16:24 +00:00
Julian Storer
8b7f38f30c Minor fixes. 2010-03-07 22:25:25 +00:00
Julian Storer
2676bb02f2 Added ListenerList class and changed some components to use it for their listener dispatching. Sorted out bug in popup menus and win32 mouse wheel. 2010-03-07 17:45:10 +00:00
Julian Storer
b974203d0f Couple of new methods for String. Cleaned up some component code to use SafePointers. 2010-03-07 13:01:33 +00:00
Julian Storer
c9c8824294 More mouse input refactoring. 2010-02-26 16:10:48 +00:00
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. 2010-02-25 22:33:44 +00:00
Julian Storer
bc5a7a6b7e Updated VC6 project. Removed some unsafe templated casts from MemoryBlock and HeapBlock. 2010-02-25 18:31:06 +00:00
Julian Storer
84a8695561 Moved cursor update and unbounded mouse movement handling code into MouseInputSource. 2010-02-25 10:08:00 +00:00
Julian Storer
187173da62 New class MouseInputSource. 2010-02-24 13:20:02 +00:00
Julian Storer
9657241c10 Internal refactoring of mouse-event classes, as the first step towards multi-touch support. 2010-02-24 13:19:10 +00:00
Julian Storer
80afd8aee7 Compiler fixes for String and var. Fix for TextEditor redraw problems. 2010-02-24 11:27:57 +00:00
Julian Storer
bb60371f1c Couple of minor fixes. 2010-02-24 09:11:04 +00:00
Julian Storer
1fc2a55d82 Minor code clean-ups. 2010-02-22 15:32:26 +00:00
Julian Storer
08eb852103 Minor code clean-ups. 2010-02-22 15:28:18 +00:00
Julian Storer
6b79430341 Refactored some String operators to bring them into line with c++ best practices. Removed the JUCE_STRINGS_ARE_UNICODE flag - all strings are now unicode by default. Removed the String class's implicit cast to const char* and copyToBuffer() method, replacing them with toCString(), toUTF8(), copyToCString(), copyToUnicode(), etc., so that it'll force users to think about the encoding they want to use in a particular context. Added the ability to pass a String directly to a std::ostream. Extended the juce version number to include a build number. 2010-02-21 19:04:41 +00:00
Julian Storer
038886510a Tidied a few static functions away into private namespaces. 2010-02-20 18:57:36 +00:00
Julian Storer
b86423193e Minor clean-ups. 2010-02-20 16:07:36 +00:00
Julian Storer
39b583fe1e Modernised some old code. 2010-02-20 15:27:48 +00:00
Julian Storer
8820020213 Added support for extended character input on the mac. Added a few methods to Rectangle and Range. 2010-02-18 16:49:30 +00:00
Julian Storer
d8e16ccc06 Converted some internal ComponentPeer methods to use Point and Rectangle rather than raw ints. 2010-02-17 10:12:46 +00:00
Julian Storer
06c63c63aa Changed some methods that were using (x, y) parameters to use Point objects instead. 2010-02-16 18:31:44 +00:00
Julian Storer
f97cf1aaa5 Fix for win32 drag-and-drop. 2010-02-16 12:03:14 +00:00
Julian Storer
3057acf0b3 Fix for browser plugins using tabs in firefox 3.6. Minor CodeEditorComponent fix. 2010-02-15 13:31:41 +00:00
Julian Storer
fb7cf838db Created a new class "Range", for holding generic number ranges. New abstract class TextInputTarget, which defines methods common to text editors. Changed a couple of method definitions in TextEditor and CodeEditorComponent so that they could implement TextInputTarget. Added ability for wav files to save their SMPL chunk. 2010-02-12 17:38:39 +00:00
Julian Storer
cb00274427 Minor fixes for File::isAChildOf(), NPAPI window sizing, CodeDocument syntax parsing, and the amalgamated template file. 2010-02-11 11:07:03 +00:00
Julian Storer
ba572201dd Changed the ComponentBoundsConstrainer to use Rectangles in its method parameters. Fixed some window repositioning problems with multiple monitors. 2010-02-09 18:39:52 +00:00
Julian Storer
bc41a46dab Fix for atomics in OSX10.4, and popup menus on unusual monitor arrangements. 2010-02-09 15:08:59 +00:00
Julian Storer
0d278483e4 Fix for String copying thread-safety, and some minor compile issues. 2010-02-08 16:23:01 +00:00
Julian Storer
7bc24ae42a The Point and Rectangle classes are now templated, so can be used for either float or int co-ordinates. This means that wherever you've used these classes, you'll need to replace them with Rectangle<int> or Point<float> in your code. A couple of methods in Path have changed to take advantage of the new ability. 2010-02-07 00:52:30 +00:00
Julian Storer
31a102008d Reduced the memory footprint of the array classes. 2010-02-06 09:16:20 +00:00
Julian Storer
ded4826413 Minor code tidy-ups. 2010-02-05 22:01:47 +00:00
Julian Storer
ca0dce68d5 Added methods to SystemStats to return the user's name. 2010-02-05 18:36:19 +00:00
Julian Storer
c1b2a69a93 Improved CodeEditor cursor behaviour. 2010-02-05 16:56:51 +00:00
Julian Storer
effe92f6e7 Fix for some MSVC compile problems and warnings. 2010-02-04 18:42:02 +00:00
Julian Storer
f7636fe1a3 Fix for CodeDocument when opening files with a blank line at the end. 2010-02-04 12:46:39 +00:00
Julian Storer
fe4a37ef49 Added a sort method to the TreeView class. 2010-02-03 23:03:38 +00:00
Julian Storer
22ecd45505 Code clean-ups. 2010-02-03 21:27:10 +00:00
Julian Storer
b2e5ef2bd6 Minor code modernisations. 2010-02-03 19:05:03 +00:00
Julian Storer
f3b46c9a2f Tweaked AlertWindow to allow custom components to be labelled with their name, and to be lined up along their left-hand edge with the other items. Added some mac keyboard handling to stop keys getting stuck. 2010-02-03 14:20:43 +00:00
Julian Storer
0282a89908 Fix for MSVC compile problem. 2010-02-01 16:51:38 +00:00
Julian Storer
2a56cadd67 Fix for a DocumentWindow internal class. Added a missing win32 library. Added scroll position to the PropertyPanel state xml. Small fix for compiling with latest iPhone SDK. 2010-01-31 11:53:27 +00:00
Julian Storer
63d3d8a77e New class: NamedValueSet, which is a simple container for named var objects. Removed the clunky get/setComponentProperty methods and replaced them a single method Component::getProperties(), which returns a NamedValueSet for that component - if you've used component properties in your code you might need to change your syntax, but this is a cleaner solution, and using var objects for the data is more powerful than the old, string-based implementation. Also fixed a Mac image rendering bug. 2010-01-29 10:31:12 +00:00
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. 2010-01-28 16:02:16 +00:00
Julian Storer
51c58839c1 Tightened up some old bits of code. Minor fix for MagnifierComponent on the mac. 2010-01-27 21:59:18 +00:00
Julian Storer
35a4b5085f Updated Timer code to avoid a rare messaging problem. Fixed a couple of minor build errors. Rearranged the atomic functions and added a new compare-and-swap operation. Added a thread-priority tweak to WASAPI. Removed MS-specific classes from the web browser component. 2010-01-27 20:28:38 +00:00
Julian Storer
6bf8b51c5a Added X-windows locking for all linux windowing, and added a class ScopedXLock to allow it to be done around client code as well. Misc fixes for mac menus, win32 WM_QUIT messages, MidiKeyboardComponent. Added text colour id to DirectoryContentsDisplayComponent. 2010-01-24 20:46:34 +00:00
Julian Storer
c539e8f5c0 Fix for mac window ordering that was causing drag and drop problems. Added a sanity-check to the text editor's undo transaction size. 2010-01-19 13:27:51 +00:00
Julian Storer
6a4e8f235c Minor fixes and warning removals for VC7. 2010-01-17 22:44:16 +00:00
Julian Storer
0744c0db37 New class: TemporaryFile, which manages a temporary file, deleting it when it goes out of scope. Also fixes for compile problems in VC7. 2010-01-16 17:51:48 +00:00