diff options
| author | Merov Linden <merov@lindenlab.com> | 2011-09-26 16:06:57 -0700 |
|---|---|---|
| committer | Merov Linden <merov@lindenlab.com> | 2011-09-26 16:06:57 -0700 |
| commit | bb1776de6865715b2dd96185140d35e46d63c837 (patch) | |
| tree | f576aa7e9a8b28736f4997d312949c0f64a90013 /indra/llui/lltoolbarview.cpp | |
| parent | 92368dbdfc5b7ac133a8722202878a109c5341a9 (diff) | |
EXP-1207 : Introduced an hasCommand() method for toolbars and toolbar view
Diffstat (limited to 'indra/llui/lltoolbarview.cpp')
| -rw-r--r-- | indra/llui/lltoolbarview.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/llui/lltoolbarview.cpp b/indra/llui/lltoolbarview.cpp index 0b0fcef52c..3b4960fdd5 100644 --- a/indra/llui/lltoolbarview.cpp +++ b/indra/llui/lltoolbarview.cpp @@ -62,6 +62,24 @@ BOOL LLToolBarView::postBuild() return TRUE; } +bool LLToolBarView::hasCommand(const std::string& command_name) +{ + bool has_command = false; + if (mToolbarLeft && !has_command) + { + has_command = mToolbarLeft->hasCommand(command_name); + } + if (mToolbarRight && !has_command) + { + has_command = mToolbarRight->hasCommand(command_name); + } + if (mToolbarBottom && !has_command) + { + has_command = mToolbarBottom->hasCommand(command_name); + } + return has_command; +} + void LLToolBarView::draw() { static bool debug_print = true; |
