summaryrefslogtreecommitdiff
path: root/indra/llui
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/llui
parent309ebb84a8cf93e03e2594525aa128b3002040bf (diff)
* Added mModified flag and isModified() query to check it.
(currently it is not connect to actual data)
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/lltoolbar.cpp1
-rw-r--r--indra/llui/lltoolbar.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/indra/llui/lltoolbar.cpp b/indra/llui/lltoolbar.cpp
index a1ea4ba18b..1320f03a25 100644
--- a/indra/llui/lltoolbar.cpp
+++ b/indra/llui/lltoolbar.cpp
@@ -99,6 +99,7 @@ LLToolBar::LLToolBar(const LLToolBar::Params& p)
mSideType(p.side),
mWrap(p.wrap),
mNeedsLayout(false),
+ mModified(false),
mButtonPanel(NULL),
mCenteringStack(NULL),
mPadLeft(p.pad_left),
diff --git a/indra/llui/lltoolbar.h b/indra/llui/lltoolbar.h
index 709399c59f..2c66f29c16 100644
--- a/indra/llui/lltoolbar.h
+++ b/indra/llui/lltoolbar.h
@@ -178,7 +178,8 @@ public:
LLToolBarButton* createButton(const LLCommandId& id);
- bool hasButtons() { return !mButtons.empty(); }
+ bool hasButtons() const { return !mButtons.empty(); }
+ bool isModified() const { return mModified; }
protected:
friend class LLUICtrlFactory;
@@ -225,6 +226,7 @@ private:
bool mWrap;
bool mNeedsLayout;
+ bool mModified;
S32 mPadLeft,
mPadRight,
mPadTop,