diff options
author | Leslie Linden <leslie@lindenlab.com> | 2011-10-12 17:45:21 -0700 |
---|---|---|
committer | Leslie Linden <leslie@lindenlab.com> | 2011-10-12 17:45:21 -0700 |
commit | 20358ea89dc9823ac0b539030fdf03268dbdf4e9 (patch) | |
tree | fb63d12625c051c19e1766a9f6f4bdc7f7a8ead5 /indra/llui | |
parent | 309ebb84a8cf93e03e2594525aa128b3002040bf (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.cpp | 1 | ||||
-rw-r--r-- | indra/llui/lltoolbar.h | 4 |
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, |