haiku/headers
John Scipione deaae5fc20 Deskbar: Persist ExpandoMenuBar
Add private BMenu::_SetMenuLayout() method. Set TExpandoMenuBar
as a friend class in BMenu to call this method. A little hacky,
but, this keeps SetMenuLayout() from being exposed as part of
the public API.

Don't destroy and rebuild the ExpandoMenuBar when switching from
horizontal to vertical mode. Instead build the TExpandoMenuBar
when the application starts and then switch it from B_ITEMS_IN_ROW
to B_ITEMS_IN_COLUMNS by using the newly added _SetMenuLayout()
method.

When we resize from vertical to horizontal, recalc the max
menu item widths, this resizes the application menu items so
that they take up the right amount of space.

Since we no longer destroy the menu bar we no longer have to
save whether menu items are expanded or not in a separate list.
Instead we can store that information in directly in
TExpandoMenuBar. This removes a lot of code.

Fixes #9350
2015-02-19 19:02:39 -05:00
..
build Forgot to fix LDBL_MIN... 2014-10-15 13:08:10 +02:00
compatibility Implement getifaddrs. 2015-01-16 13:10:57 +01:00
config ARM: Be aware of ARMEL and ARMEL 2014-01-01 23:41:02 -07:00
cpp Add a <limits> header for gcc2. 2014-11-27 12:14:39 +01:00
glibc Make public glibc header printf.h usable. 2013-07-17 18:07:56 +02:00
libs Outsource ncurses. 2014-12-18 10:18:39 +01:00
os Deskbar: Persist ExpandoMenuBar 2015-02-19 19:02:39 -05:00
posix stdint.h: use correct type for INT64_MAX (#11647) 2014-12-20 10:06:21 +01:00
private ViewPrivate.h: minor cleanup, no functional change. 2015-02-13 22:33:57 +01:00
tools Remove preprocessor checks from TestShell.h 2014-07-29 23:05:52 +02:00