aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llfocusmgr.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:54 -0500
committerJacek Antonelli2008-08-15 23:44:54 -0500
commitb2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch)
tree3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/llui/llfocusmgr.h
parentSecond Life viewer sources 1.14.0.1 (diff)
downloadmeta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz
Second Life viewer sources 1.15.0.2
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/llfocusmgr.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/linden/indra/llui/llfocusmgr.h b/linden/indra/llui/llfocusmgr.h
index 5687b99..e189945 100644
--- a/linden/indra/llui/llfocusmgr.h
+++ b/linden/indra/llui/llfocusmgr.h
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2002-2007, Linden Research, Inc. 5 * Copyright (c) 2002-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -46,7 +47,7 @@ public:
46 ~LLFocusMgr(); 47 ~LLFocusMgr();
47 48
48 // Mouse Captor 49 // Mouse Captor
49 void setMouseCapture(LLMouseHandler* new_captor,void (*on_capture_lost)(LLMouseHandler* old_captor)); // new_captor = NULL to release the mouse. 50 void setMouseCapture(LLMouseHandler* new_captor); // new_captor = NULL to release the mouse.
50 LLMouseHandler* getMouseCapture() { return mMouseCaptor; } 51 LLMouseHandler* getMouseCapture() { return mMouseCaptor; }
51 void removeMouseCaptureWithoutCallback( LLMouseHandler* captor ); 52 void removeMouseCaptureWithoutCallback( LLMouseHandler* captor );
52 BOOL childHasMouseCapture( LLView* parent ); 53 BOOL childHasMouseCapture( LLView* parent );
@@ -73,10 +74,10 @@ public:
73 74
74 75
75 // Top View 76 // Top View
76 void setTopView(LLView* new_top, void (*on_top_lost)(LLView* old_top)); 77 void setTopCtrl(LLUICtrl* new_top);
77 LLView* getTopView() const { return mTopView; } 78 LLUICtrl* getTopCtrl() const { return mTopCtrl; }
78 void removeTopViewWithoutCallback( LLView* top_view ); 79 void removeTopCtrlWithoutCallback( LLUICtrl* top_view );
79 BOOL childIsTopView( LLView* parent ); 80 BOOL childIsTopCtrl( LLView* parent );
80 81
81 // All Three 82 // All Three
82 void releaseFocusIfNeeded( LLView* top_view ); 83 void releaseFocusIfNeeded( LLView* top_view );
@@ -89,7 +90,6 @@ protected:
89 90
90 // Mouse Captor 91 // Mouse Captor
91 LLMouseHandler* mMouseCaptor; // Mouse events are premptively routed to this object 92 LLMouseHandler* mMouseCaptor; // Mouse events are premptively routed to this object
92 void (*mMouseCaptureLostCallback)(LLMouseHandler*); // The object to which mouse events are routed is called before another object takes its place
93 93
94 // Keyboard Focus 94 // Keyboard Focus
95 LLUICtrl* mKeyboardFocus; // Keyboard events are preemptively routed to this object 95 LLUICtrl* mKeyboardFocus; // Keyboard events are preemptively routed to this object
@@ -97,8 +97,7 @@ protected:
97 FocusLostCallback mKeyboardFocusLostCallback; // The object to which keyboard events are routed is called before another object takes its place 97 FocusLostCallback mKeyboardFocusLostCallback; // The object to which keyboard events are routed is called before another object takes its place
98 98
99 // Top View 99 // Top View
100 LLView* mTopView; 100 LLUICtrl* mTopCtrl;
101 void (*mTopViewLostCallback)(LLView*);
102 101
103 LLFrameTimer mFocusTimer; 102 LLFrameTimer mFocusTimer;
104 F32 mFocusWeight; 103 F32 mFocusWeight;
@@ -111,7 +110,7 @@ protected:
111 #ifdef _DEBUG 110 #ifdef _DEBUG
112 LLString mMouseCaptorName; 111 LLString mMouseCaptorName;
113 LLString mKeyboardFocusName; 112 LLString mKeyboardFocusName;
114 LLString mTopViewName; 113 LLString mTopCtrlName;
115 #endif 114 #endif
116}; 115};
117 116