aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatergesture.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/llfloatergesture.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/llfloatergesture.cpp')
-rw-r--r--linden/indra/newview/llfloatergesture.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/linden/indra/newview/llfloatergesture.cpp b/linden/indra/newview/llfloatergesture.cpp
index e62a589..5383813 100644
--- a/linden/indra/newview/llfloatergesture.cpp
+++ b/linden/indra/newview/llfloatergesture.cpp
@@ -65,7 +65,7 @@ LLFloaterGestureObserver* LLFloaterGesture::sObserver = NULL;
65 65
66BOOL item_name_precedes( LLInventoryItem* a, LLInventoryItem* b ) 66BOOL item_name_precedes( LLInventoryItem* a, LLInventoryItem* b )
67{ 67{
68 return LLString::precedesDict( a->getName(), b->getName() ); 68 return LLStringUtil::precedesDict( a->getName(), b->getName() );
69} 69}
70 70
71class LLFloaterGestureObserver : public LLGestureManagerObserver 71class LLFloaterGestureObserver : public LLGestureManagerObserver
@@ -80,7 +80,7 @@ public:
80// LLFloaterGesture 80// LLFloaterGesture
81//--------------------------------------------------------------------------- 81//---------------------------------------------------------------------------
82LLFloaterGesture::LLFloaterGesture() 82LLFloaterGesture::LLFloaterGesture()
83: LLFloater("Gesture Floater") 83: LLFloater(std::string("Gesture Floater"))
84{ 84{
85 sInstance = this; 85 sInstance = this;
86 86
@@ -105,7 +105,7 @@ LLFloaterGesture::~LLFloaterGesture()
105// virtual 105// virtual
106BOOL LLFloaterGesture::postBuild() 106BOOL LLFloaterGesture::postBuild()
107{ 107{
108 LLString label; 108 std::string label;
109 109
110 // Translate title 110 // Translate title
111 label = getTitle(); 111 label = getTitle();
@@ -159,7 +159,7 @@ void LLFloaterGesture::show()
159 if (list) 159 if (list)
160 { 160 {
161 const BOOL ascending = TRUE; 161 const BOOL ascending = TRUE;
162 list->sortByColumn("name", ascending); 162 list->sortByColumn(std::string("name"), ascending);
163 list->selectFirstItem(); 163 list->selectFirstItem();
164 } 164 }
165 165
@@ -236,7 +236,7 @@ void LLFloaterGesture::buildGestureList()
236 item_name = item->getName(); 236 item_name = item->getName();
237 } 237 }
238 238
239 LLString font_style = "NORMAL"; 239 std::string font_style = "NORMAL";
240 // If gesture is playing, bold it 240 // If gesture is playing, bold it
241 241
242 LLSD element; 242 LLSD element;
@@ -254,8 +254,8 @@ void LLFloaterGesture::buildGestureList()
254 element["columns"][0]["font"] = "SANSSERIF"; 254 element["columns"][0]["font"] = "SANSSERIF";
255 element["columns"][0]["font-style"] = font_style; 255 element["columns"][0]["font-style"] = font_style;
256 256
257 LLString key_string = LLKeyboard::stringFromKey(gesture->mKey); 257 std::string key_string = LLKeyboard::stringFromKey(gesture->mKey);
258 LLString buffer; 258 std::string buffer;
259 259
260 { 260 {
261 if (gesture->mKey == KEY_NONE) 261 if (gesture->mKey == KEY_NONE)
@@ -356,22 +356,22 @@ void LLFloaterGesture::onClickPlay(void* data)
356class GestureShowCallback : public LLInventoryCallback 356class GestureShowCallback : public LLInventoryCallback
357{ 357{
358public: 358public:
359 GestureShowCallback(LLString &title) 359 GestureShowCallback(std::string &title)
360 { 360 {
361 mTitle = title; 361 mTitle = title;
362 } 362 }
363 void fire(const LLUUID &inv_item) 363 void fire(const LLUUID &inv_item)
364 { 364 {
365 LLPreviewGesture::show(mTitle.c_str(), inv_item, LLUUID::null); 365 LLPreviewGesture::show(mTitle, inv_item, LLUUID::null);
366 } 366 }
367private: 367private:
368 LLString mTitle; 368 std::string mTitle;
369}; 369};
370 370
371// static 371// static
372void LLFloaterGesture::onClickNew(void* data) 372void LLFloaterGesture::onClickNew(void* data)
373{ 373{
374 LLString title("Gesture: "); 374 std::string title("Gesture: ");
375 title.append("New Gesture"); 375 title.append("New Gesture");
376 LLPointer<LLInventoryCallback> cb = new GestureShowCallback(title); 376 LLPointer<LLInventoryCallback> cb = new GestureShowCallback(title);
377 create_inventory_item(gAgent.getID(), gAgent.getSessionID(), 377 create_inventory_item(gAgent.getID(), gAgent.getSessionID(),
@@ -392,7 +392,7 @@ void LLFloaterGesture::onClickEdit(void* data)
392 LLInventoryItem* item = gInventory.getItem(item_id); 392 LLInventoryItem* item = gInventory.getItem(item_id);
393 if (!item) return; 393 if (!item) return;
394 394
395 LLString title("Gesture: "); 395 std::string title("Gesture: ");
396 title.append(item->getName()); 396 title.append(item->getName());
397 397
398 LLPreviewGesture* previewp = LLPreviewGesture::show(title, item_id, LLUUID::null); 398 LLPreviewGesture* previewp = LLPreviewGesture::show(title, item_id, LLUUID::null);