Searched +hist:37 +hist:ddfd14 (Results 1 - 3 of 3) sorted by relevance

/haiku/headers/os/interface/
H A DMenu.hdiff deaae5fc Tue Jan 07 17:17:37 MST 2014 John Scipione <jscipione@gmail.com> 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
diff 76d5e064 Mon Apr 19 18:37:08 MDT 2010 Stefano Ceccherini <stefano.ceccherini@gmail.com> Partially revert r35962, since the cure is worse than the sickness.
Should fix #5717 (but probably reopens #3103)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36369 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 37ddfd14 Mon Jun 11 18:28:06 MDT 2007 Stefano Ceccherini <stefano.ceccherini@gmail.com> Shortcut characters are aligned even if there's a submenu, like
discussed in the thread in haiku-development. I added a fSubmenus member
to BMenu, to be able to tell from BMenuItem if there are other items
with a submenu (maintained in BMenuItem::SetSuper()). If you don't like
this solution, let's just revert.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21395 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 37ddfd14 Mon Jun 11 18:28:06 MDT 2007 Stefano Ceccherini <stefano.ceccherini@gmail.com> Shortcut characters are aligned even if there's a submenu, like
discussed in the thread in haiku-development. I added a fSubmenus member
to BMenu, to be able to tell from BMenuItem if there are other items
with a submenu (maintained in BMenuItem::SetSuper()). If you don't like
this solution, let's just revert.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21395 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff deaae5fc20b5cf44115441d34a1e33436df885b2 Tue Jan 07 17:17:37 MST 2014 John Scipione <jscipione@gmail.com> 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
diff 76d5e0641b4b4c162d0719305de3b9a2a49c7d02 Mon Apr 19 18:37:08 MDT 2010 Stefano Ceccherini <stefano.ceccherini@gmail.com> Partially revert r35962, since the cure is worse than the sickness.
Should fix #5717 (but probably reopens #3103)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36369 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 37ddfd14aba3fe42b0d034759c9ae53d8f984ce6 Mon Jun 11 18:28:06 MDT 2007 Stefano Ceccherini <stefano.ceccherini@gmail.com> Shortcut characters are aligned even if there's a submenu, like
discussed in the thread in haiku-development. I added a fSubmenus member
to BMenu, to be able to tell from BMenuItem if there are other items
with a submenu (maintained in BMenuItem::SetSuper()). If you don't like
this solution, let's just revert.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21395 a95241bf-73f2-0310-859d-f6bbb57e9c96
/haiku/src/kits/interface/
H A DMenuItem.cppdiff 37ddfd14 Mon Jun 11 18:28:06 MDT 2007 Stefano Ceccherini <stefano.ceccherini@gmail.com> Shortcut characters are aligned even if there's a submenu, like
discussed in the thread in haiku-development. I added a fSubmenus member
to BMenu, to be able to tell from BMenuItem if there are other items
with a submenu (maintained in BMenuItem::SetSuper()). If you don't like
this solution, let's just revert.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21395 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 37ddfd14 Mon Jun 11 18:28:06 MDT 2007 Stefano Ceccherini <stefano.ceccherini@gmail.com> Shortcut characters are aligned even if there's a submenu, like
discussed in the thread in haiku-development. I added a fSubmenus member
to BMenu, to be able to tell from BMenuItem if there are other items
with a submenu (maintained in BMenuItem::SetSuper()). If you don't like
this solution, let's just revert.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21395 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff d2350b28 Mon Feb 20 13:45:37 MST 2006 Jérôme Duval <korli@users.berlios.de> hmm fixed these bits, padded to multiple of 4


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16481 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 37ddfd14aba3fe42b0d034759c9ae53d8f984ce6 Mon Jun 11 18:28:06 MDT 2007 Stefano Ceccherini <stefano.ceccherini@gmail.com> Shortcut characters are aligned even if there's a submenu, like
discussed in the thread in haiku-development. I added a fSubmenus member
to BMenu, to be able to tell from BMenuItem if there are other items
with a submenu (maintained in BMenuItem::SetSuper()). If you don't like
this solution, let's just revert.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21395 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff d2350b2881bfe080e62fc69b8b5c4dfd83b4da4c Mon Feb 20 13:45:37 MST 2006 Jérôme Duval <korli@users.berlios.de> hmm fixed these bits, padded to multiple of 4


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16481 a95241bf-73f2-0310-859d-f6bbb57e9c96
H A DMenu.cppdiff 76d5e064 Mon Apr 19 18:37:08 MDT 2010 Stefano Ceccherini <stefano.ceccherini@gmail.com> Partially revert r35962, since the cure is worse than the sickness.
Should fix #5717 (but probably reopens #3103)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36369 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 18fe1bf6 Sat Sep 20 09:37:47 MDT 2008 Stephan Aßmus <superstippi@gmx.de> Small fix for 80 char/line limit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27655 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 4b812f29 Tue Jan 01 07:37:19 MST 2008 Stefano Ceccherini <stefano.ceccherini@gmail.com> Set sticky mode to the correct value before calling BMenu::_Track().
Fixes bug #1679


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23201 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 37ddfd14 Mon Jun 11 18:28:06 MDT 2007 Stefano Ceccherini <stefano.ceccherini@gmail.com> Shortcut characters are aligned even if there's a submenu, like
discussed in the thread in haiku-development. I added a fSubmenus member
to BMenu, to be able to tell from BMenuItem if there are other items
with a submenu (maintained in BMenuItem::SetSuper()). If you don't like
this solution, let's just revert.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21395 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 37ddfd14 Mon Jun 11 18:28:06 MDT 2007 Stefano Ceccherini <stefano.ceccherini@gmail.com> Shortcut characters are aligned even if there's a submenu, like
discussed in the thread in haiku-development. I added a fSubmenus member
to BMenu, to be able to tell from BMenuItem if there are other items
with a submenu (maintained in BMenuItem::SetSuper()). If you don't like
this solution, let's just revert.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21395 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 37f49a44 Thu Aug 24 02:57:05 MDT 2006 Stefano Ceccherini <stefano.ceccherini@gmail.com> If show() fails, deselect the parent menu item.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18598 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff bbcfef1f Fri Jul 07 10:01:37 MDT 2006 Jérôme Duval <korli@users.berlios.de> archive deep when needed, restore menu items


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18054 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 9d9c1564 Mon Jul 03 18:37:59 MDT 2006 Stefano Ceccherini <stefano.ceccherini@gmail.com> One of the BMenu::AddItem() variations crashed if the passed item was NULL. Fixes bug 465

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18026 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff c51421cc Fri Apr 07 10:52:37 MDT 2006 Stefano Ceccherini <stefano.ceccherini@gmail.com> implemented sticky mode. Let's see how many complaints because it's not perfect at all. Under qemu it's super crappy btw

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17041 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff f2e9b063 Fri Mar 31 02:37:59 MST 2006 Stefano Ceccherini <stefano.ceccherini@gmail.com> This small change could even fix some big problems with menus... unfortunately I can only reproduce them in vmware, and not in qemu

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16940 a95241bf-73f2-0310-859d-f6bbb57e9c96

Completed in 399 milliseconds