haiku/headers/os
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
..
add-ons IMAP: downloading mails is now working. 2015-01-06 15:26:47 +01:00
app BRoster: added missing const in Launch() variant. 2015-01-28 16:12:18 +01:00
arch ARM: remove annoying #warning 2014-10-26 23:40:17 +01:00
be_apps Applied slightly reworked and updated patch from ticket #1576 2011-10-29 15:38:20 +00:00
bluetooth Fix more GCC4 narrowing conversion warnings. 2013-05-03 19:42:04 +02:00
device Revert r42812. As pointed by Michael, one can use 2011-10-24 21:02:14 +00:00
drivers fdt: humble beginnings of Flattened Device Tree 2014-10-31 11:14:05 +01:00
game Style fixes to the Game Kit, focus on docs 2014-06-11 16:44:48 -04:00
interface Deskbar: Persist ExpandoMenuBar 2015-02-19 19:02:39 -05:00
kernel kernel: Add more architecture code post-scheduler 2014-01-19 21:53:56 -06:00
locale Fix instanciate_catalog prototype 2015-01-17 17:02:40 +01:00
mail Major coding style cleanup. 2015-01-06 15:23:33 +01:00
media MediaKit: Extend media_[audio|video]_header structures. 2014-08-03 00:45:58 +02:00
midi BSynth/BSoftSynth: implemented GetAudio(). 2014-09-21 19:46:04 +02:00
midi2 style cleanup 2006-09-21 13:04:59 +00:00
net Revert "Move getifaddrs to libnetwork again." 2015-02-05 11:07:53 +01:00
package BSolver: Add SetDebugLevel() 2014-10-26 00:19:35 +02:00
storage BPathFinder: include StringList.h for convenience. 2015-02-02 22:13:51 +01:00
support BReferencable: implement const references with specialization 2015-01-27 10:31:08 +01:00
translation Actually sort the translator menu used in ShowImage. 2012-08-07 00:41:41 -04:00
AppKit.h added these master include files for better R5 compatibility when compiling 2002-10-23 13:48:14 +00:00
Be.h Patch by Jorma Karvonen: Add LocaleKit.h header and also add it to Be.h. Thanks! 2010-05-16 16:07:55 +00:00
BeBuild.h BeBuild.h: Fix B_DEFINE_WEAK_ALIAS for use in C++ code 2013-11-05 21:40:42 +01:00
DeviceKit.h added these master include files for better R5 compatibility when compiling 2002-10-23 13:48:14 +00:00
GameKit.h added these master include files for better R5 compatibility when compiling 2002-10-23 13:48:14 +00:00
InterfaceKit.h added these master include files for better R5 compatibility when compiling 2002-10-23 13:48:14 +00:00
KernelKit.h added these master include files for better R5 compatibility when compiling 2002-10-23 13:48:14 +00:00
LocaleKit.h Remove references to NumberFormatImpl. 2014-10-06 08:35:50 +02:00
MailKit.h added these master include files for better R5 compatibility when compiling 2002-10-23 13:48:14 +00:00
MediaKit.h added these master include files for better R5 compatibility when compiling 2002-10-23 13:48:14 +00:00
MidiKit.h added these master include files for better R5 compatibility when compiling 2002-10-23 13:48:14 +00:00
NetKit.h * Rewrote NetKit.h, and added the libnetapi headers. 2008-06-24 09:03:44 +00:00
NetworkKit.h Added the new headers to the NetworkKit.h all-in-one header. 2010-10-27 14:16:19 +00:00
StorageKit.h StorageKit.h still included the Alias.h header file I removed with the previous commit. 2007-07-06 12:52:01 +00:00
SupportKit.h added these master include files for better R5 compatibility when compiling 2002-10-23 13:48:14 +00:00
TranslationKit.h added these master include files for better R5 compatibility when compiling 2002-10-23 13:48:14 +00:00