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

23 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
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
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
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
08eb852103 Minor code clean-ups. 2010-02-22 15:28:18 +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
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
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
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
e61e8f6775 Changed some 'int's to 'size_t's, to improve 64-bit compatibility. Also changed jmin and jmax to use templates, so they can take any type. These changes might mean that you'll need to add some more explicit casts to get your existing code to compile, but this is actually a good thing - it brought to light a few dodgy implicit casts in my code, and may do the same in yours. Also added a function roundToInt(), which replaces roundDoubleToInt() and roundFloatToInt(), but takes any size of floating point number (I've left the old roundDoubleToInt() and roundFloatToInt() functions there for convenience, but will probably remove them in the future). 2010-01-14 14:49:25 +00:00
Julian Storer
97035bb3a1 Removed the (rather pointless) granularity value from the array objects. Converted a few macros into functions and other misc code clean-ups. 2010-01-13 18:58:40 +00:00
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. 2010-01-02 23:01:18 +00:00
Julian Storer
a2183daee5 VC6 compatibility updates 2009-12-22 20:59:32 +00:00
Julian Storer
80753f4c03 Lots of minor changes to prevent warnings. Small fixes to Path, AudioThumbnail, ValueTree, OutputStreams. Tweaks to convert Drawables to/from ValueTrees. New method to write XML to a stream. 2009-12-16 21:13:46 +00:00
Julian Storer
03b54862c5 Fixed a type in AudioSampleBuffer::copyFrom. Added a LookAndFeel::getMouseCursorFor method. Added a parameter to MidiMessage::isNoteOff 2009-12-09 15:44:27 +00:00
Julian Storer
d779fa9759 The first working check-in of an iPhone build! Added an iPhone project for the normal juce demo, which runs.. although it isn't exactly designed for a hand-held form factor!
Also in this check-in is support for creation of custom Mac MIDI input and output devices, and an option to load URLs with the QuickTimeComponent
2009-11-13 16:17:22 +00:00
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. 2009-08-22 21:57:23 +00:00
Renamed from src/juce_appframework/gui/components/juce_Component.cpp (Browse further)