aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldebugmessagebox.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lldebugmessagebox.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/newview/lldebugmessagebox.cpp b/linden/indra/newview/lldebugmessagebox.cpp
index 8d516d8..c8596f0 100644
--- a/linden/indra/newview/lldebugmessagebox.cpp
+++ b/linden/indra/newview/lldebugmessagebox.cpp
@@ -46,34 +46,34 @@
46/// Class LLDebugVarMessageBox 46/// Class LLDebugVarMessageBox
47///---------------------------------------------------------------------------- 47///----------------------------------------------------------------------------
48 48
49std::map<LLString, LLDebugVarMessageBox*> LLDebugVarMessageBox::sInstances; 49std::map<std::string, LLDebugVarMessageBox*> LLDebugVarMessageBox::sInstances;
50 50
51LLDebugVarMessageBox::LLDebugVarMessageBox(const std::string& title, EDebugVarType var_type, void *var) : 51LLDebugVarMessageBox::LLDebugVarMessageBox(const std::string& title, EDebugVarType var_type, void *var) :
52 LLFloater("msg box", LLRect(10,160,400,10), title), 52 LLFloater(std::string("msg box"), LLRect(10,160,400,10), title),
53 mVarType(var_type), mVarData(var), mAnimate(FALSE) 53 mVarType(var_type), mVarData(var), mAnimate(FALSE)
54{ 54{
55 switch(var_type) 55 switch(var_type)
56 { 56 {
57 case VAR_TYPE_F32: 57 case VAR_TYPE_F32:
58 mSlider1 = new LLSliderCtrl("slider 1", LLRect(20,130,190,110), title, NULL, 70, 130, TRUE, TRUE, FALSE, NULL, NULL, *((F32*)var), -100.f, 100.f, 0.1f, NULL); 58 mSlider1 = new LLSliderCtrl(std::string("slider 1"), LLRect(20,130,190,110), title, NULL, 70, 130, TRUE, TRUE, FALSE, NULL, NULL, *((F32*)var), -100.f, 100.f, 0.1f, LLStringUtil::null);
59 mSlider1->setPrecision(3); 59 mSlider1->setPrecision(3);
60 addChild(mSlider1); 60 addChild(mSlider1);
61 mSlider2 = NULL; 61 mSlider2 = NULL;
62 mSlider3 = NULL; 62 mSlider3 = NULL;
63 break; 63 break;
64 case VAR_TYPE_S32: 64 case VAR_TYPE_S32:
65 mSlider1 = new LLSliderCtrl("slider 1", LLRect(20,100,190,80), title, NULL, 70, 130, TRUE, TRUE, FALSE, NULL, NULL, (F32)*((S32*)var), -255.f, 255.f, 1.f, NULL); 65 mSlider1 = new LLSliderCtrl(std::string("slider 1"), LLRect(20,100,190,80), title, NULL, 70, 130, TRUE, TRUE, FALSE, NULL, NULL, (F32)*((S32*)var), -255.f, 255.f, 1.f, LLStringUtil::null);
66 mSlider1->setPrecision(0); 66 mSlider1->setPrecision(0);
67 addChild(mSlider1); 67 addChild(mSlider1);
68 mSlider2 = NULL; 68 mSlider2 = NULL;
69 mSlider3 = NULL; 69 mSlider3 = NULL;
70 break; 70 break;
71 case VAR_TYPE_VEC3: 71 case VAR_TYPE_VEC3:
72 mSlider1 = new LLSliderCtrl("slider 1", LLRect(20,130,190,110), "x: ", NULL, 70, 130, TRUE, TRUE, FALSE, NULL, NULL, ((LLVector3*)var)->mV[VX], -100.f, 100.f, 0.1f, NULL); 72 mSlider1 = new LLSliderCtrl(std::string("slider 1"), LLRect(20,130,190,110), std::string("x: "), NULL, 70, 130, TRUE, TRUE, FALSE, NULL, NULL, ((LLVector3*)var)->mV[VX], -100.f, 100.f, 0.1f, LLStringUtil::null);
73 mSlider1->setPrecision(3); 73 mSlider1->setPrecision(3);
74 mSlider2 = new LLSliderCtrl("slider 2", LLRect(20,100,190,80), "y: ", NULL, 70, 130, TRUE, TRUE, FALSE, NULL, NULL, ((LLVector3*)var)->mV[VY], -100.f, 100.f, 0.1f, NULL); 74 mSlider2 = new LLSliderCtrl(std::string("slider 2"), LLRect(20,100,190,80), std::string("y: "), NULL, 70, 130, TRUE, TRUE, FALSE, NULL, NULL, ((LLVector3*)var)->mV[VY], -100.f, 100.f, 0.1f, LLStringUtil::null);
75 mSlider2->setPrecision(3); 75 mSlider2->setPrecision(3);
76 mSlider3 = new LLSliderCtrl("slider 3", LLRect(20,70,190,50), "z: ", NULL, 70, 130, TRUE, TRUE, FALSE, NULL, NULL, ((LLVector3*)var)->mV[VZ], -100.f, 100.f, 0.1f, NULL); 76 mSlider3 = new LLSliderCtrl(std::string("slider 3"), LLRect(20,70,190,50), std::string("z: "), NULL, 70, 130, TRUE, TRUE, FALSE, NULL, NULL, ((LLVector3*)var)->mV[VZ], -100.f, 100.f, 0.1f, LLStringUtil::null);
77 mSlider3->setPrecision(3); 77 mSlider3->setPrecision(3);
78 addChild(mSlider1); 78 addChild(mSlider1);
79 addChild(mSlider2); 79 addChild(mSlider2);
@@ -84,10 +84,10 @@ LLDebugVarMessageBox::LLDebugVarMessageBox(const std::string& title, EDebugVarTy
84 break; 84 break;
85 } 85 }
86 86
87 mAnimateButton = new LLButton("Animate", LLRect(20, 45, 180, 25), "", onAnimateClicked, this); 87 mAnimateButton = new LLButton(std::string("Animate"), LLRect(20, 45, 180, 25), LLStringUtil::null, onAnimateClicked, this);
88 addChild(mAnimateButton); 88 addChild(mAnimateButton);
89 89
90 mText = new LLTextBox("value", LLRect(20,20,190,0)); 90 mText = new LLTextBox(std::string("value"), LLRect(20,20,190,0));
91 addChild(mText); 91 addChild(mText);
92 92
93 //disable hitting enter closes dialog 93 //disable hitting enter closes dialog
@@ -160,7 +160,7 @@ void LLDebugVarMessageBox::show(const std::string& title, LLVector3 *var, LLVect
160 160
161LLDebugVarMessageBox* LLDebugVarMessageBox::show(const std::string& title, EDebugVarType var_type, void *var) 161LLDebugVarMessageBox* LLDebugVarMessageBox::show(const std::string& title, EDebugVarType var_type, void *var)
162{ 162{
163 LLString title_string(title); 163 std::string title_string(title);
164 164
165 LLDebugVarMessageBox *box = sInstances[title_string]; 165 LLDebugVarMessageBox *box = sInstances[title_string];
166 if (!box) 166 if (!box)
@@ -217,7 +217,7 @@ void LLDebugVarMessageBox::onClose(bool app_quitting)
217 217
218void LLDebugVarMessageBox::draw() 218void LLDebugVarMessageBox::draw()
219{ 219{
220 LLString text; 220 std::string text;
221 switch(mVarType) 221 switch(mVarType)
222 { 222 {
223 case VAR_TYPE_F32: 223 case VAR_TYPE_F32: