summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2009-08-19 15:11:01 -0400
committerNat Goodspeed <nat@lindenlab.com>2009-08-19 15:11:01 -0400
commit116628bb79e8f07c84368fffca550040260c9f67 (patch)
tree6698afe6722ea7c8efcdbac459fa07ef18bf0888 /indra/newview/llviewermenu.cpp
parent25ceef032b49591244c7df704494436b8b2e4044 (diff)
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=.
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r--indra/newview/llviewermenu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index a6157aa1e0..67dcf6bcae 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -210,6 +210,7 @@
#include "llwlparammanager.h"
#include "llwaterparammanager.h"
#include "llfloaternotificationsconsole.h"
+#include "lluilistener.h"
#include "lltexlayer.h"
@@ -420,6 +421,8 @@ public:
static LLMenuParcelObserver* gMenuParcelObserver = NULL;
+static LLUIListener sUIListener("UI");
+
LLMenuParcelObserver::LLMenuParcelObserver()
{
LLViewerParcelMgr::getInstance()->addObserver(this);