Searched +hist:10 +hist:f4d067 (Results 1 - 5 of 5) sorted by relevance

/haiku/headers/private/interface/
H A DMenuPrivate.hdiff 10f4d067 Fri Apr 11 02:22:09 MDT 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
diff 10f4d067 Fri Apr 11 02:22:09 MDT 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
diff da2e259d Fri Mar 03 12:10:33 MST 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
diff 10f4d0679a8df9f72c2a295b2f2ac80ea776538b Fri Apr 11 02:22:09 MDT 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
diff da2e259d76b7fafdec4f96e7b524db868bcf1b6d Fri Mar 03 12:10:33 MST 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
/haiku/headers/os/interface/
H A DMenu.hdiff 10f4d067 Fri Apr 11 02:22:09 MDT 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
diff 10f4d067 Fri Apr 11 02:22:09 MDT 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
diff 6e11b3f9 Thu Jan 10 17:08:21 MST 2008 Stefano Ceccherini <stefano.ceccherini@gmail.com> Close the whole menu hierarchy when invoking an item via keyboard. Added
a TODO comment.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23389 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff fbe2f227 Tue Jun 12 03:10:08 MDT 2007 Stefano Ceccherini <stefano.ceccherini@gmail.com> Some work on menu layouts:
- Menus are generally a bit wider (BeIDE ones didn't look nice)
- The modifiers bitmap are drawn more centered vertically
- Splitted BMenu::ComputeLayout() into three methods
- Various minor changes.
The menuitems still don't look nice with bigger font sizes, but we'll
try to fix this...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21394 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 10f4d0679a8df9f72c2a295b2f2ac80ea776538b Fri Apr 11 02:22:09 MDT 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
diff 6e11b3f991eb4594914ae0a40b9b52e5887a775f Thu Jan 10 17:08:21 MST 2008 Stefano Ceccherini <stefano.ceccherini@gmail.com> Close the whole menu hierarchy when invoking an item via keyboard. Added
a TODO comment.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23389 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff fbe2f227cab65d4a1d972fd0bc2ed08681985bc2 Tue Jun 12 03:10:08 MDT 2007 Stefano Ceccherini <stefano.ceccherini@gmail.com> Some work on menu layouts:
- Menus are generally a bit wider (BeIDE ones didn't look nice)
- The modifiers bitmap are drawn more centered vertically
- Splitted BMenu::ComputeLayout() into three methods
- Various minor changes.
The menuitems still don't look nice with bigger font sizes, but we'll
try to fix this...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21394 a95241bf-73f2-0310-859d-f6bbb57e9c96
/haiku/src/kits/interface/
H A DMenuItem.cppdiff 81d3bc02 Mon Apr 17 01:10:39 MDT 2023 Freaxed <andrea.anzani@gmail.com> BMenuItem: use unicode character for B_SPACE shortcut

Change-Id: If3e9b1232538f50e15fb8f5b249a7584f23a46db
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6360
Reviewed-by: Stefano Ceccherini <stefano.ceccherini@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
diff 2bcccf5a Wed Mar 03 10:43:31 MST 2010 Stephan Aßmus <superstippi@gmx.de> Patch in part by "yourpalal":
* Set the MENU_STATE_CLOSED state upon BMenu initialization.
* When drawing the label, use the parent bounds, including
item margins to truncate the label, when the parent menu is
closed.

Thanks a lot for the patch!

Changes by myself:
* Cache the MenuPrivate instance in BMenuItem::DrawContent().
* Use Window()->UpdateIfNeeded() to animate the flashing invoked menu item,
which makes a lot more sense, the comment about it working in BeOS is
probably due to item->Select() probably drawing outside of an update cycle.
* The trigger invokation in keyboard handling didn't break out of the loop
after invoking an item. Probably didn't matter since triggers are hopefully
not assigned to more than one menu item. :-)
* Use the same trick as BMenuBar to avoid interfering with keyboard navigation
in the BMenu::_Track() hook.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35739 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 10f4d067 Fri Apr 11 02:22:09 MDT 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
diff 10f4d067 Fri Apr 11 02:22:09 MDT 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
diff fbe2f227 Tue Jun 12 03:10:08 MDT 2007 Stefano Ceccherini <stefano.ceccherini@gmail.com> Some work on menu layouts:
- Menus are generally a bit wider (BeIDE ones didn't look nice)
- The modifiers bitmap are drawn more centered vertically
- Splitted BMenu::ComputeLayout() into three methods
- Various minor changes.
The menuitems still don't look nice with bigger font sizes, but we'll
try to fix this...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21394 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff bf8dbdb4 Fri Mar 10 15:50:34 MST 2006 Stefano Ceccherini <stefano.ceccherini@gmail.com> Draw the shortcut character a bit more to the right, in line with the menu symbol

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16694 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 797d1a66 Tue Jan 10 09:00:07 MST 2006 Stefano Ceccherini <stefano.ceccherini@gmail.com> menufields should default to B_ITEMS_IN_COLUMN. This fixes the workspaces menu (in Screen) opened at the wrong position. As a consequence of this, I had to change the drawing code a bit

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15892 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 2cdfcae4 Tue Jan 18 08:10:46 MST 2005 Stefano Ceccherini <stefano.ceccherini@gmail.com> The LowColor() had to be resetted after having drawn the shortcut symbol. Corrected a weird typo.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10829 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 2bcccf5a74b943b5cbff81d6481ee26bff244eec Wed Mar 03 10:43:31 MST 2010 Stephan Aßmus <superstippi@gmx.de> Patch in part by "yourpalal":
* Set the MENU_STATE_CLOSED state upon BMenu initialization.
* When drawing the label, use the parent bounds, including
item margins to truncate the label, when the parent menu is
closed.

Thanks a lot for the patch!

Changes by myself:
* Cache the MenuPrivate instance in BMenuItem::DrawContent().
* Use Window()->UpdateIfNeeded() to animate the flashing invoked menu item,
which makes a lot more sense, the comment about it working in BeOS is
probably due to item->Select() probably drawing outside of an update cycle.
* The trigger invokation in keyboard handling didn't break out of the loop
after invoking an item. Probably didn't matter since triggers are hopefully
not assigned to more than one menu item. :-)
* Use the same trick as BMenuBar to avoid interfering with keyboard navigation
in the BMenu::_Track() hook.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35739 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 10f4d0679a8df9f72c2a295b2f2ac80ea776538b Fri Apr 11 02:22:09 MDT 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
H A DMenu.cppdiff 346d1496 Sun Nov 05 10:38:59 MST 2017 Humdinger <humdingerb@gmail.com> Properly terminate property_info lists

BListView's property_info list lacked termination, resulting in
garbage output at the and of 'hey getsuites'.

Use { 0 } everywhere for sake of consistency.

Thanks to waddlesplash for spotting the bug an providing the easy fix.
diff bfbb9655 Sun Sep 10 12:58:35 MDT 2017 Augustin Cavalier <waddlesplash@gmail.com> Interface Kit: Remove more non-BControlLook code.
diff c4793b24 Wed Dec 17 02:20:10 MST 2014 Adrien Destugues <pulkomandy@gmail.com> fix adding or removing items to an open BMenu

The menu would try to relayout itself, but fail to get the supermenu
bounds as the looper for it was not locked in that case.

This fixes the crash with two downsides:
* The menu width isn't adjusted to match the parent menu (mostly visible
in BMenuFields)
* There is some flickering as the menu is updated

