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

61 commits

Author SHA1 Message Date
jules
2dc9316420 Misc ScopedPointer changes to start using reset() and get() rather than assignments and casts (part of an ongoing drift towards more std::unique_ptr compatibility) 2017-11-01 17:41:06 +00:00
ed
5d8d37eb87 Added support for multi-touch drag and drop 2017-10-04 15:52:31 +01:00
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 2017-09-08 08:59:55 +01:00
tpoole
8aca5604eb Fixed a VS2013 compiler error 2017-09-07 10:31:23 +01:00
jules
b653e838d0 Tweaked the order in which properties are set when TreeViewItems are added, and did some internal modernisation of the TreeView classes 2017-08-10 11:13:01 +01:00
hogliux
b5afccc37c Updated file headers and the README with the JUCE 5 license 2017-04-27 14:43:04 +01:00
ed
79885fc6ad Force TreeView to recalculate its size after restoring item openness in TreeView::restoreOpennessState() so that its Viewport scroll position is restored correctly 2017-04-26 10:48:59 +01:00
jules
60e9231fb1 Removed need for std::function in order to use MessageManager::callAsync(). Used it to modernise a few bits of old code. 2017-03-29 15:31:41 +01:00
jules
8ed41ed14b Fixed some whitespace style and cleaned up some code using C++11 2017-03-27 13:06:42 +01:00
ed
479390c689 Try to use TreeView background colour when painting open/close button in TreeViewItem::paintRecursively() instead of always using white 2017-03-20 16:40:21 +00:00
tpoole
b24aadcc72 Added ColourIds to allow alternate colouring of TreeViewItems 2016-10-03 16:12:30 +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
ed
9276540e7d Fix to avoid negative width assertion when drawing fitted text in very deep TreeView file trees. 2016-09-05 17:35:09 +01:00
hogliux
0a4b2ae3b6 Return parent row number if any of the tree view item's paraents are closed 2016-07-05 16:27:51 +01:00
jules
02492b36b9 Lots of small whitespace tweaks. 2015-12-13 19:32:05 +00:00
jules
cf90b59e9f Added ownerViewChanged callback to TreeView 2015-08-20 09:52:21 +01:00
jules
c90467d6e1 Added set/getOpenness() methods to TreeView 2015-08-19 11:43:58 +01:00
hogliux
c7b8e77031 Update copyright notice 2015-07-22 15:59:34 +01:00
hogliux
5265bbf81e Add optional setDrawsInRightMargin to disable clipping of right edge of TreeViewItems 2015-07-20 15:05:58 +01:00
jules
e17c26ed03 Minor fix for treeview dragging insert position. 2015-02-18 11:33:15 +00:00
jules
2a120a0f72 Fix for treeview indent X positions when dragged off the bottom. 2015-02-16 14:54:58 +00:00
jules
60ccdf8bf2 Made the TreeView handle dragging and dropping to the area below the tree. 2015-02-16 09:59:53 +00:00
jules
40ba90b19f Fixed some escaping of slash characters in TreeViewItem identifier strings. 2014-09-26 09:34:03 +01:00
jules
6c61dbb68e Refactored the internal mouse-handling code to use floating point coords. This shouldn't affect much user code, but a few methods in MouseInputSource have now changed to use Point<float> rather than Point<int>. 2014-06-14 13:06:53 +01:00
jules
00aa1df346 TreeViewItem::setSelected() - avoided deselecting items before re-selecting them if they're already selected. 2014-02-28 19:28:08 +00:00
jules
a316bd5f6f Removed a few more places where static objects could cause problems for people who do unwise amounts of work in their static constructors. 2013-12-02 09:44:17 +00:00
jules
aa408bd982 Avoided TreeView consuming return key presses if the selected item can't be opened. 2013-11-11 14:50:17 +00:00
jules
bea7b83cb8 Renamed and refactored the LookAndFeel classes. The LookAndFeel class is now an abstract base-class, and there are 3 concrete subclasses you can use. These are LookAndFeel_V1 (replaces OldSchoolLookAndFeel), LookAndFeel_V2 (replaces what was the normal LookAndFeel class) and LookAndFeel_V3 (this is a new style, taken from the Introjucer's L+F). 2013-10-27 22:02:21 +00:00
jules
56ec1d1400 Added a colour ID TreeView::selectedItemBackgroundColourId, and changed the TreeView to fill selected items with this. (The colour is set to transparent by default so this won't affect existing code).
Updated the LookAndFeel::drawTreeviewPlusMinusBox and TreeViewItem::paintOpenCloseButton methods to provide more flexibility.
2013-10-27 12:49:17 +00:00
jules
61ed92ee51 Added a method XmlElement::prependChildElement(), and used this for a few optimisations. 2013-10-25 12:52:19 +01:00
jules
be1d5253ee Moved some mouse code out of Desktop class. Made the MouseInputSource class pass-by-value. 2013-09-03 10:44:55 +01:00
jules
b3fd5cb8a3 Added iterator access to Desktop's list of mouse sources. 2013-09-02 22:06:10 +01:00
jules
4fc8fbaef1 Added some more override decorators. 2013-07-10 10:22:33 +01:00
jules
c75a7300f5 Added some 'override' modifiers to overridden methods. 2013-06-23 23:09:52 +01:00
jules
e49f40ac05 Made Atomic constructor explicit. Cleared TreeViewItem parent pointers when they are removed. 2013-06-18 17:38:56 +01:00
jules
01e3e4c40c Fixed some coverity warnings. 2013-06-17 22:10:57 +01:00
jules
03c2801f3f Copyright header update in all module files. juce_core modules are now ISC licensed. All other modules are GPLv2/3/AGPLv3 2013-06-13 13:17:12 +01:00
jules
c7506df13f Changed some pass-by-references to pass-by-value to improve compiler optimisation. 2013-05-22 23:05:53 -06:00
jules
152d91fa9e Prevented TreeViews from responding to mouse clicks when they're disabled. 2013-03-18 21:13:07 +00:00
jules
e543949bda Minor clean-ups. 2013-01-05 20:07:22 +00:00
jules
5d35a31f2e Minor clean-ups and documentation fixes. 2012-12-20 21:26:12 +00:00
jules
0ceeb573d8 Minor changes to avoid pedantic compiler warnings. 2012-12-04 21:39:15 +00:00
jules
5ed768e953 New enum: NotificationType, to indicate whether to send a change message or not (and whether it should be async). Updates to ListBox, TreeView and Slider methods to use this type instead of bools. 2012-10-18 13:53:02 +01:00
jules
5d7622ade5 Added methods TreeViewItem::sortSubItems() and PopupMenu::MenuItemIterator::addItemTo(). 2012-09-30 13:39:50 +01:00
jules
770d1ccd49 Added method TreeView::moveSelectedRow. 2012-09-20 12:26:53 +01:00
jules
18977ebd44 Optimised TreeView openness XML generation, avoiding redundant state data about tree items that are in their default state. 2012-08-09 14:55:02 +01:00
jules
c632856c88 TreeViewItem: added virtual methods for customising the connecting lines. 2012-08-03 12:39:50 +01:00
jules
2329cfa286 Made the KeyPress (int) constructor explicit, and tightened up the way keypresses are handled by various classes. 2012-07-13 14:50:10 +01:00
jules
df729be74a Cleaned-up class inheritance visibilities and encapsulation for some internal classes. 2012-07-12 14:10:46 +01:00
jules
25e7361f2c Refactored some TreeView key handling. Introjucer: now restores the last set of open documents for a project. 2012-07-08 15:05:55 +01:00