summaryrefslogtreecommitdiff
path: root/indra/llui/llemojihelper.h
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-10-08 22:10:50 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-03-19 21:55:01 +0200
commit5608c3998df99c9ea075c58f0f45fb23617ec2ed (patch)
tree4cf77a6923fe69afef48800a219360a1a21ecec8 /indra/llui/llemojihelper.h
parent28638b31af625e59914e215af1cf7b0ad40b3fb6 (diff)
viewer#2270 The "More" button does not close the "Choose emoji" floater
Diffstat (limited to 'indra/llui/llemojihelper.h')
-rw-r--r--indra/llui/llemojihelper.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llui/llemojihelper.h b/indra/llui/llemojihelper.h
index 2834b06061..26840eef94 100644
--- a/indra/llui/llemojihelper.h
+++ b/indra/llui/llemojihelper.h
@@ -51,16 +51,23 @@ public:
// Eventing
bool handleKey(const LLUICtrl* ctrl_p, KEY key, MASK mask);
void onCommitEmoji(llwchar emoji);
+ void onCloseHelper(LLUICtrl* ctrl, const LLSD& param);
+
+ typedef boost::signals2::signal<void(LLUICtrl* ctrl, const LLSD& param)> commit_signal_t;
+ boost::signals2::connection setCloseCallback(const commit_signal_t::slot_type& cb);
protected:
LLUICtrl* getHostCtrl() const { return mHostHandle.get(); }
void setHostCtrl(LLUICtrl* hostctrl_p);
private:
+ commit_signal_t mCloseSignal;
+
LLHandle<LLUICtrl> mHostHandle;
LLHandle<LLFloater> mHelperHandle;
boost::signals2::connection mHostCtrlFocusLostConn;
boost::signals2::connection mHelperCommitConn;
+ boost::signals2::connection mHelperCloseConn;
std::function<void(llwchar)> mEmojiCommitCb;
bool mIsHideDisabled;
};