Fixes #9863 (Network prefs part).
diff 7327891c Sat Feb 25 10:28:15 MST 2012 Jerome Duval <jerome.duval@gmail.com> interface kit: added compatibility symbols for BeAE for #8354

* _ZN5BMenu16InvalidateLayoutEb for GCC4
* InvalidateLayout__7BSliderb for GCC2
diff 2bcccf5a Wed Mar 03 10:43:31 MST 2010 Stephan Aßmus <superstippi@gmx.de> Patch in part by "yourpalal":
* Set the MENU_STATE_CLOSED state upon BMenu initialization.
* When drawing the label, use the parent bounds, including
item margins to truncate the label, when the parent menu is
closed.

Thanks a lot for the patch!

Changes by myself:
* Cache the MenuPrivate instance in BMenuItem::DrawContent().
* Use Window()->UpdateIfNeeded() to animate the flashing invoked menu item,
which makes a lot more sense, the comment about it working in BeOS is
probably due to item->Select() probably drawing outside of an update cycle.
* The trigger invokation in keyboard handling didn't break out of the loop
after invoking an item. Probably didn't matter since triggers are hopefully
not assigned to more than one menu item. :-)
* Use the same trick as BMenuBar to avoid interfering with keyboard navigation
in the BMenu::_Track() hook.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35739 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 10f4d067 Fri Apr 11 02:22:09 MDT 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
diff 10f4d067 Fri Apr 11 02:22:09 MDT 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
diff 47d3c506 Thu Feb 21 03:10:17 MST 2008 Stefano Ceccherini <stefano.ceccherini@gmail.com> Change the order we use to check the position of the mouse pointer
inside menus: first sub, then current, then super. It's more logical,
and handles every case (hopefully I've tested every possible
combination) of overlapping menus correctly.
Fixes bug #1821.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24044 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 6e11b3f9 Thu Jan 10 17:08:21 MST 2008 Stefano Ceccherini <stefano.ceccherini@gmail.com> Close the whole menu hierarchy when invoking an item via keyboard. Added
a TODO comment.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23389 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 737ce1c0 Thu Jan 10 14:26:55 MST 2008 Axel Dörfler <axeld@pinc-software.de> * The keyboard target was always the first menu in the window list - no matter if that was hidden or not.
This fixes the bug described by Stefano in r23343.
* Therefore, I enabled cached menu windows again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23356 a95241bf-73f2-0310-859d-f6bbb57e9c96
H A DWindow.cppdiff db7c4791 Fri Jan 10 12:29:17 MST 2020 X512 <danger_mail@list.ru> Interface Kit: read reply before calling hooks.

