aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llfocusmgr.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/llfocusmgr.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/linden/indra/llui/llfocusmgr.h b/linden/indra/llui/llfocusmgr.h
index 02f588e..3bd5b35 100644
--- a/linden/indra/llui/llfocusmgr.h
+++ b/linden/indra/llui/llfocusmgr.h
@@ -12,12 +12,12 @@
12 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of 13 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * the GPL can be found in doc/GPL-license.txt in this distribution, or 14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlife.com/developers/opensource/gplv2 15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 * 16 *
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlife.com/developers/opensource/flossexception 20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 21 *
22 * By copying, modifying or distributing this software, you acknowledge 22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 23 * that you have read and understood your obligations described above,
@@ -44,8 +44,6 @@ class LLMouseHandler;
44class LLFocusMgr 44class LLFocusMgr
45{ 45{
46public: 46public:
47 typedef void (*FocusLostCallback)(LLUICtrl*);
48
49 LLFocusMgr(); 47 LLFocusMgr();
50 ~LLFocusMgr(); 48 ~LLFocusMgr();
51 49
@@ -56,11 +54,11 @@ public:
56 BOOL childHasMouseCapture( LLView* parent ); 54 BOOL childHasMouseCapture( LLView* parent );
57 55
58 // Keyboard Focus 56 // Keyboard Focus
59 void setKeyboardFocus(LLUICtrl* new_focus, FocusLostCallback on_focus_lost, BOOL lock = FALSE); // new_focus = NULL to release the focus. 57 void setKeyboardFocus(LLUICtrl* new_focus, BOOL lock = FALSE); // new_focus = NULL to release the focus.
60 LLUICtrl* getKeyboardFocus() const { return mKeyboardFocus; } 58 LLUICtrl* getKeyboardFocus() const { return mKeyboardFocus; }
59 LLUICtrl* getLastKeyboardFocus() const { return mLastKeyboardFocus; }
61 BOOL childHasKeyboardFocus( const LLView* parent ) const; 60 BOOL childHasKeyboardFocus( const LLView* parent ) const;
62 void removeKeyboardFocusWithoutCallback( LLView* focus ); 61 void removeKeyboardFocusWithoutCallback( LLView* focus );
63 FocusLostCallback getFocusCallback() { return mKeyboardFocusLostCallback; }
64 F32 getFocusTime() const { return mFocusTimer.getElapsedTimeF32(); } 62 F32 getFocusTime() const { return mFocusTimer.getElapsedTimeF32(); }
65 F32 getFocusFlashAmt(); 63 F32 getFocusFlashAmt();
66 LLColor4 getFocusColor(); 64 LLColor4 getFocusColor();
@@ -90,15 +88,14 @@ public:
90 88
91protected: 89protected:
92 LLUICtrl* mLockedView; 90 LLUICtrl* mLockedView;
93 FocusLostCallback mKeyboardLockedFocusLostCallback;
94 91
95 // Mouse Captor 92 // Mouse Captor
96 LLMouseHandler* mMouseCaptor; // Mouse events are premptively routed to this object 93 LLMouseHandler* mMouseCaptor; // Mouse events are premptively routed to this object
97 94
98 // Keyboard Focus 95 // Keyboard Focus
99 LLUICtrl* mKeyboardFocus; // Keyboard events are preemptively routed to this object 96 LLUICtrl* mKeyboardFocus; // Keyboard events are preemptively routed to this object
97 LLUICtrl* mLastKeyboardFocus; // who last had focus
100 LLUICtrl* mDefaultKeyboardFocus; 98 LLUICtrl* mDefaultKeyboardFocus;
101 FocusLostCallback mKeyboardFocusLostCallback; // The object to which keyboard events are routed is called before another object takes its place
102 99
103 // Top View 100 // Top View
104 LLUICtrl* mTopCtrl; 101 LLUICtrl* mTopCtrl;