diff options
author | Jacek Antonelli | 2008-08-15 23:45:44 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:44 -0500 |
commit | acfdcf2b1deeb04698174c78e8cb22b093445bb1 (patch) | |
tree | 811293650bcf81d01ea7c54d7c2cf263110aa329 /linden/indra/llui | |
parent | Second Life viewer sources 1.20.2 (diff) | |
download | meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.zip meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.gz meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.bz2 meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.xz |
Second Life viewer sources 1.20.3
Diffstat (limited to 'linden/indra/llui')
-rw-r--r-- | linden/indra/llui/llfloater.cpp | 7 | ||||
-rw-r--r-- | linden/indra/llui/llfloater.h | 1 | ||||
-rw-r--r-- | linden/indra/llui/llscrollbar.cpp | 7 | ||||
-rw-r--r-- | linden/indra/llui/llscrollcontainer.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llui/llscrolllistctrl.cpp | 2 |
5 files changed, 17 insertions, 2 deletions
diff --git a/linden/indra/llui/llfloater.cpp b/linden/indra/llui/llfloater.cpp index 5142bf4..03914e2 100644 --- a/linden/indra/llui/llfloater.cpp +++ b/linden/indra/llui/llfloater.cpp | |||
@@ -923,6 +923,7 @@ void LLFloater::setFocus( BOOL b ) | |||
923 | } | 923 | } |
924 | } | 924 | } |
925 | 925 | ||
926 | // virtual | ||
926 | void LLFloater::setIsChrome(BOOL is_chrome) | 927 | void LLFloater::setIsChrome(BOOL is_chrome) |
927 | { | 928 | { |
928 | // chrome floaters don't take focus at all | 929 | // chrome floaters don't take focus at all |
@@ -941,6 +942,12 @@ void LLFloater::setIsChrome(BOOL is_chrome) | |||
941 | LLPanel::setIsChrome(is_chrome); | 942 | LLPanel::setIsChrome(is_chrome); |
942 | } | 943 | } |
943 | 944 | ||
945 | void LLFloater::setTitleVisible(bool visible) | ||
946 | { | ||
947 | if (mDragHandle) | ||
948 | mDragHandle->setTitleVisible(visible); | ||
949 | } | ||
950 | |||
944 | // Change the draw style to account for the foreground state. | 951 | // Change the draw style to account for the foreground state. |
945 | void LLFloater::setForeground(BOOL front) | 952 | void LLFloater::setForeground(BOOL front) |
946 | { | 953 | { |
diff --git a/linden/indra/llui/llfloater.h b/linden/indra/llui/llfloater.h index 8068741..7b4e003 100644 --- a/linden/indra/llui/llfloater.h +++ b/linden/indra/llui/llfloater.h | |||
@@ -146,6 +146,7 @@ public: | |||
146 | const LLString& getTitle() const; | 146 | const LLString& getTitle() const; |
147 | void setShortTitle( const LLString& short_title ); | 147 | void setShortTitle( const LLString& short_title ); |
148 | LLString getShortTitle(); | 148 | LLString getShortTitle(); |
149 | void setTitleVisible(bool visible); | ||
149 | virtual void setMinimized(BOOL b); | 150 | virtual void setMinimized(BOOL b); |
150 | void moveResizeHandlesToFront(); | 151 | void moveResizeHandlesToFront(); |
151 | void addDependentFloater(LLFloater* dependent, BOOL reposition = TRUE); | 152 | void addDependentFloater(LLFloater* dependent, BOOL reposition = TRUE); |
diff --git a/linden/indra/llui/llscrollbar.cpp b/linden/indra/llui/llscrollbar.cpp index cdabda0..8940b80 100644 --- a/linden/indra/llui/llscrollbar.cpp +++ b/linden/indra/llui/llscrollbar.cpp | |||
@@ -501,6 +501,13 @@ void LLScrollbar::draw() | |||
501 | } | 501 | } |
502 | else | 502 | else |
503 | { | 503 | { |
504 | // Background | ||
505 | rounded_rect_imagep->drawSolid(mOrientation == HORIZONTAL ? SCROLLBAR_SIZE : 0, | ||
506 | mOrientation == VERTICAL ? SCROLLBAR_SIZE : 0, | ||
507 | mOrientation == HORIZONTAL ? getRect().getWidth() - 2 * SCROLLBAR_SIZE : getRect().getWidth(), | ||
508 | mOrientation == VERTICAL ? getRect().getHeight() - 2 * SCROLLBAR_SIZE : getRect().getHeight(), | ||
509 | mTrackColor); | ||
510 | |||
504 | // Thumb | 511 | // Thumb |
505 | LLRect outline_rect = mThumbRect; | 512 | LLRect outline_rect = mThumbRect; |
506 | outline_rect.stretch(2); | 513 | outline_rect.stretch(2); |
diff --git a/linden/indra/llui/llscrollcontainer.cpp b/linden/indra/llui/llscrollcontainer.cpp index a6c1c6d..f0b0b81 100644 --- a/linden/indra/llui/llscrollcontainer.cpp +++ b/linden/indra/llui/llscrollcontainer.cpp | |||
@@ -430,7 +430,7 @@ void LLScrollableContainerView::draw() | |||
430 | if( mIsOpaque ) | 430 | if( mIsOpaque ) |
431 | { | 431 | { |
432 | LLGLSNoTexture no_texture; | 432 | LLGLSNoTexture no_texture; |
433 | glColor4fv( mBackgroundColor.mV ); | 433 | gGL.color4fv( mBackgroundColor.mV ); |
434 | gl_rect_2d( mInnerRect ); | 434 | gl_rect_2d( mInnerRect ); |
435 | } | 435 | } |
436 | 436 | ||
diff --git a/linden/indra/llui/llscrolllistctrl.cpp b/linden/indra/llui/llscrolllistctrl.cpp index 2066819..32c4e82 100644 --- a/linden/indra/llui/llscrolllistctrl.cpp +++ b/linden/indra/llui/llscrolllistctrl.cpp | |||
@@ -1759,7 +1759,7 @@ void LLScrollListCtrl::draw() | |||
1759 | if (mBackgroundVisible) | 1759 | if (mBackgroundVisible) |
1760 | { | 1760 | { |
1761 | LLGLSNoTexture no_texture; | 1761 | LLGLSNoTexture no_texture; |
1762 | glColor4fv( getEnabled() ? mBgWriteableColor.mV : mBgReadOnlyColor.mV ); | 1762 | gGL.color4fv( getEnabled() ? mBgWriteableColor.mV : mBgReadOnlyColor.mV ); |
1763 | gl_rect_2d(background); | 1763 | gl_rect_2d(background); |
1764 | } | 1764 | } |
1765 | 1765 | ||