Part of #15548.

Change-Id: I074d36717ef1e2fad4e8bc215448fa72f797ed7f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2099
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
diff 1ac98e3a Thu Dec 20 22:37:10 MST 2018 Augustin Cavalier <waddlesplash@gmail.com> BWindow: Prevent CenterIn from moving the decorator bar offscreen.

The MoveTo() call is not restricted in any way; it can easily move the
window's titlebar offscreen, which is very confusing for users as if
they don't remember the window manipulation keyboard shortcuts,
dealing with such windows is often very tricky (or impossible
if the window is actually larger than the screen.)

Now we also call MoveOnScreen with DO_NOT_RESIZE and
MOVE_IF_PARTIALLY_OFFSCREEN set, which will simply get the size of
the decorator bar and then ensure it is entirely on-screen.

Fixes #11763.
diff 346d1496 Sun Nov 05 10:38:59 MST 2017 Humdinger <humdingerb@gmail.com> Properly terminate property_info lists

BListView's property_info list lacked termination, resulting in
garbage output at the and of 'hey getsuites'.

Use { 0 } everywhere for sake of consistency.

Thanks to waddlesplash for spotting the bug an providing the easy fix.
diff 99b4affa Thu Jul 30 10:27:13 MDT 2015 Axel Dörfler <axeld@pinc-software.de> Added BWindow::ResizeToPreferred().

* B_AUTO_UPDATE_SIZE_LIMITS only really makes sense for resizable
windows, and it only sets the minimum/maximum window size.
* ResizeToPreferred() resizes the window to its preferred size, and
also supports height-for-width layouts.
diff 96cabf58 Sun Aug 12 08:30:10 MDT 2012 Ryan Leavengood <leavengood@gmail.com> Sync BWindow fShowLevel with the app_server.

Implementing the window_info.show_hide_level in terms of this solves the
problem of minimized windows also being considered hidden, when really they are
just hidden in the app_server.

window_info.show_hide_level is still defined backwards with a comment making
that clear.

Also removed sending fShowLevel in the minimize request since it is now
maintained in the app_server.

Fixes #4127.
diff 85c30aec Thu Nov 03 10:10:21 MDT 2011 Rene Gollent <anevilyak@gmail.com> Remove extraneous code with respect to telling a menu to close which was
breaking various cases where menus coexisted in a window with a view which
was using event masks:
- If one invoked the menu via, e.g. a BMenuField, and then tried to choose
an item on it, the mouse down would get captured, the menu would be
closed, and the mouse event would be thrown away without ever reaching
the event mask view.

- Furthermore, since the menu was told to terminate early, it would decide
that the user hadn't actually chosen that item (the escape key case),
and never actually invoke it.

Fixes the menu fields in the mouse preflet being broken.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43166 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 85c30aec Thu Nov 03 10:10:21 MDT 2011 Rene Gollent <anevilyak@gmail.com> Remove extraneous code with respect to telling a menu to close which was
breaking various cases where menus coexisted in a window with a view which
was using event masks:
- If one invoked the menu via, e.g. a BMenuField, and then tried to choose
an item on it, the mouse down would get captured, the menu would be
closed, and the mouse event would be thrown away without ever reaching
the event mask view.

- Furthermore, since the menu was told to terminate early, it would decide
that the user hadn't actually chosen that item (the escape key case),
and never actually invoke it.

Fixes the menu fields in the mouse preflet being broken.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43166 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff b0586d61 Sat Aug 22 10:10:18 MDT 2009 Ryan Leavengood <leavengood@gmail.com> Remove useless BRect* version of CenterIn, make remaining version take a const
BRect reference.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32614 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff b0586d61 Sat Aug 22 10:10:18 MDT 2009 Ryan Leavengood <leavengood@gmail.com> Remove useless BRect* version of CenterIn, make remaining version take a const
BRect reference.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32614 a95241bf-73f2-0310-859d-f6bbb57e9c96
diff 99452e33 Mon Aug 10 13:41:01 MDT 2009 Jonas Sundström <jonas@kirilla.com> Cleanup

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

Completed in 827 milliseconds