reuk
90abc8c1c5
PopupMenu: Clarify behaviour of withItemThatMustBeVisible() in docs
2025-09-01 23:33:42 +01:00
Anthony Nicholls
36d07a6ce3
Docs: Replace doxygen preprocessor conditionals with @cond and @endconds
2025-07-21 18:11:43 +02:00
Oliver James
98e21c6ad8
PopupMenu: Move section header size calculation into LookAndFeel methods.
...
This fixes a bug introduced in the previous commit that caused all menu items to be sized too large.
2024-12-19 21:51:40 +00:00
Tom Poole
94d98a2b10
Update licensing information
2024-04-16 11:39:35 +01:00
reuk
903c77b977
PopupMenu: Add accessor for top-level target component to Options class
...
This allows the LookAndFeel of submenus to query the target component
used for the top-level menu. getTargetComponent() isn't suitable for
this because the target component is set to null for submenus, and this
behaviour can't be changed without potentially breaking code that relies
on the current behaviour.
2023-11-29 13:50:39 +00:00
reuk
8b8ae10059
Build: Replace JUCE_NODISCARD with [[nodiscard]]
2022-09-12 16:14:57 +01:00
Tom Poole
2ec861d99e
Update licensing banners to JUCE 7
2022-05-16 17:55:48 +01:00
Tom Poole
dea3fe60e4
Update copyright banners
2022-04-04 12:36:32 +01:00
reuk
b80927fc91
Nodiscard: Add to builder-pattern functions
2022-01-27 18:43:21 +00:00
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.
2022-01-10 22:15:20 +00:00
Tom Poole
48a7274b08
PopupMenu: Update the example docs
2022-01-10 15:32:13 +00:00
ed
4727084838
PopupMenu: Store Options::targetComponent and ::parentComponent in WeakReferences to allow for deletion checks
2021-10-29 14:04:40 +01:00
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.
2021-09-29 16:14:00 +01:00
reuk
ab966fb499
PopupMenu: Add withMousePosition helper function to Options
2021-09-28 11:31:48 +01:00
reuk
c3276f436d
PopupMenu: Add some documentation to the Options class
2021-09-28 11:31:47 +01:00
reuk
37781916e5
PopupMenu: Fix documentation typo
2021-09-28 11:31:47 +01:00
Tom Poole
fe4ba9071b
Set the default value of JUCE_MODAL_LOOPS_PERMITTED to 0
...
See BREAKING-CHANGES.txt for more details.
2021-06-30 13:01:14 +01:00
reuk
d62d3aaa4f
PopupMenu: Add option to specify initially-selected menu item
2021-03-10 16:14:42 +00:00
ed
ad38182530
Added checks for DOXYGEN #define when excluding modal methods in headers
2021-02-05 14:17:19 +00:00
reuk
f61447fd01
PopupMenu: Allow manual column breaking
2020-10-26 17:04:49 +00:00
reuk
d4450ad8ae
PopupMenu: Add LookAndFeelMethods for drawing column separators
2020-10-26 17:04:49 +00:00
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`.
2020-10-26 17:04:49 +00:00
ed
009d685179
Updated all license headers
2020-06-29 08:30:22 +01:00
ed
d510b73cdf
Normalised all whitespace before args in std::function
2020-06-05 09:37:49 +01:00
Tom Poole
894e7d2bd2
Updated all license headers
2020-04-23 17:30:39 +01:00
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
2020-04-09 15:22:56 +01:00
ed
baebb9d1b5
Fixed a dangling pointer deletion when moving PopupMenu submenus
2020-02-20 12:42:52 +00:00
ed
a54da0b832
Fixed some more typos
2020-01-07 08:53:23 +00:00
ed
e18f6da884
Added setImage() builder methods to PopupMenu::Item
2019-11-29 09:56:05 +00:00
reuk
635e070cba
Added method PopupMenu::CustomComponent::getItem() to give them access to item details
2019-09-27 10:56:13 +01:00
reuk
76f3aec386
PopupMenu: Pass unique_ptr rather than raw pointers to convey ownership semantics
2019-08-08 17:15:46 +01:00
Tom Poole
79d3e8b3f5
Windows: Removed some VS2013 workarounds
2019-07-11 15:28:41 +01:00
jules
69c3474012
Added method PopupMenu::Options::withDeletionCheck() to help avoid dangling pointers when triggering async menus
2019-06-24 16:37:48 +01:00
jules
cd4aba9e43
PopupMenu modernisation: Improved the PopupMenu::Item class to make it easy to build items by chaining calls together.
2019-06-20 13:55:18 +01:00
jules
0367d5c3a9
Added some PopupMenu::addItem overloads which let you attach a lambda callback to be invoked for a menu item.
2019-06-19 11:39:28 +01:00
jules
a97c4a9139
More std::unique_ptr modernisation - changed functions that used to return raw Drawable* pointers to use it
2019-05-16 15:37:47 +01:00
ed
a234721110
Added various clang-tidy modernize-* fixes
2019-01-31 15:15:31 +00:00
Tom Poole
ab863a6dc2
Replaced all usage of ScopedPointer with std::unique_ptr
2018-04-19 20:27:47 +01:00
ed
cdbc28c18b
Add documentation tags
2018-03-15 12:10:32 +00:00
Tom Poole
ff474962fd
Added an option to set a preferred popup direction
2018-03-02 16:44:45 +00:00
ed
9046453701
Added a showMenuAsync() method to PopupMenu that takes a std::function
2018-01-08 10:17:32 +00:00
jules
9e356135a1
Added a minimum number of columns option to the PopupMenu, and did a bit of internal modernising on the class's internals
2017-09-20 10:32:18 +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
ed
b7a7563a59
Added a virtual getPopupMenuBorderSize() to PopupMenu::LookAndFeelMethods
2017-08-16 10:50:42 +01:00
hogliux
2fbbb59fef
PopupMenu: Minor documentation fix
2017-08-14 10:43:35 +01:00
hogliux
2483c80529
Scale PopupMenus with the AffineTransform and scaling factor of their target components (see BREAKING-CHANGES.txt)
2017-06-29 18:01:52 +01:00
hogliux
b5afccc37c
Updated file headers and the README with the JUCE 5 license
2017-04-27 14:43:04 +01:00
hogliux
2da1bc5f41
Replace include guards with "#pragma once"
2017-02-01 17:18:07 +00:00
hogliux
9f3fb1c0a6
Added a compiler error if your compiler is too old and removed numerous code checks for old compilers which are now deprecated
2017-02-01 17:18:06 +00:00
hogliux
00c0671c6b
Added sub-menu support to ComboBoxes
2016-11-21 16:36:32 +00:00