diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2009-10-17 12:23:38 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2009-10-17 12:23:38 -0400 |
commit | 4ea9361aa8f4580f1f7bc5eb819236bf5f1dd768 (patch) | |
tree | d3f73abddbfe39a6e833385a517c5afd866f838b /indra/llui/llview.cpp | |
parent | b4275c5d48c8cdf4bbe206822878fcf615897ac9 (diff) | |
parent | 27cadfbe951abb2cf350d5a1c91876ac958d50cf (diff) |
Automated merge with ssh://hg.lindenlab.com/viewer/viewer-2-0/
Diffstat (limited to 'indra/llui/llview.cpp')
-rw-r--r-- | indra/llui/llview.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llui/llview.cpp b/indra/llui/llview.cpp index 7db6eab9ad..01561d95cf 100644 --- a/indra/llui/llview.cpp +++ b/indra/llui/llview.cpp @@ -438,6 +438,18 @@ void LLView::setEnabled(BOOL enabled) } //virtual +bool LLView::isAvailable() const +{ + return isInEnabledChain() && isInVisibleChain(); +} + +//static +bool LLView::isAvailable(const LLView* view) +{ + return view && view->isAvailable(); +} + +//virtual BOOL LLView::setLabelArg( const std::string& key, const LLStringExplicit& text ) { return FALSE; |