summaryrefslogtreecommitdiff
path: root/src/gui/focushandler.h
diff options
context:
space:
mode:
authorTametomo <irarice@gmail.com>2009-06-01 11:10:05 -0600
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-14 20:54:03 +0100
commitd2205a452c37af39fd8f76be33863ff057658d03 (patch)
tree793619fe7478e7571eaa0ac11a4a52e0854eb520 /src/gui/focushandler.h
parent2bb83523cd72c030aaa37c0be2f488e395fbc886 (diff)
downloadmana-client-d2205a452c37af39fd8f76be33863ff057658d03.tar.gz
mana-client-d2205a452c37af39fd8f76be33863ff057658d03.tar.bz2
mana-client-d2205a452c37af39fd8f76be33863ff057658d03.tar.xz
mana-client-d2205a452c37af39fd8f76be33863ff057658d03.zip
Overloaded the tabNext() and tabPrevious() functions in the FocusHandler
to move a window to the top when one of its contained widgets is focused. Signed-off-by: Tametomo <irarice@gmail.com>
Diffstat (limited to 'src/gui/focushandler.h')
-rw-r--r--src/gui/focushandler.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/focushandler.h b/src/gui/focushandler.h
index aaac6ca6..d4c4e14f 100644
--- a/src/gui/focushandler.h
+++ b/src/gui/focushandler.h
@@ -54,8 +54,21 @@ class FocusHandler : public gcn::FocusHandler
*/
void remove(gcn::Widget *widget);
+ /**
+ * Overloaded to allow windows to move to the top when one of their
+ * widgets is tabbed to when tabbing through focusable elements.
+ */
+ void tabNext();
+ void tabPrevious();
+
private:
/**
+ * Checks to see if the widget tabbed to is in a window, and if it is,
+ * it requests the window be moved to the top.
+ */
+ void checkForWindow();
+
+ /**
* Stack of widgets that have requested modal forcus.
*/
std::list<gcn::Widget*> mModalStack;