summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorLeslie Linden <leslie@lindenlab.com>2011-10-12 17:45:21 -0700
committerLeslie Linden <leslie@lindenlab.com>2011-10-12 17:45:21 -0700
commit20358ea89dc9823ac0b539030fdf03268dbdf4e9 (patch)
treefb63d12625c051c19e1766a9f6f4bdc7f7a8ead5 /indra/newview
parent309ebb84a8cf93e03e2594525aa128b3002040bf (diff)
* Added mModified flag and isModified() query to check it.
(currently it is not connect to actual data)
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lltoolbarview.cpp11
-rw-r--r--indra/newview/lltoolbarview.h2
2 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/lltoolbarview.cpp b/indra/newview/lltoolbarview.cpp
index 133835aafc..bac154f435 100644
--- a/indra/newview/lltoolbarview.cpp
+++ b/indra/newview/lltoolbarview.cpp
@@ -471,3 +471,14 @@ void LLToolBarView::setToolBarsVisible(bool visible)
mToolbarLeft->getParent()->setVisible(visible);
mToolbarRight->getParent()->setVisible(visible);
}
+
+bool LLToolBarView::isModified() const
+{
+ bool modified = false;
+
+ modified |= mToolbarBottom->isModified();
+ modified |= mToolbarLeft->isModified();
+ modified |= mToolbarRight->isModified();
+
+ return modified;
+}
diff --git a/indra/newview/lltoolbarview.h b/indra/newview/lltoolbarview.h
index 01ff137c15..8b3af43875 100644
--- a/indra/newview/lltoolbarview.h
+++ b/indra/newview/lltoolbarview.h
@@ -81,6 +81,8 @@ public:
static BOOL handleDropTool( void* cargo_data, S32 x, S32 y, LLToolBar* toolbar);
static void stopDragTool();
void onEndDrag();
+
+ bool isModified() const;
protected:
friend class LLUICtrlFactory;