aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MenuItem.cc
AgeCommit message (Collapse)AuthorFilesLines
2015-02-07Show toggleitems in menuMathias Gumz1-5/+7
2015-02-07CosmeticMathias Gumz1-27/+36
2015-01-28Feature: typeahead in menu matches text anywhereMathias Gumz1-20/+32
This commit implements a tweak to the typeahead feature already existent in fluxbox: If the user opens up a menu and starts typing, fluxbox tries to detect matching menu items and makes them available for quick selection. The typed pattern is now search also in the middle of the text. I opted to strip down the code quite a bit and remove complexity by throwing out FbTk::TypeAhead and FbTk::SearchResult because I do not see the need for a general solution when the only use case for such a feature is in fluxbox' menus. FbTk::ITypeAheadable shrunk down to 2 functions; the whole file might be combined with the code that implements FbTk::Menu::TypeSearch. FbTk::Menu::setIndex() and related code is also gone: the position of each menu item is defined by it's position in the items container. This reduces the mount of book keeping fluxbox has to do. Fewer moving parts is a good thing. It's possible that users start to complaint because they expect their typed pattern to match only at the beginning of the text OR that some demand other tweaks. We will see. This commit also fixes a regression introduced by 8387742c. The bug made the menu vanish.
2012-08-03Add menu.hilite.font and menu.hilite.justify style resourcesVladimir A. Pavlov1-14/+18
2010-09-08introduced FbTk::BidiStringMathias Gumz1-18/+13
a 'BidiString' holds both the logical content and the visual reordered version of the content of a string. this helps to reduce the number of calls to reorder the string before drawing it (as introduced in the patch from Ken Bloom) and to be more consistent in menus and textboxes (drawing cursors and underlining text).
2010-09-05avoid constructing new strings implicitMathias Gumz1-3/+3
2008-04-21some fixes for gcc 3.4Thomas Orgis1-1/+1
2008-01-11make FbTk::Command a template class, split parsing information out of ↵Mark Tiefenbruck1-1/+1
ObjectRegistry
2008-01-05update code to use ThemeProxyMark Tiefenbruck1-51/+52
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-2/+0
2007-12-25fix showing program icons with depth=1 in menusMark Tiefenbruck1-6/+22
2007-12-25make bit depth accessible from an FbDrawableMark Tiefenbruck1-1/+1
2007-12-18holding control will now keep the menu openMark Tiefenbruck1-2/+3
2007-12-18make MenuItem responsible for decision to close menu when clickedMark Tiefenbruck1-0/+2
2007-10-13merged changes from pre-develmarkt1-8/+13
2007-09-08fix crash when changing toolbar visibility with empty toolbar.toolsmarkt1-2/+5
2007-03-03added support for typeahead in menusmarkt1-0/+38
2007-01-06move triangle drawing into FbDrawablesimonb1-20/+7
Make MenuItem triangles proportional
2006-05-20improve native language handling, move messages and menu labels to simonb1-1/+1
FbTk::FbString
2006-04-22fix menu corruption when size/label changessimonb1-1/+1
2006-04-02size_t fixes, thanks Semushin Slava aka php-coderfluxgen1-2/+2
2006-02-16updated copyright infomathias1-1/+1
2005-06-23added showSubmenu in MenuItemfluxgen1-0/+6
2005-04-26extension of previous big patch. Move a bunch of menu things onto simonb1-98/+149
background pixmap. Same for textbuttons.
2005-01-24copyright datemathias1-1/+1
2004-11-19svn propset svn:keywords "Id"mathias1-1/+1
2004-09-11Font::drawText takes reference to FbDrawable instead of X Drawable + some ↵fluxgen1-2/+2
code cleaning
2004-09-10cosmetic + avoid unneeded App::instance()->display() callsakir1-37/+24
2004-09-01cosmeticakir1-6/+5
2004-09-01fix width for a menuentry, added too much spaceakir1-2/+2
2004-08-29a few random fixesrathnor1-2/+3
2004-08-03expand pixmap filename before loading, patch from Mathias Gumzfluxgen1-3/+5
2004-07-05fixed menutitle and menulables drawn to close to screen-bottom, patch from ↵fluxgen1-2/+2
Mathias Gumz
2004-06-10icon in menu itemfluxgen1-4/+76
2004-06-07drawing of items is now done in MenuItemfluxgen1-2/+156
2003-01-12item in the menufluxgen1-0/+34