summaryrefslogtreecommitdiff
path: root/indra/newview/llpreview.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2011-09-01 14:05:37 -0400
committerNat Goodspeed <nat@lindenlab.com>2011-09-01 14:05:37 -0400
commit7215d1a9a9e6220d8744b662ab96feb41fc66ec8 (patch)
treea1c954427f6571d47c4b037bcacb3ffdb10c7985 /indra/newview/llpreview.cpp
parent3ddf3aef9b2f2bb85932bd33b9daac5e59d3018a (diff)
CHOP-763: Extend LLEventAPI "LLViewerControl" API; add queries.
This is a significant refactoring of planned (but as yet unimplemented) work, though in fact it's almost completely compatible with the only implemented operation. The set() operation now requires op="set", where before that was inferred because set() was the only possibility. Whereas before LLViewerControlListener dispatched to different bound methods on the "group" key, with four known "group" string values, it now dispatches on the "op" key, supporting "set", "toggle", "get", "groups", "vars" -- the last two exposing query functionality. LLControlGroup is actually derived from LLInstanceTracker, keyed on string names, so we can look up instances using LLControlGroup::getInstance(const std::string&), or enumerate all such names. LLControlGroup similarly permits iterating over all defined LLControlVariables. The static LLViewerControlListener instance has been wrapped in an unnamed namespace and removed from llviewercontrollistener.h. The availability of the API depends on LLEventPumps::obtain(), rather than normal C++ visibility.
Diffstat (limited to 'indra/newview/llpreview.cpp')
0 files changed, 0 insertions, 0 deletions