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

53 commits

Author SHA1 Message Date
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
jules
50313a1b86 Fixed a positioning problem when dragging-and-dropping. 2012-06-27 21:20:33 +01:00
jules
b39851e892 Fix for TreeView::findItemFromIdentifierString() 2012-06-25 11:24:21 +01:00
jules
04401e7f3e Tidied up an assertion when using empty treeviews. 2012-06-24 10:12:59 +01:00
jules
1f95f54089 Purged some warnings. 2012-04-10 10:29:14 +01:00
jules
bdd778332d Removed some unused android code. Refactored some messaging code. 2012-03-25 20:09:57 +01:00
jules
56bbab1537 (automated whitespace clean-up) 2012-03-20 16:00:06 +00:00
jules
d12fa83a7e TreeView key navigation fix. 2012-02-13 21:24:38 +00:00
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. 2012-02-11 14:09:23 +00:00