diff options
author | Jacek Antonelli | 2008-08-15 23:45:01 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:01 -0500 |
commit | 28d8d4e7664bcd6c8369cc18832e42096af7cad2 (patch) | |
tree | 069020fe66339aff2ca4176370ff743b14713f2d /linden/indra/llui | |
parent | Second Life viewer sources 1.17.2.0 (diff) | |
download | meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.zip meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.gz meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.bz2 meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.xz |
Second Life viewer sources 1.17.3.0
Diffstat (limited to 'linden/indra/llui')
-rw-r--r-- | linden/indra/llui/llscrolllistctrl.h | 4 | ||||
-rw-r--r-- | linden/indra/llui/lltextbox.cpp | 7 | ||||
-rw-r--r-- | linden/indra/llui/lluictrl.h | 4 | ||||
-rw-r--r-- | linden/indra/llui/llview.cpp | 4 | ||||
-rw-r--r-- | linden/indra/llui/llviewquery.cpp | 2 |
5 files changed, 14 insertions, 7 deletions
diff --git a/linden/indra/llui/llscrolllistctrl.h b/linden/indra/llui/llscrolllistctrl.h index 9829832..f1bd9bb 100644 --- a/linden/indra/llui/llscrolllistctrl.h +++ b/linden/indra/llui/llscrolllistctrl.h | |||
@@ -59,7 +59,7 @@ public: | |||
59 | virtual S32 getHeight() const = 0; | 59 | virtual S32 getHeight() const = 0; |
60 | virtual const LLString& getText() const { return LLString::null; } | 60 | virtual const LLString& getText() const { return LLString::null; } |
61 | virtual const LLString& getTextLower() const { return LLString::null; } | 61 | virtual const LLString& getTextLower() const { return LLString::null; } |
62 | virtual const BOOL getVisible() const { return TRUE; } | 62 | virtual BOOL getVisible() const { return TRUE; } |
63 | virtual void setWidth(S32 width) = 0; | 63 | virtual void setWidth(S32 width) = 0; |
64 | virtual void highlightText(S32 offset, S32 num_chars) {} | 64 | virtual void highlightText(S32 offset, S32 num_chars) {} |
65 | virtual BOOL isText() = 0; | 65 | virtual BOOL isText() = 0; |
@@ -96,7 +96,7 @@ public: | |||
96 | virtual void setWidth(S32 width) { mWidth = width; } | 96 | virtual void setWidth(S32 width) { mWidth = width; } |
97 | virtual S32 getHeight() const { return llround(mFont->getLineHeight()); } | 97 | virtual S32 getHeight() const { return llround(mFont->getLineHeight()); } |
98 | virtual const LLString& getText() const { return mText.getString(); } | 98 | virtual const LLString& getText() const { return mText.getString(); } |
99 | virtual const BOOL getVisible() const { return mVisible; } | 99 | virtual BOOL getVisible() const { return mVisible; } |
100 | virtual void highlightText(S32 offset, S32 num_chars) {mHighlightOffset = offset; mHighlightCount = num_chars;} | 100 | virtual void highlightText(S32 offset, S32 num_chars) {mHighlightOffset = offset; mHighlightCount = num_chars;} |
101 | void setText(const LLString& text); | 101 | void setText(const LLString& text); |
102 | virtual void setColor(const LLColor4&); | 102 | virtual void setColor(const LLColor4&); |
diff --git a/linden/indra/llui/lltextbox.cpp b/linden/indra/llui/lltextbox.cpp index c4f2cea..ba0747f 100644 --- a/linden/indra/llui/lltextbox.cpp +++ b/linden/indra/llui/lltextbox.cpp | |||
@@ -439,6 +439,7 @@ LLView* LLTextBox::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *f | |||
439 | text, | 439 | text, |
440 | font, | 440 | font, |
441 | FALSE); | 441 | FALSE); |
442 | |||
442 | 443 | ||
443 | LLFontGL::HAlign halign = LLView::selectFontHAlign(node); | 444 | LLFontGL::HAlign halign = LLView::selectFontHAlign(node); |
444 | text_box->setHAlign(halign); | 445 | text_box->setHAlign(halign); |
@@ -450,6 +451,12 @@ LLView* LLTextBox::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *f | |||
450 | { | 451 | { |
451 | text_box->mFontStyle = LLFontGL::getStyleFromString(font_style); | 452 | text_box->mFontStyle = LLFontGL::getStyleFromString(font_style); |
452 | } | 453 | } |
454 | |||
455 | BOOL mouse_opaque; | ||
456 | if (node->getAttributeBOOL("mouse_opaque", mouse_opaque)) | ||
457 | { | ||
458 | text_box->setMouseOpaque(mouse_opaque); | ||
459 | } | ||
453 | 460 | ||
454 | if(node->hasAttribute("text_color")) | 461 | if(node->hasAttribute("text_color")) |
455 | { | 462 | { |
diff --git a/linden/indra/llui/lluictrl.h b/linden/indra/llui/lluictrl.h index 3093437..5056319 100644 --- a/linden/indra/llui/lluictrl.h +++ b/linden/indra/llui/lluictrl.h | |||
@@ -136,7 +136,7 @@ public: | |||
136 | { | 136 | { |
137 | /*virtual*/ filterResult_t operator() (const LLView* const view, const viewList_t & children) const | 137 | /*virtual*/ filterResult_t operator() (const LLView* const view, const viewList_t & children) const |
138 | { | 138 | { |
139 | return filterResult_t(view->isCtrl() && static_cast<const LLUICtrl * const>(view)->hasTabStop() && children.size() == 0, TRUE); | 139 | return filterResult_t(view->isCtrl() && static_cast<const LLUICtrl *>(view)->hasTabStop() && children.size() == 0, TRUE); |
140 | } | 140 | } |
141 | }; | 141 | }; |
142 | 142 | ||
@@ -144,7 +144,7 @@ public: | |||
144 | { | 144 | { |
145 | /*virtual*/ filterResult_t operator() (const LLView* const view, const viewList_t & children) const | 145 | /*virtual*/ filterResult_t operator() (const LLView* const view, const viewList_t & children) const |
146 | { | 146 | { |
147 | return filterResult_t(view->isCtrl() && static_cast<const LLUICtrl * const>(view)->acceptsTextInput(), TRUE); | 147 | return filterResult_t(view->isCtrl() && static_cast<const LLUICtrl *>(view)->acceptsTextInput(), TRUE); |
148 | } | 148 | } |
149 | }; | 149 | }; |
150 | 150 | ||
diff --git a/linden/indra/llui/llview.cpp b/linden/indra/llui/llview.cpp index 22d426a..0b04213 100644 --- a/linden/indra/llui/llview.cpp +++ b/linden/indra/llui/llview.cpp | |||
@@ -455,8 +455,8 @@ bool LLCompareByTabOrder::operator() (const LLView* const a, const LLView* const | |||
455 | if(b && b->isCtrl()) b_score--; | 455 | if(b && b->isCtrl()) b_score--; |
456 | if(a_score == -2 && b_score == -2) | 456 | if(a_score == -2 && b_score == -2) |
457 | { | 457 | { |
458 | const LLUICtrl * const a_ctrl = static_cast<const LLUICtrl* const>(a); | 458 | const LLUICtrl * const a_ctrl = static_cast<const LLUICtrl*>(a); |
459 | const LLUICtrl * const b_ctrl = static_cast<const LLUICtrl* const>(b); | 459 | const LLUICtrl * const b_ctrl = static_cast<const LLUICtrl*>(b); |
460 | LLView::child_tab_order_const_iter_t a_found = mTabOrder.find(a_ctrl), b_found = mTabOrder.find(b_ctrl); | 460 | LLView::child_tab_order_const_iter_t a_found = mTabOrder.find(a_ctrl), b_found = mTabOrder.find(b_ctrl); |
461 | if(a_found != mTabOrder.end()) a_score--; | 461 | if(a_found != mTabOrder.end()) a_score--; |
462 | if(b_found != mTabOrder.end()) b_score--; | 462 | if(b_found != mTabOrder.end()) b_score--; |
diff --git a/linden/indra/llui/llviewquery.cpp b/linden/indra/llui/llviewquery.cpp index 65f191b..314a483 100644 --- a/linden/indra/llui/llviewquery.cpp +++ b/linden/indra/llui/llviewquery.cpp | |||
@@ -49,7 +49,7 @@ filterResult_t LLEnabledFilter::operator() (const LLView* const view, const view | |||
49 | } | 49 | } |
50 | filterResult_t LLTabStopFilter::operator() (const LLView* const view, const viewList_t & children) const | 50 | filterResult_t LLTabStopFilter::operator() (const LLView* const view, const viewList_t & children) const |
51 | { | 51 | { |
52 | return filterResult_t(view->isCtrl() && static_cast<const LLUICtrl* const>(view)->hasTabStop(), | 52 | return filterResult_t(view->isCtrl() && static_cast<const LLUICtrl*>(view)->hasTabStop(), |
53 | view->canFocusChildren()); | 53 | view->canFocusChildren()); |
54 | } | 54 | } |
55 | 55 | ||