summaryrefslogtreecommitdiff
path: root/indra/llui/llfocusmgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/llfocusmgr.h')
-rw-r--r--indra/llui/llfocusmgr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llui/llfocusmgr.h b/indra/llui/llfocusmgr.h
index d0adadd6d3..2c2dae216a 100644
--- a/indra/llui/llfocusmgr.h
+++ b/indra/llui/llfocusmgr.h
@@ -124,6 +124,11 @@ public:
void unlockFocus();
BOOL focusLocked() const { return mLockedView != NULL; }
+ void addFocusChangeCallback(const boost::signals2::signal<void ()>::slot_type& cb)
+ {
+ mFocusChangeSignal.connect(cb);
+ }
+
private:
LLUICtrl* mLockedView;
@@ -150,6 +155,8 @@ private:
typedef std::map<LLHandle<LLView>, LLHandle<LLView> > focus_history_map_t;
focus_history_map_t mFocusHistory;
+ boost::signals2::signal<void()> mFocusChangeSignal;
+
#ifdef _DEBUG
std::string mMouseCaptorName;
std::string mKeyboardFocusName;