#
29ef6eb5 |
|
08-Dec-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Fix BMenu behaviour/ABI by reinstating BMenu::InvalidateLayout() It turns out,this is an old method added by Be, and is not really related to BView::InvalidateLayout(bool). In fact BMenu::InvalidateLayout() does something separate, but related to the BView method. I was wrong to delete this method, since it needs to have action taken each time it is called, so moving these actions into LayoutInvalidated() only worked sometimes (when the BView was considered to have a valid layout). I have added a comment for future hackers so that they don't delete this method.
|
#
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
|
#
61eb1f1d |
|
22-Oct-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Replace remaining InvalidateLayout()'s with LayoutInvalidated(). Also do a bit of cleanup/move methods around.
|
#
8460e00c |
|
30-Jun-2010 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
_AddDynamicItems didn't pass the keyDown parameter to _OkToProceed (noticed by Ziusudra). Also removed leftover fDynamicItemsAdded. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37314 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
780b76dc |
|
25-Jun-2010 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Applied patch by Ziusudra in ticket #4930 to avoid a deadlock when navigating the menus via keyboard. I also factored some code into functions, in particular the code to add the dynamic items. Also keep track if the dynamic items have been added or not (using a new boolean class member). I tested for regressions but couldn't find any. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37261 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
76d5e064 |
|
19-Apr-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
|
#
bb2576f0 |
|
26-Mar-2010 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Removed some code which was added to fix a crash, which was obviously fixed correctly later in another way. Removing this code should also fix ticket #3103. Use the width of the Bitmaps instead of fixed values. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35962 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
89208c77 |
|
27-Aug-2009 |
Stephan Aßmus <superstippi@gmx.de> |
Finished unifying the Interface Kit headers: * Fixed copyrights (puncuation and capitalization, removed authors from headers) * Updated indentation style * Unified pointer/reference style * Re-ordered some methods for better grouping where it could be done (abd adopted source accordingly) * Small coding style fixes here and there No functional change intended. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32745 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
13e50c47 |
|
25-Aug-2009 |
Stephan Aßmus <superstippi@gmx.de> |
* Indentation cleanup. * 80 chars limit * Copyright fixed. * Better grouping of methods. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32701 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2f86ba45 |
|
15-Feb-2009 |
Stephan Aßmus <superstippi@gmx.de> |
Implemented a new look for the Haiku interface controls. It was overheard that they looked too ninety-ish. TODO: The code behind this is work in progress. The basic idea is to extract all drawing code into a new class BControlLook, of which there is a global instance be_control_look, instantiated in InterfaceDefs.cpp. At the moment, all the old drawing code is still there, and the usage of be_control_look is inside if-bodies checking the instance against NULL. In another words, by not instanitating be_control_look, you can revert back to the old look. BControlLook's job is to provide reusable methods for drawing certain types of frames, backgrounds and labels, so that application developers can make controls that re-use the same drawing code as built-in controls and adopt to changes made there. I have added the notion of "borders". Each of the frame drawing methods can be made to draw certain borders only, which is supposed to help when controls shall visually attach. This feature is not fully explored at all ATM. TODO: Update BColumnListView header view and BStringItem text spacing. Update other apps where it makes sense to use BControlLook. For the moment, only Tracker and LaunchBox are updated. More... NOTE: The new look is not very radically different, so that existing apps do not immediately look too ugly or out of place. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
18af47f5 |
|
11-Apr-2008 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Renamed some private methods to have the underline prefix, now that BWindow doesn't call them directly anymore. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24911 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
|
#
dc93a6b1 |
|
01-Mar-2008 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Applied patch by Denis Washington which implements "diagonal mouse support" for menus (see ticket #284). Thanks a lot! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24193 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d01f3af1 |
|
15-Jan-2008 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Menu tracking now ignores mouse movements if they are too fast (suggested by stippi). The movement threshold will be subject to changes, as I only tested on vmware and it's probably too high. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23528 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6e11b3f9 |
|
10-Jan-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
|
#
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
|
#
afd60167 |
|
07-Nov-2007 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Reverted r21395. Many people didn't like the change, and after all I too think it wasn't a really good idea. The alignment of shortcut charachters and submenu symbols could use some more work, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22849 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f6e4cbb9 |
|
15-Oct-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Rewrote BeBuild.h which had "a few" consequences (got rid of all those class definitions). * Minor cleanup here and there. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22577 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
083de48a |
|
30-Sep-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Rewrote the trigger selection mechanism: it now searches for uppercase characters first, and then falls back to take everything. fTrigger is now uint32 and works with all unicode characters; unlike in BeOS, the MenuTriggerTest application now works correctly in Haiku. * fTriggerIndex is now a character position, not a byte position of the label; this allows BMenuItem::DrawContent() to draw the trigger at the correct position, even if there are multi-byte UTF-8 characters. * The above fixed bug #1506; triggers are still not working, though. * Rewrote Menu.h header. * Renamed all private methods (that are not called by BWindow) to have the underscore prefix. * Removed unused methods. * Some minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22384 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4fa167e1 |
|
16-Jun-2007 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Added layout-related methods (Min/Max/PreferredSize(), InvalidateLayout(), DoLayout()). * Don't resize the view and the window anymore, when fResizeToFit is not set. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21426 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
37ddfd14 |
|
11-Jun-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
|
#
fbe2f227 |
|
12-Jun-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
|
#
68fb2668 |
|
16-Jan-2007 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
get rid of the now useless trackTime parameter git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19828 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8b91b40a |
|
12-Dec-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Try to split the tracking function into smaller ones. Please bear with me for the absolutely UGLY names. Also, if someone can suggest better ones... I seem not to have introduced any new bug. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19476 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2628e60c |
|
22-Nov-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Moved BMenuWindow, BMenuFrame, and BMenuScroller into the BPrivate namespace. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19360 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fe23fb66 |
|
29-Oct-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* Renamed private BMenu::SelectItem() to _SelectItem(), and made its arguments a bit more sane. * Fixed two GCC 4 warnings. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19139 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e061d1ba |
|
27-May-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
an eventually opened menu is now quit in BWindow::DispatchMessage() before sending a B_MOUSE_DOWN message to any other view. This fixes bug 594 for real and another bug in BMenuBar. BMenuBar tracking will also be simplified a bit because of this. Install items to a NULL window on Show() as does R5 (although I don't know why yet). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17605 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
925479d7 |
|
09-May-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added a new method RelayoutIfNeeded(), which does the real Layout invalidation, it's called by menubar and menu. This fixes the menufields not being resized. Note that a problem still remains, will be fixed shortly (hopefully) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17405 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2191a09a |
|
11-Apr-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
big improvements for menus. The tracking is in many ways on par with r5, except for a few things, like diagonal movement and that grandparent bug git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17095 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
65b4fb8a |
|
20-Mar-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Check if alt is the command key on BMenu::AttachedToWindow instead of doing it for every BMenuItem::Draw() git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16847 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
30fd5147 |
|
14-May-2003 |
haydentech <haydentech@nowhere.fake> |
Minor header-related changes git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3246 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d734a8ce |
|
23-Oct-2002 |
beveloper <beveloper@nowhere.fake> |
some header files to be R5 compatible git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1617 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
29ef6eb52d019b8b209958eac8f38fd4553612b2 |
|
08-Dec-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Fix BMenu behaviour/ABI by reinstating BMenu::InvalidateLayout() It turns out,this is an old method added by Be, and is not really related to BView::InvalidateLayout(bool). In fact BMenu::InvalidateLayout() does something separate, but related to the BView method. I was wrong to delete this method, since it needs to have action taken each time it is called, so moving these actions into LayoutInvalidated() only worked sometimes (when the BView was considered to have a valid layout). I have added a comment for future hackers so that they don't delete this method.
|
#
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
|
#
61eb1f1d19eed26b6138b0701612e8eb31bb1d86 |
|
22-Oct-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Replace remaining InvalidateLayout()'s with LayoutInvalidated(). Also do a bit of cleanup/move methods around.
|
#
8460e00cc0d9d43fad4eee52706968dc21b3a2cc |
|
30-Jun-2010 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
_AddDynamicItems didn't pass the keyDown parameter to _OkToProceed (noticed by Ziusudra). Also removed leftover fDynamicItemsAdded. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37314 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
780b76dcf90c60169c7513ebf5767a25e816329b |
|
25-Jun-2010 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Applied patch by Ziusudra in ticket #4930 to avoid a deadlock when navigating the menus via keyboard. I also factored some code into functions, in particular the code to add the dynamic items. Also keep track if the dynamic items have been added or not (using a new boolean class member). I tested for regressions but couldn't find any. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37261 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
76d5e0641b4b4c162d0719305de3b9a2a49c7d02 |
|
19-Apr-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
|
#
bb2576f0c8fe02ae30008bf8190121cb4ad15b88 |
|
26-Mar-2010 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Removed some code which was added to fix a crash, which was obviously fixed correctly later in another way. Removing this code should also fix ticket #3103. Use the width of the Bitmaps instead of fixed values. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35962 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
89208c77f10235d43fda0c7b3fd6751db02cc12c |
|
27-Aug-2009 |
Stephan Aßmus <superstippi@gmx.de> |
Finished unifying the Interface Kit headers: * Fixed copyrights (puncuation and capitalization, removed authors from headers) * Updated indentation style * Unified pointer/reference style * Re-ordered some methods for better grouping where it could be done (abd adopted source accordingly) * Small coding style fixes here and there No functional change intended. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32745 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
13e50c47a24ba560619b0a976e053c37690af984 |
|
25-Aug-2009 |
Stephan Aßmus <superstippi@gmx.de> |
* Indentation cleanup. * 80 chars limit * Copyright fixed. * Better grouping of methods. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32701 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2f86ba45579bdc9648b232175f87edc62ab71b54 |
|
15-Feb-2009 |
Stephan Aßmus <superstippi@gmx.de> |
Implemented a new look for the Haiku interface controls. It was overheard that they looked too ninety-ish. TODO: The code behind this is work in progress. The basic idea is to extract all drawing code into a new class BControlLook, of which there is a global instance be_control_look, instantiated in InterfaceDefs.cpp. At the moment, all the old drawing code is still there, and the usage of be_control_look is inside if-bodies checking the instance against NULL. In another words, by not instanitating be_control_look, you can revert back to the old look. BControlLook's job is to provide reusable methods for drawing certain types of frames, backgrounds and labels, so that application developers can make controls that re-use the same drawing code as built-in controls and adopt to changes made there. I have added the notion of "borders". Each of the frame drawing methods can be made to draw certain borders only, which is supposed to help when controls shall visually attach. This feature is not fully explored at all ATM. TODO: Update BColumnListView header view and BStringItem text spacing. Update other apps where it makes sense to use BControlLook. For the moment, only Tracker and LaunchBox are updated. More... NOTE: The new look is not very radically different, so that existing apps do not immediately look too ugly or out of place. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
18af47f5c48bfd21e0f51562a643eb28c8b23879 |
|
11-Apr-2008 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Renamed some private methods to have the underline prefix, now that BWindow doesn't call them directly anymore. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24911 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
|
#
dc93a6b1ee8c9c398617fd53dd9fbda3572a76e4 |
|
01-Mar-2008 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Applied patch by Denis Washington which implements "diagonal mouse support" for menus (see ticket #284). Thanks a lot! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24193 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d01f3af185a87ddb6f2b71a0609fc4c0869ad846 |
|
15-Jan-2008 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Menu tracking now ignores mouse movements if they are too fast (suggested by stippi). The movement threshold will be subject to changes, as I only tested on vmware and it's probably too high. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23528 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6e11b3f991eb4594914ae0a40b9b52e5887a775f |
|
10-Jan-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
|
#
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
|
#
afd60167e36d877d194f82b91069763ec2e0a7b8 |
|
07-Nov-2007 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Reverted r21395. Many people didn't like the change, and after all I too think it wasn't a really good idea. The alignment of shortcut charachters and submenu symbols could use some more work, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22849 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f6e4cbb95290a74b33d012600438b84742b0e572 |
|
15-Oct-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Rewrote BeBuild.h which had "a few" consequences (got rid of all those class definitions). * Minor cleanup here and there. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22577 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
083de48a4bf9a88273bc1aae47da41a97fed22d2 |
|
30-Sep-2007 |
Axel Dörfler <axeld@pinc-software.de> |
* Rewrote the trigger selection mechanism: it now searches for uppercase characters first, and then falls back to take everything. fTrigger is now uint32 and works with all unicode characters; unlike in BeOS, the MenuTriggerTest application now works correctly in Haiku. * fTriggerIndex is now a character position, not a byte position of the label; this allows BMenuItem::DrawContent() to draw the trigger at the correct position, even if there are multi-byte UTF-8 characters. * The above fixed bug #1506; triggers are still not working, though. * Rewrote Menu.h header. * Renamed all private methods (that are not called by BWindow) to have the underscore prefix. * Removed unused methods. * Some minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22384 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4fa167e12d1c7feb2ac0cada5a3062d7d0cdc771 |
|
16-Jun-2007 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Added layout-related methods (Min/Max/PreferredSize(), InvalidateLayout(), DoLayout()). * Don't resize the view and the window anymore, when fResizeToFit is not set. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21426 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
37ddfd14aba3fe42b0d034759c9ae53d8f984ce6 |
|
11-Jun-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
|
#
fbe2f227cab65d4a1d972fd0bc2ed08681985bc2 |
|
12-Jun-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
|
#
68fb266820911697f0f32ac91fbca0eefbd6230a |
|
16-Jan-2007 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
get rid of the now useless trackTime parameter git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19828 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8b91b40ae6098918aeea3c645b53032f8f6a9c9a |
|
12-Dec-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Try to split the tracking function into smaller ones. Please bear with me for the absolutely UGLY names. Also, if someone can suggest better ones... I seem not to have introduced any new bug. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19476 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2628e60cbca2ed49bf7d5704f99eb72bec7e249f |
|
22-Nov-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Moved BMenuWindow, BMenuFrame, and BMenuScroller into the BPrivate namespace. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19360 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fe23fb6699f41536bf1990fcdca05c8a72930383 |
|
29-Oct-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* Renamed private BMenu::SelectItem() to _SelectItem(), and made its arguments a bit more sane. * Fixed two GCC 4 warnings. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19139 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e061d1bae5349fbb420946e44b9c6594786e3f6d |
|
27-May-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
an eventually opened menu is now quit in BWindow::DispatchMessage() before sending a B_MOUSE_DOWN message to any other view. This fixes bug 594 for real and another bug in BMenuBar. BMenuBar tracking will also be simplified a bit because of this. Install items to a NULL window on Show() as does R5 (although I don't know why yet). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17605 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
925479d7b37c9182934fcd1e1b88a6ac641273c2 |
|
09-May-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added a new method RelayoutIfNeeded(), which does the real Layout invalidation, it's called by menubar and menu. This fixes the menufields not being resized. Note that a problem still remains, will be fixed shortly (hopefully) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17405 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2191a09a931d0c5ababb73c00ea78d3e40d58c17 |
|
11-Apr-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
big improvements for menus. The tracking is in many ways on par with r5, except for a few things, like diagonal movement and that grandparent bug git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17095 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
65b4fb8ab1cc75ce5fee62cb5f6963fdd8c4c7d4 |
|
20-Mar-2006 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Check if alt is the command key on BMenu::AttachedToWindow instead of doing it for every BMenuItem::Draw() git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16847 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
30fd51473f390b92d40b3a3c83b25e2d4a042f08 |
|
14-May-2003 |
haydentech <haydentech@nowhere.fake> |
Minor header-related changes git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3246 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d734a8ce5a83e48e17a2d0d6635090d48c5ad161 |
|
23-Oct-2002 |
beveloper <beveloper@nowhere.fake> |
some header files to be R5 compatible git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1617 a95241bf-73f2-0310-859d-f6bbb57e9c96
|