diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llpreviewgesture.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-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/llpreviewgesture.cpp')
-rw-r--r-- | linden/indra/newview/llpreviewgesture.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/linden/indra/newview/llpreviewgesture.cpp b/linden/indra/newview/llpreviewgesture.cpp index c53eab7..c0c3c93 100644 --- a/linden/indra/newview/llpreviewgesture.cpp +++ b/linden/indra/newview/llpreviewgesture.cpp | |||
@@ -72,9 +72,9 @@ | |||
72 | 72 | ||
73 | 73 | ||
74 | // *TODO: Translate? | 74 | // *TODO: Translate? |
75 | const char NONE_LABEL[] = "---"; | 75 | const std::string NONE_LABEL = "---"; |
76 | const char SHIFT_LABEL[] = "Shift"; | 76 | const std::string SHIFT_LABEL = "Shift"; |
77 | const char CTRL_LABEL[] = "Ctrl"; | 77 | const std::string CTRL_LABEL = "Ctrl"; |
78 | 78 | ||
79 | void dialog_refresh_all(); | 79 | void dialog_refresh_all(); |
80 | 80 | ||
@@ -111,7 +111,7 @@ struct SortItemPtrsByName | |||
111 | { | 111 | { |
112 | bool operator()(const LLInventoryItem* i1, const LLInventoryItem* i2) | 112 | bool operator()(const LLInventoryItem* i1, const LLInventoryItem* i2) |
113 | { | 113 | { |
114 | return (LLString::compareDict(i1->getName(), i2->getName()) < 0); | 114 | return (LLStringUtil::compareDict(i1->getName(), i2->getName()) < 0); |
115 | } | 115 | } |
116 | }; | 116 | }; |
117 | 117 | ||
@@ -203,7 +203,7 @@ BOOL LLPreviewGesture::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, | |||
203 | EDragAndDropType cargo_type, | 203 | EDragAndDropType cargo_type, |
204 | void* cargo_data, | 204 | void* cargo_data, |
205 | EAcceptance* accept, | 205 | EAcceptance* accept, |
206 | LLString& tooltip_msg) | 206 | std::string& tooltip_msg) |
207 | { | 207 | { |
208 | BOOL handled = TRUE; | 208 | BOOL handled = TRUE; |
209 | switch(cargo_type) | 209 | switch(cargo_type) |
@@ -584,7 +584,7 @@ void LLPreviewGesture::addAnimations() | |||
584 | 584 | ||
585 | combo->removeall(); | 585 | combo->removeall(); |
586 | 586 | ||
587 | LLString none_text = getString("none_text"); | 587 | std::string none_text = getString("none_text"); |
588 | 588 | ||
589 | combo->add(none_text, LLUUID::null); | 589 | combo->add(none_text, LLUUID::null); |
590 | 590 | ||
@@ -639,7 +639,7 @@ void LLPreviewGesture::addSounds() | |||
639 | LLComboBox* combo = mSoundCombo; | 639 | LLComboBox* combo = mSoundCombo; |
640 | combo->removeall(); | 640 | combo->removeall(); |
641 | 641 | ||
642 | LLString none_text = getString("none_text"); | 642 | std::string none_text = getString("none_text"); |
643 | 643 | ||
644 | combo->add(none_text, LLUUID::null); | 644 | combo->add(none_text, LLUUID::null); |
645 | 645 | ||
@@ -775,7 +775,7 @@ void LLPreviewGesture::refresh() | |||
775 | mWaitTimeCheck->setVisible(FALSE); | 775 | mWaitTimeCheck->setVisible(FALSE); |
776 | mWaitTimeEditor->setVisible(FALSE); | 776 | mWaitTimeEditor->setVisible(FALSE); |
777 | 777 | ||
778 | LLString optionstext; | 778 | std::string optionstext; |
779 | 779 | ||
780 | if (have_step) | 780 | if (have_step) |
781 | { | 781 | { |
@@ -995,13 +995,13 @@ void LLPreviewGesture::loadUIFromGesture(LLMultiGesture* gesture) | |||
995 | { | 995 | { |
996 | default: | 996 | default: |
997 | case MASK_NONE: | 997 | case MASK_NONE: |
998 | mModifierCombo->setSimple( LLString(NONE_LABEL) ); | 998 | mModifierCombo->setSimple( NONE_LABEL ); |
999 | break; | 999 | break; |
1000 | case MASK_SHIFT: | 1000 | case MASK_SHIFT: |
1001 | mModifierCombo->setSimple( LLString(SHIFT_LABEL) ); | 1001 | mModifierCombo->setSimple( SHIFT_LABEL ); |
1002 | break; | 1002 | break; |
1003 | case MASK_CONTROL: | 1003 | case MASK_CONTROL: |
1004 | mModifierCombo->setSimple( LLString(CTRL_LABEL) ); | 1004 | mModifierCombo->setSimple( CTRL_LABEL ); |
1005 | break; | 1005 | break; |
1006 | } | 1006 | } |
1007 | 1007 | ||
@@ -1075,7 +1075,7 @@ void LLPreviewGesture::loadUIFromGesture(LLMultiGesture* gesture) | |||
1075 | // after the save finishes. | 1075 | // after the save finishes. |
1076 | struct LLSaveInfo | 1076 | struct LLSaveInfo |
1077 | { | 1077 | { |
1078 | LLSaveInfo(const LLUUID& item_id, const LLUUID& object_id, const LLString& desc, | 1078 | LLSaveInfo(const LLUUID& item_id, const LLUUID& object_id, const std::string& desc, |
1079 | const LLTransactionID tid) | 1079 | const LLTransactionID tid) |
1080 | : mItemUUID(item_id), mObjectUUID(object_id), mDesc(desc), mTransactionID(tid) | 1080 | : mItemUUID(item_id), mObjectUUID(object_id), mDesc(desc), mTransactionID(tid) |
1081 | { | 1081 | { |
@@ -1083,7 +1083,7 @@ struct LLSaveInfo | |||
1083 | 1083 | ||
1084 | LLUUID mItemUUID; | 1084 | LLUUID mItemUUID; |
1085 | LLUUID mObjectUUID; | 1085 | LLUUID mObjectUUID; |
1086 | LLString mDesc; | 1086 | std::string mDesc; |
1087 | LLTransactionID mTransactionID; | 1087 | LLTransactionID mTransactionID; |
1088 | }; | 1088 | }; |
1089 | 1089 | ||
@@ -1274,7 +1274,7 @@ void LLPreviewGesture::onSaveComplete(const LLUUID& asset_uuid, void* user_data, | |||
1274 | else | 1274 | else |
1275 | { | 1275 | { |
1276 | llwarns << "Problem saving gesture: " << status << llendl; | 1276 | llwarns << "Problem saving gesture: " << status << llendl; |
1277 | LLStringBase<char>::format_map_t args; | 1277 | LLStringUtil::format_map_t args; |
1278 | args["[REASON]"] = std::string(LLAssetStorage::getErrorString(status)); | 1278 | args["[REASON]"] = std::string(LLAssetStorage::getErrorString(status)); |
1279 | gViewerWindow->alertXml("GestureSaveFailedReason",args); | 1279 | gViewerWindow->alertXml("GestureSaveFailedReason",args); |
1280 | } | 1280 | } |
@@ -1290,7 +1290,7 @@ LLMultiGesture* LLPreviewGesture::createGesture() | |||
1290 | gesture->mTrigger = mTriggerEditor->getText(); | 1290 | gesture->mTrigger = mTriggerEditor->getText(); |
1291 | gesture->mReplaceText = mReplaceEditor->getText(); | 1291 | gesture->mReplaceText = mReplaceEditor->getText(); |
1292 | 1292 | ||
1293 | const LLString& modifier = mModifierCombo->getSimple(); | 1293 | const std::string& modifier = mModifierCombo->getSimple(); |
1294 | if (modifier == CTRL_LABEL) | 1294 | if (modifier == CTRL_LABEL) |
1295 | { | 1295 | { |
1296 | gesture->mMask = MASK_CONTROL; | 1296 | gesture->mMask = MASK_CONTROL; |
@@ -1310,8 +1310,8 @@ LLMultiGesture* LLPreviewGesture::createGesture() | |||
1310 | } | 1310 | } |
1311 | else | 1311 | else |
1312 | { | 1312 | { |
1313 | const LLString& key_string = mKeyCombo->getSimple(); | 1313 | const std::string& key_string = mKeyCombo->getSimple(); |
1314 | LLKeyboard::keyFromString(key_string.c_str(), &(gesture->mKey)); | 1314 | LLKeyboard::keyFromString(key_string, &(gesture->mKey)); |
1315 | } | 1315 | } |
1316 | 1316 | ||
1317 | std::vector<LLScrollListItem*> data_list = mStepList->getAllData(); | 1317 | std::vector<LLScrollListItem*> data_list = mStepList->getAllData(); |
@@ -1609,19 +1609,19 @@ void LLPreviewGesture::onClickAdd(void* data) | |||
1609 | LLScrollListItem* LLPreviewGesture::addStep(const std::string& library_text) | 1609 | LLScrollListItem* LLPreviewGesture::addStep(const std::string& library_text) |
1610 | { | 1610 | { |
1611 | LLGestureStep* step = NULL; | 1611 | LLGestureStep* step = NULL; |
1612 | if (!LLString::compareInsensitive(library_text.c_str(), "Animation")) | 1612 | if (!LLStringUtil::compareInsensitive(library_text, "Animation")) |
1613 | { | 1613 | { |
1614 | step = new LLGestureStepAnimation(); | 1614 | step = new LLGestureStepAnimation(); |
1615 | } | 1615 | } |
1616 | else if (!LLString::compareInsensitive(library_text.c_str(), "Sound")) | 1616 | else if (!LLStringUtil::compareInsensitive(library_text, "Sound")) |
1617 | { | 1617 | { |
1618 | step = new LLGestureStepSound(); | 1618 | step = new LLGestureStepSound(); |
1619 | } | 1619 | } |
1620 | else if (!LLString::compareInsensitive(library_text.c_str(), "Chat")) | 1620 | else if (!LLStringUtil::compareInsensitive(library_text, "Chat")) |
1621 | { | 1621 | { |
1622 | step = new LLGestureStepChat(); | 1622 | step = new LLGestureStepChat(); |
1623 | } | 1623 | } |
1624 | else if (!LLString::compareInsensitive(library_text.c_str(), "Wait")) | 1624 | else if (!LLStringUtil::compareInsensitive(library_text, "Wait")) |
1625 | { | 1625 | { |
1626 | step = new LLGestureStepWait(); | 1626 | step = new LLGestureStepWait(); |
1627 | } | 1627 | } |