reuk
3084a23547
PopupMenu: Improve accessibility of custom components in menus
The 'wrapper' accessibility handler is now ignored if a menu item has a
custom component, and has no submenu, and cannot be triggered
automatically. This avoids the case where a custom menu item may end up
with a wrapper accessibility handler that has no useful actions.
This patch also adds a 'label' argument to the addCustomItem functions,
which allows text for the screen reader to be supplied in the case where
a custom component is in use, but the menu item has accessibility
actions.
3 years ago
Tom Poole
48a7274b08
PopupMenu: Update the example docs
3 years ago
ed
4727084838
PopupMenu: Store Options::targetComponent and ::parentComponent in WeakReferences to allow for deletion checks
3 years ago
ed
b9542ccc4c
Update code to use C++14 [[deprecated]] attribute
This commit removes the various compiler-specific JUCE_DEPRECATED macros and replaces them with C++14's deprecated attribute. It also removes the JUCE_CATCH_DEPRECATED_CODE_MISUSE flag as we can rely on the override specifier catching usage of these old virtual methods, and tidies up the DOXYGEN preprocessor checks as they were inconsistent across the codebase.
3 years ago
reuk
ab966fb499
PopupMenu: Add withMousePosition helper function to Options
3 years ago
reuk
c3276f436d
PopupMenu: Add some documentation to the Options class
3 years ago
reuk
37781916e5
PopupMenu: Fix documentation typo
3 years ago
Tom Poole
fe4ba9071b
Set the default value of JUCE_MODAL_LOOPS_PERMITTED to 0
See BREAKING-CHANGES.txt for more details.
3 years ago
reuk
d62d3aaa4f
PopupMenu: Add option to specify initially-selected menu item
4 years ago
ed
ad38182530
Added checks for DOXYGEN #define when excluding modal methods in headers
4 years ago
reuk
f61447fd01
PopupMenu: Allow manual column breaking
4 years ago
reuk
d4450ad8ae
PopupMenu: Add LookAndFeelMethods for drawing column separators
4 years ago
reuk
f04e11c4bb
PopupMenu: Allow theming of popup menu background based on Options
Adds a new `drawPopupMenuBackgroundForOption` member function to
`PopupMenu::LookAndFeelMethods`. By default this will pass through
to `drawPopupMenuBackground`, but it can be overridden in cases
where the background appearance depends on the current `Options`.
5 years ago
ed
009d685179
Updated all license headers
4 years ago
ed
d510b73cdf
Normalised all whitespace before args in std::function
5 years ago
Tom Poole
894e7d2bd2
Updated all license headers
5 years ago
Tom Poole
2d16374b14
Updated all license headers
5 years ago
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
5 years ago
ed
baebb9d1b5
Fixed a dangling pointer deletion when moving PopupMenu submenus
5 years ago
ed
a54da0b832
Fixed some more typos
5 years ago
ed
e18f6da884
Added setImage() builder methods to PopupMenu::Item
5 years ago
reuk
635e070cba
Added method PopupMenu::CustomComponent::getItem() to give them access to item details
5 years ago
reuk
76f3aec386
PopupMenu: Pass unique_ptr rather than raw pointers to convey ownership semantics
5 years ago
Tom Poole
79d3e8b3f5
Windows: Removed some VS2013 workarounds
5 years ago
jules
69c3474012
Added method PopupMenu::Options::withDeletionCheck() to help avoid dangling pointers when triggering async menus
5 years ago
jules
cd4aba9e43
PopupMenu modernisation: Improved the PopupMenu::Item class to make it easy to build items by chaining calls together.
5 years ago
jules
0367d5c3a9
Added some PopupMenu::addItem overloads which let you attach a lambda callback to be invoked for a menu item.
5 years ago
jules
a97c4a9139
More std::unique_ptr modernisation - changed functions that used to return raw Drawable* pointers to use it
6 years ago
ed
a234721110
Added various clang-tidy modernize-* fixes
6 years ago
Tom Poole
ab863a6dc2
Replaced all usage of ScopedPointer with std::unique_ptr
7 years ago
ed
cdbc28c18b
Add documentation tags
7 years ago
Tom Poole
ff474962fd
Added an option to set a preferred popup direction
7 years ago
ed
9046453701
Added a showMenuAsync() method to PopupMenu that takes a std::function
7 years ago
jules
9e356135a1
Added a minimum number of columns option to the PopupMenu, and did a bit of internal modernising on the class's internals
7 years ago
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
7 years ago
ed
b7a7563a59
Added a virtual getPopupMenuBorderSize() to PopupMenu::LookAndFeelMethods
7 years ago
hogliux
2fbbb59fef
PopupMenu: Minor documentation fix
7 years ago
hogliux
2483c80529
Scale PopupMenus with the AffineTransform and scaling factor of their target components (see BREAKING-CHANGES.txt)
7 years ago
hogliux
b5afccc37c
Updated file headers and the README with the JUCE 5 license
8 years ago
hogliux
2da1bc5f41
Replace include guards with "#pragma once"
8 years ago
hogliux
9f3fb1c0a6
Added a compiler error if your compiler is too old and removed numerous code checks for old compilers which are now deprecated
8 years ago
hogliux
00c0671c6b
Added sub-menu support to ComboBoxes
8 years ago
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.
8 years ago
jules
151e3f769e
Added a LookAndFeel method preparePopupMenuWindow() to allow the window component to be customised before being displayed
8 years ago
hogliux
26b6f01ce3
Replace all "zeros" with "nullptr" in code documentation when referring to a pointer value
8 years ago
jules
a700774d6f
Tidied up a comment
8 years ago
jules
ed67e40b8d
Added a customisable callback object to PopupMenu
8 years ago
hogliux
ac9973f185
Add support for creating popup menus inside parent components
9 years ago
jules
e04ebc8929
Added missing JUCE_API
9 years ago
jules
6f8b9205a5
Added a shortcut key description field to PopupMenu::Item
9 years ago