reuk
f61447fd01
PopupMenu: Allow manual column breaking
4 years ago
reuk
d4450ad8ae
PopupMenu: Add LookAndFeelMethods for drawing column separators
5 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.
6 years ago
jules
0367d5c3a9
Added some PopupMenu::addItem overloads which let you attach a lambda callback to be invoked for a menu item.
6 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)
8 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
jules
e5fd6d6e01
Simplification/refactoring of the PopupMenu class by adding a subclass PopupMenu::Item which holds all the info about an item. You can now use this for more control over adding items and the PopupMenu::MenuItemIterator uses it to return info about existing items.
9 years ago
jules
6f19816cf4
Added another PopupMenu::addItem method for coloured items with drawables
9 years ago
jules
622add3dc9
Made the PopupMenu keep a weak reference to its LookAndFeel, so that it'll avoid crashing in situations where the L+F is deleted while the menu is still on-screen.
9 years ago
Timur Doumler
0838edd138
Tidied up order of declarations in juce_PopupMenu.h.
9 years ago
Timur Doumler
db078f194d
PopupMenu: added option to include an iconToUse to addCommandItem.
9 years ago
hogliux
c7b8e77031
Update copyright notice
9 years ago
jules
43d4c1ea2f
Added LookAndFeel method drawPopupMenuSectionHeader()
10 years ago
jules
28dbc839b1
Refactored LookAndFeel::drawPopupMenuItem() and some PopupMenu methods to allow menus to use Drawables for their icons as well as just Images.
11 years ago
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).
11 years ago
jules
98f17ab4dc
A few tweaks to support the MSVC DLL build.
11 years ago