From 116628bb79e8f07c84368fffca550040260c9f67 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Wed, 19 Aug 2009 15:11:01 -0400 Subject: Introduce LLUIListener, a new event API that doesn't directly correspond to any existing C++ class. It calls named functions registered in the LLUICtrl:: CommitCallbackRegistry, thus supporting event-level access to any function you can specify with XUI's function= parameter=. --- indra/newview/lluilistener.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 indra/newview/lluilistener.h (limited to 'indra/newview/lluilistener.h') diff --git a/indra/newview/lluilistener.h b/indra/newview/lluilistener.h new file mode 100644 index 0000000000..ea904a99ff --- /dev/null +++ b/indra/newview/lluilistener.h @@ -0,0 +1,29 @@ +/** + * @file lluilistener.h + * @author Nat Goodspeed + * @date 2009-08-18 + * @brief Engage named functions as specified by XUI + * + * $LicenseInfo:firstyear=2009&license=viewergpl$ + * Copyright (c) 2009, Linden Research, Inc. + * $/LicenseInfo$ + */ + +#if ! defined(LL_LLUILISTENER_H) +#define LL_LLUILISTENER_H + +#include "lleventdispatcher.h" +#include + +class LLSD; + +class LLUIListener: public LLDispatchListener +{ +public: + LLUIListener(const std::string& name); + +private: + void call(const LLSD& event) const; +}; + +#endif /* ! defined(LL_LLUILISTENER_H) */ -- cgit v1.2.3