aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Makemodule.am
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-01-28 15:02:59 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-01-28 15:02:59 (GMT)
commit03ce82a4737b834767c03341db9362ada24c775a (patch)
tree2444031bbd47d97b1e0af64aa2f1d2a037a08a2e /src/FbTk/Makemodule.am
parentfc245408d6975d0813cd4440e7089d987b54d42e (diff)
downloadfluxbox-03ce82a4737b834767c03341db9362ada24c775a.zip
fluxbox-03ce82a4737b834767c03341db9362ada24c775a.tar.bz2
Feature: typeahead in menu matches text anywhere
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.
Diffstat (limited to 'src/FbTk/Makemodule.am')
-rw-r--r--src/FbTk/Makemodule.am3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/FbTk/Makemodule.am b/src/FbTk/Makemodule.am
index 98e8805..57f70f2 100644
--- a/src/FbTk/Makemodule.am
+++ b/src/FbTk/Makemodule.am
@@ -124,8 +124,6 @@ libFbTk_a_SOURCES = \
124 src/FbTk/Resource.cc \ 124 src/FbTk/Resource.cc \
125 src/FbTk/Resource.hh \ 125 src/FbTk/Resource.hh \
126 src/FbTk/STLUtil.hh \ 126 src/FbTk/STLUtil.hh \
127 src/FbTk/SearchResult.cc \
128 src/FbTk/SearchResult.hh \
129 src/FbTk/Select2nd.hh \ 127 src/FbTk/Select2nd.hh \
130 src/FbTk/SelectArg.hh \ 128 src/FbTk/SelectArg.hh \
131 src/FbTk/Shape.cc \ 129 src/FbTk/Shape.cc \
@@ -154,7 +152,6 @@ libFbTk_a_SOURCES = \
154 src/FbTk/Timer.hh \ 152 src/FbTk/Timer.hh \
155 src/FbTk/Transparent.cc \ 153 src/FbTk/Transparent.cc \
156 src/FbTk/Transparent.hh \ 154 src/FbTk/Transparent.hh \
157 src/FbTk/TypeAhead.hh \
158 src/FbTk/Util.hh \ 155 src/FbTk/Util.hh \
159 src/FbTk/XFontImp.cc \ 156 src/FbTk/XFontImp.cc \
160 src/FbTk/XFontImp.hh \ 157 src/FbTk/XFontImp.hh \