aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llcolorswatch.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llcolorswatch.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llcolorswatch.cpp')
-rw-r--r--linden/indra/newview/llcolorswatch.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llcolorswatch.cpp b/linden/indra/newview/llcolorswatch.cpp
index 64db86c..d2a0aba 100644
--- a/linden/indra/newview/llcolorswatch.cpp
+++ b/linden/indra/newview/llcolorswatch.cpp
@@ -73,7 +73,7 @@ LLColorSwatchCtrl::LLColorSwatchCtrl(const std::string& name, const LLRect& rect
73 // Scalable UI made this off-by-one, I don't know why. JC 73 // Scalable UI made this off-by-one, I don't know why. JC
74 LLRect border_rect(0, getRect().getHeight()-1, getRect().getWidth()-1, 0); 74 LLRect border_rect(0, getRect().getHeight()-1, getRect().getWidth()-1, 0);
75 border_rect.mBottom += BTN_HEIGHT_SMALL; 75 border_rect.mBottom += BTN_HEIGHT_SMALL;
76 mBorder = new LLViewBorder("border", border_rect, LLViewBorder::BEVEL_IN); 76 mBorder = new LLViewBorder(std::string("border"), border_rect, LLViewBorder::BEVEL_IN);
77 addChild(mBorder); 77 addChild(mBorder);
78 78
79 mAlphaGradientImage = LLUI::getUIImage("color_swatch_alpha.tga"); 79 mAlphaGradientImage = LLUI::getUIImage("color_swatch_alpha.tga");
@@ -100,7 +100,7 @@ LLColorSwatchCtrl::LLColorSwatchCtrl(const std::string& name, const LLRect& rect
100 // Scalable UI made this off-by-one, I don't know why. JC 100 // Scalable UI made this off-by-one, I don't know why. JC
101 LLRect border_rect(0, getRect().getHeight()-1, getRect().getWidth()-1, 0); 101 LLRect border_rect(0, getRect().getHeight()-1, getRect().getWidth()-1, 0);
102 border_rect.mBottom += BTN_HEIGHT_SMALL; 102 border_rect.mBottom += BTN_HEIGHT_SMALL;
103 mBorder = new LLViewBorder("border", border_rect, LLViewBorder::BEVEL_IN); 103 mBorder = new LLViewBorder(std::string("border"), border_rect, LLViewBorder::BEVEL_IN);
104 addChild(mBorder); 104 addChild(mBorder);
105 105
106 mAlphaGradientImage = LLUI::getUIImage("color_swatch_alpha.tga"); 106 mAlphaGradientImage = LLUI::getUIImage("color_swatch_alpha.tga");
@@ -172,7 +172,7 @@ BOOL LLColorSwatchCtrl::handleMouseDown(S32 x, S32 y, MASK mask)
172{ 172{
173 // Route future Mouse messages here preemptively. (Release on mouse up.) 173 // Route future Mouse messages here preemptively. (Release on mouse up.)
174 // No handler is needed for capture lost since this object has no state that depends on it. 174 // No handler is needed for capture lost since this object has no state that depends on it.
175 gViewerWindow->setMouseCapture( this ); 175 gFocusMgr.setMouseCapture( this );
176 176
177 return TRUE; 177 return TRUE;
178} 178}
@@ -184,7 +184,7 @@ BOOL LLColorSwatchCtrl::handleMouseUp(S32 x, S32 y, MASK mask)
184 if( hasMouseCapture() ) 184 if( hasMouseCapture() )
185 { 185 {
186 // Release the mouse 186 // Release the mouse
187 gViewerWindow->setMouseCapture( NULL ); 187 gFocusMgr.setMouseCapture( NULL );
188 188
189 // If mouseup in the widget, it's been clicked 189 // If mouseup in the widget, it's been clicked
190 if ( pointInView(x, y) ) 190 if ( pointInView(x, y) )
@@ -351,10 +351,10 @@ LLXMLNodePtr LLColorSwatchCtrl::getXML(bool save_children) const
351 351
352LLView* LLColorSwatchCtrl::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) 352LLView* LLColorSwatchCtrl::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)
353{ 353{
354 LLString name("colorswatch"); 354 std::string name("colorswatch");
355 node->getAttributeString("name", name); 355 node->getAttributeString("name", name);
356 356
357 LLString label; 357 std::string label;
358 node->getAttributeString("label", label); 358 node->getAttributeString("label", label);
359 359
360 LLColor4 color(1.f, 1.f, 1.f, 1.f); 360 LLColor4 color(1.f, 1.f, 1.f, 1.f);