#
e10de1ec |
|
12-Jul-2018 |
Ryan Leavengood <leavengood@gmail.com> |
Visually align shortcuts in menus In a menu, we use the right side both for submenu arrows and shortcuts. As a result, when an entry has both a shortcut and a submenu, its shortcut is not aligned with others, and this does not look so nice. The spacing for the arrow appears only if there is a submenu in any of the items in the parent menu. Change-Id: If91fdcdad36abb0141fb05d1f59141f89540c1db Reviewed-on: https://review.haiku-os.org/c/haiku/+/355 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com> Reviewed-by: Ryan Leavengood <leavengood@gmail.com>
|
#
e8d4db8e |
|
19-Apr-2016 |
John Scipione <jscipione@gmail.com> |
MenuPrivate: Add SetItemMargins() method
|
#
35384ab4 |
|
20-Feb-2015 |
John Scipione <jscipione@gmail.com> |
MenuPrivate: Add a SetLayout() method to MenuPrivate that allows you to set the menu_layout of the menu after construction.
|
#
09d0a76b |
|
20-Feb-2015 |
John Scipione <jscipione@gmail.com> |
MenuPrivate: Style fixes to MenuPrivate.h
|
#
8abe72fb |
|
06-Nov-2011 |
John Scipione <jscipione@gmail.com> |
Changes the menu key bitmap from CTL to CTRL and SHFT to SHIFT. This is coming from but does not close #7967 Adds a new (currently unused) Menu key bitmap. Instead of having a single AltAsCommandKey() method the menus now show the correct bitmap when you switch between your control, windows/option, and alt/command keys. This is really not flushed out yet since it only works when you switch those keys and not other combinations like say switching the control and caps lock keys but it is a step in the right direction. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43205 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e750d35c |
|
06-Jun-2011 |
Stephan Aßmus <superstippi@gmx.de> |
Applied patch by Pete Goodeve from ticket #7182. It improves keyboard navigation/tracking of BMenus and BMenuBars, although many issues remain. Should not yet go into alpha, since there is one issue which I am not sure if it's not a regression. The issue is that invoking a menu item with Enter for the first time seems to have no effect, while invoking it subsequently works as expected. I don't know, yet, if that's a regression of this patch. In any case, it's better than before, thanks, Pete! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42004 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
dcc8ae91 |
|
01-Aug-2009 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Some cleanups: made the bitmaps static, moved variables around. No functional change. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32056 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7a8567e6 |
|
30-Jul-2009 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Moved MenuPrivate implementation to its own file. Made MenuPrivate.h self-contained. Adjusted other files accordingly. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31963 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c3d7cee2 |
|
30-Jul-2009 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Instead of creating the Modifiers bitmaps on demand, for every DrawItem invocation, for every BMenuItem, have them created in _init_interface_kit(), and keep them cached. This required some reorganisation of the code in Menu and MenuItem. Also has the side effect that BMenuItem doesn't have to know about the alt/ctrl/command keys stuff. Added a comment in BMenu::AttachedToWindow(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31962 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
150ddd17 |
|
11-Apr-2008 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
added missing header git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24910 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
10f4d067 |
|
11-Apr-2008 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added a class MenuPrivate to handle access to private BMenu methods. BMenuItem and BWindow are no longer friends of BMenu, but use this class instead. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24909 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9e64a7ed |
|
03-Jan-2008 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Fixed problem with some popup menus (check ticket #1679) Moved GetMouse() calls near the check for exit conditions. Reorganized a bit the code, and hopefully simplified it in some places. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23229 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
05e515d5 |
|
22-Apr-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
hopefully improved menu tracking. Among other things, this fixes bug 461 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17204 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ce1efe4c |
|
14-Apr-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
forgot to commit this changed header, sorry git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17135 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2c11ec31 |
|
03-Mar-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
BMenuItem also draws ctrl bitmap if needed, BTextView::AutoResize implemented more correctly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16577 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
da2e259d |
|
03-Mar-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
added a constant git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16576 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
88da217a |
|
07-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added a header with menu actions defines git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12984 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
35384ab4256de4eed68f379980a0a5d881d878c6 |
|
20-Feb-2015 |
John Scipione <jscipione@gmail.com> |
MenuPrivate: Add a SetLayout() method to MenuPrivate that allows you to set the menu_layout of the menu after construction.
|
#
09d0a76b7b83810e0a05b2a4574e8583ae7ee6bc |
|
20-Feb-2015 |
John Scipione <jscipione@gmail.com> |
MenuPrivate: Style fixes to MenuPrivate.h
|
#
8abe72fb66b36e98eedc463c85cf752651280386 |
|
06-Nov-2011 |
John Scipione <jscipione@gmail.com> |
Changes the menu key bitmap from CTL to CTRL and SHFT to SHIFT. This is coming from but does not close #7967 Adds a new (currently unused) Menu key bitmap. Instead of having a single AltAsCommandKey() method the menus now show the correct bitmap when you switch between your control, windows/option, and alt/command keys. This is really not flushed out yet since it only works when you switch those keys and not other combinations like say switching the control and caps lock keys but it is a step in the right direction. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43205 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e750d35cbfaed10c317bbba6f66212a410500013 |
|
06-Jun-2011 |
Stephan Aßmus <superstippi@gmx.de> |
Applied patch by Pete Goodeve from ticket #7182. It improves keyboard navigation/tracking of BMenus and BMenuBars, although many issues remain. Should not yet go into alpha, since there is one issue which I am not sure if it's not a regression. The issue is that invoking a menu item with Enter for the first time seems to have no effect, while invoking it subsequently works as expected. I don't know, yet, if that's a regression of this patch. In any case, it's better than before, thanks, Pete! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42004 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
dcc8ae91187ab85ff9e6fb61992ca8b82c47485f |
|
01-Aug-2009 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Some cleanups: made the bitmaps static, moved variables around. No functional change. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32056 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7a8567e61d42a4c1aa3ecae991ad8dd3b098db44 |
|
30-Jul-2009 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Moved MenuPrivate implementation to its own file. Made MenuPrivate.h self-contained. Adjusted other files accordingly. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31963 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c3d7cee2d9b1ed21cb64db3def908434e9e32c9b |
|
30-Jul-2009 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Instead of creating the Modifiers bitmaps on demand, for every DrawItem invocation, for every BMenuItem, have them created in _init_interface_kit(), and keep them cached. This required some reorganisation of the code in Menu and MenuItem. Also has the side effect that BMenuItem doesn't have to know about the alt/ctrl/command keys stuff. Added a comment in BMenu::AttachedToWindow(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31962 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
150ddd17b11b6e937704f73ecb2c63f10e125bd2 |
|
11-Apr-2008 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
added missing header git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24910 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
10f4d0679a8df9f72c2a295b2f2ac80ea776538b |
|
11-Apr-2008 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added a class MenuPrivate to handle access to private BMenu methods. BMenuItem and BWindow are no longer friends of BMenu, but use this class instead. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24909 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9e64a7ed1ba6e91718aeae9a5a32c74ba9ca5421 |
|
03-Jan-2008 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Fixed problem with some popup menus (check ticket #1679) Moved GetMouse() calls near the check for exit conditions. Reorganized a bit the code, and hopefully simplified it in some places. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23229 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
05e515d56ce28f5a67f0c5cc3d63efd1a1153228 |
|
22-Apr-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
hopefully improved menu tracking. Among other things, this fixes bug 461 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17204 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ce1efe4ce6f40a36c81fc6fd2fceb5036f558aaf |
|
14-Apr-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
forgot to commit this changed header, sorry git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17135 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2c11ec31c876f2b77e3d03c9776dbf99119bbce7 |
|
03-Mar-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
BMenuItem also draws ctrl bitmap if needed, BTextView::AutoResize implemented more correctly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16577 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
da2e259d76b7fafdec4f96e7b524db868bcf1b6d |
|
03-Mar-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
added a constant git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16576 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
88da217a0b5b9e8be2665b376cb713a032115891 |
|
07-Jun-2005 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added a header with menu actions defines git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12984 a95241bf-73f2-0310-859d-f6bbb57e9c96
|