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/llpaneldirbrowser.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 '')
-rw-r--r-- | linden/indra/newview/llpaneldirbrowser.cpp | 82 |
1 files changed, 36 insertions, 46 deletions
diff --git a/linden/indra/newview/llpaneldirbrowser.cpp b/linden/indra/newview/llpaneldirbrowser.cpp index 4d82023..b37d9fa 100644 --- a/linden/indra/newview/llpaneldirbrowser.cpp +++ b/linden/indra/newview/llpaneldirbrowser.cpp | |||
@@ -185,7 +185,7 @@ void LLPanelDirBrowser::updateResultCount() | |||
185 | LLScrollListCtrl* list = getChild<LLScrollListCtrl>("results"); | 185 | LLScrollListCtrl* list = getChild<LLScrollListCtrl>("results"); |
186 | 186 | ||
187 | S32 result_count = list->getItemCount(); | 187 | S32 result_count = list->getItemCount(); |
188 | LLString result_text; | 188 | std::string result_text; |
189 | 189 | ||
190 | if (!mHaveSearchResults) result_count = 0; | 190 | if (!mHaveSearchResults) result_count = 0; |
191 | 191 | ||
@@ -207,7 +207,7 @@ void LLPanelDirBrowser::updateResultCount() | |||
207 | // add none found response | 207 | // add none found response |
208 | if (list->getItemCount() == 0) | 208 | if (list->getItemCount() == 0) |
209 | { | 209 | { |
210 | list->addCommentText(getString("not_found_text")); | 210 | list->addCommentText(std::string("None found.")); // *TODO: Translate |
211 | list->operateOnAll(LLCtrlListInterface::OP_DESELECT); | 211 | list->operateOnAll(LLCtrlListInterface::OP_DESELECT); |
212 | } | 212 | } |
213 | } | 213 | } |
@@ -324,7 +324,7 @@ void LLPanelDirBrowser::getSelectedInfo(LLUUID* id, S32 *type) | |||
324 | 324 | ||
325 | *id = id_sd.asUUID(); | 325 | *id = id_sd.asUUID(); |
326 | 326 | ||
327 | LLString id_str = id_sd.asString(); | 327 | std::string id_str = id_sd.asString(); |
328 | *type = mResultsContents[id_str]["type"]; | 328 | *type = mResultsContents[id_str]["type"]; |
329 | } | 329 | } |
330 | 330 | ||
@@ -347,7 +347,7 @@ void LLPanelDirBrowser::onCommitList(LLUICtrl* ctrl, void* data) | |||
347 | return; | 347 | return; |
348 | } | 348 | } |
349 | 349 | ||
350 | LLString id_str = self->childGetValue("results").asString(); | 350 | std::string id_str = self->childGetValue("results").asString(); |
351 | if (id_str.empty()) | 351 | if (id_str.empty()) |
352 | { | 352 | { |
353 | return; | 353 | return; |
@@ -361,7 +361,7 @@ void LLPanelDirBrowser::onCommitList(LLUICtrl* ctrl, void* data) | |||
361 | item_id = self->mResultsContents[id_str]["event_id"]; | 361 | item_id = self->mResultsContents[id_str]["event_id"]; |
362 | } | 362 | } |
363 | 363 | ||
364 | //LLString name = self->mResultsContents[id_str]["name"].asString(); | 364 | //std::string name = self->mResultsContents[id_str]["name"].asString(); |
365 | self->showDetailPanel(type, item_id); | 365 | self->showDetailPanel(type, item_id); |
366 | } | 366 | } |
367 | 367 | ||
@@ -373,7 +373,7 @@ void LLPanelDirBrowser::showDetailPanel(S32 type, LLSD id) | |||
373 | if (mFloaterDirectory && mFloaterDirectory->mPanelAvatarp) | 373 | if (mFloaterDirectory && mFloaterDirectory->mPanelAvatarp) |
374 | { | 374 | { |
375 | mFloaterDirectory->mPanelAvatarp->setVisible(TRUE); | 375 | mFloaterDirectory->mPanelAvatarp->setVisible(TRUE); |
376 | mFloaterDirectory->mPanelAvatarp->setAvatarID(id.asUUID(), "", ONLINE_STATUS_NO); | 376 | mFloaterDirectory->mPanelAvatarp->setAvatarID(id.asUUID(), LLStringUtil::null, ONLINE_STATUS_NO); |
377 | } | 377 | } |
378 | break; | 378 | break; |
379 | case EVENT_CODE: | 379 | case EVENT_CODE: |
@@ -445,8 +445,8 @@ void LLPanelDirBrowser::showEvent(const U32 event_id) | |||
445 | void LLPanelDirBrowser::processDirPeopleReply(LLMessageSystem *msg, void**) | 445 | void LLPanelDirBrowser::processDirPeopleReply(LLMessageSystem *msg, void**) |
446 | { | 446 | { |
447 | LLUUID query_id; | 447 | LLUUID query_id; |
448 | char first_name[DB_FIRST_NAME_BUF_SIZE]; /* Flawfinder: ignore */ | 448 | std::string first_name; |
449 | char last_name[DB_LAST_NAME_BUF_SIZE]; /* Flawfinder: ignore */ | 449 | std::string last_name; |
450 | LLUUID agent_id; | 450 | LLUUID agent_id; |
451 | 451 | ||
452 | msg->getUUIDFast(_PREHASH_QueryData,_PREHASH_QueryID, query_id); | 452 | msg->getUUIDFast(_PREHASH_QueryData,_PREHASH_QueryID, query_id); |
@@ -477,12 +477,12 @@ void LLPanelDirBrowser::processDirPeopleReply(LLMessageSystem *msg, void**) | |||
477 | 477 | ||
478 | for (S32 i = 0; i < rows; i++) | 478 | for (S32 i = 0; i < rows; i++) |
479 | { | 479 | { |
480 | msg->getStringFast(_PREHASH_QueryReplies,_PREHASH_FirstName, DB_FIRST_NAME_BUF_SIZE, first_name, i); | 480 | msg->getStringFast(_PREHASH_QueryReplies,_PREHASH_FirstName, first_name, i); |
481 | msg->getStringFast(_PREHASH_QueryReplies,_PREHASH_LastName, DB_LAST_NAME_BUF_SIZE, last_name, i); | 481 | msg->getStringFast(_PREHASH_QueryReplies,_PREHASH_LastName, last_name, i); |
482 | msg->getUUIDFast( _PREHASH_QueryReplies,_PREHASH_AgentID, agent_id, i); | 482 | msg->getUUIDFast( _PREHASH_QueryReplies,_PREHASH_AgentID, agent_id, i); |
483 | // msg->getU8Fast( _PREHASH_QueryReplies,_PREHASH_Online, online, i); | 483 | // msg->getU8Fast( _PREHASH_QueryReplies,_PREHASH_Online, online, i); |
484 | // unused | 484 | // unused |
485 | // msg->getStringFast(_PREHASH_QueryReplies,_PREHASH_Group, DB_GROUP_NAME_BUF_SIZE, group, i); | 485 | // msg->getStringFast(_PREHASH_QueryReplies,_PREHASH_Group, group, i); |
486 | // msg->getS32Fast( _PREHASH_QueryReplies,_PREHASH_Reputation, reputation, i); | 486 | // msg->getS32Fast( _PREHASH_QueryReplies,_PREHASH_Reputation, reputation, i); |
487 | 487 | ||
488 | if (agent_id.isNull()) | 488 | if (agent_id.isNull()) |
@@ -503,7 +503,7 @@ void LLPanelDirBrowser::processDirPeopleReply(LLMessageSystem *msg, void**) | |||
503 | 503 | ||
504 | content["type"] = AVATAR_CODE; | 504 | content["type"] = AVATAR_CODE; |
505 | 505 | ||
506 | LLString fullname = LLString(first_name) + " " + LLString(last_name); | 506 | std::string fullname = first_name + " " + last_name; |
507 | row["columns"][1]["column"] = "name"; | 507 | row["columns"][1]["column"] = "name"; |
508 | row["columns"][1]["value"] = fullname; | 508 | row["columns"][1]["value"] = fullname; |
509 | row["columns"][1]["font"] = "SANSSERIF"; | 509 | row["columns"][1]["font"] = "SANSSERIF"; |
@@ -528,7 +528,7 @@ void LLPanelDirBrowser::processDirPlacesReply(LLMessageSystem* msg, void**) | |||
528 | LLUUID agent_id; | 528 | LLUUID agent_id; |
529 | LLUUID query_id; | 529 | LLUUID query_id; |
530 | LLUUID parcel_id; | 530 | LLUUID parcel_id; |
531 | char name[MAX_STRING]; /*Flawfinder: ignore*/ | 531 | std::string name; |
532 | BOOL is_for_sale; | 532 | BOOL is_for_sale; |
533 | BOOL is_auction; | 533 | BOOL is_auction; |
534 | F32 dwell; | 534 | F32 dwell; |
@@ -555,16 +555,15 @@ void LLPanelDirBrowser::processDirPlacesReply(LLMessageSystem* msg, void**) | |||
555 | self->mResultsContents = LLSD(); | 555 | self->mResultsContents = LLSD(); |
556 | } | 556 | } |
557 | 557 | ||
558 | S32 i; | ||
559 | S32 count = msg->getNumberOfBlocks("QueryReplies"); | 558 | S32 count = msg->getNumberOfBlocks("QueryReplies"); |
560 | self->mResultsReceived += count; | 559 | self->mResultsReceived += count; |
561 | 560 | ||
562 | count = self->showNextButton(count); | 561 | count = self->showNextButton(count); |
563 | 562 | ||
564 | for (i = 0; i < count ; i++) | 563 | for (S32 i = 0; i < count ; i++) |
565 | { | 564 | { |
566 | msg->getUUID("QueryReplies", "ParcelID", parcel_id, i); | 565 | msg->getUUID("QueryReplies", "ParcelID", parcel_id, i); |
567 | msg->getString("QueryReplies", "Name", MAX_STRING, name, i); | 566 | msg->getString("QueryReplies", "Name", name, i); |
568 | msg->getBOOL("QueryReplies", "ForSale", is_for_sale, i); | 567 | msg->getBOOL("QueryReplies", "ForSale", is_for_sale, i); |
569 | msg->getBOOL("QueryReplies", "Auction", is_auction, i); | 568 | msg->getBOOL("QueryReplies", "Auction", is_auction, i); |
570 | msg->getF32("QueryReplies", "Dwell", dwell, i); | 569 | msg->getF32("QueryReplies", "Dwell", dwell, i); |
@@ -577,12 +576,12 @@ void LLPanelDirBrowser::processDirPlacesReply(LLMessageSystem* msg, void**) | |||
577 | LLSD content; | 576 | LLSD content; |
578 | S32 type; | 577 | S32 type; |
579 | 578 | ||
580 | LLSD row = self->createLandSale(parcel_id, is_auction, is_for_sale, name, &type); | 579 | LLSD row = self->createLandSale(parcel_id, is_auction, is_for_sale, name, &type); |
581 | 580 | ||
582 | content["type"] = type; | 581 | content["type"] = type; |
583 | content["name"] = name; | 582 | content["name"] = name; |
584 | 583 | ||
585 | LLString buffer = llformat("%.0f", (F64)dwell); | 584 | std::string buffer = llformat("%.0f", (F64)dwell); |
586 | row["columns"][3]["column"] = "dwell"; | 585 | row["columns"][3]["column"] = "dwell"; |
587 | row["columns"][3]["value"] = buffer; | 586 | row["columns"][3]["value"] = buffer; |
588 | row["columns"][3]["font"] = "SANSSERIFSMALL"; | 587 | row["columns"][3]["font"] = "SANSSERIFSMALL"; |
@@ -605,8 +604,8 @@ void LLPanelDirBrowser::processDirEventsReply(LLMessageSystem* msg, void**) | |||
605 | LLUUID agent_id; | 604 | LLUUID agent_id; |
606 | LLUUID query_id; | 605 | LLUUID query_id; |
607 | LLUUID owner_id; | 606 | LLUUID owner_id; |
608 | char name[MAX_STRING]; /*Flawfinder: ignore*/ | 607 | std::string name; |
609 | char date[MAX_STRING]; /*Flawfinder: ignore*/ | 608 | std::string date; |
610 | BOOL show_mature = gSavedSettings.getBOOL("ShowMatureEvents"); | 609 | BOOL show_mature = gSavedSettings.getBOOL("ShowMatureEvents"); |
611 | 610 | ||
612 | msg->getUUID("AgentData", "AgentID", agent_id); | 611 | msg->getUUID("AgentData", "AgentID", agent_id); |
@@ -642,9 +641,9 @@ void LLPanelDirBrowser::processDirEventsReply(LLMessageSystem* msg, void**) | |||
642 | U32 event_flags; | 641 | U32 event_flags; |
643 | 642 | ||
644 | msg->getUUID("QueryReplies", "OwnerID", owner_id, i); | 643 | msg->getUUID("QueryReplies", "OwnerID", owner_id, i); |
645 | msg->getString("QueryReplies", "Name", MAX_STRING, name, i); | 644 | msg->getString("QueryReplies", "Name", name, i); |
646 | msg->getU32("QueryReplies", "EventID", event_id, i); | 645 | msg->getU32("QueryReplies", "EventID", event_id, i); |
647 | msg->getString("QueryReplies", "Date", MAX_STRING, date, i); | 646 | msg->getString("QueryReplies", "Date", date, i); |
648 | msg->getU32("QueryReplies", "UnixTime", unix_time, i); | 647 | msg->getU32("QueryReplies", "UnixTime", unix_time, i); |
649 | msg->getU32("QueryReplies", "EventFlags", event_flags, i); | 648 | msg->getU32("QueryReplies", "EventFlags", event_flags, i); |
650 | 649 | ||
@@ -701,7 +700,7 @@ void LLPanelDirBrowser::processDirEventsReply(LLMessageSystem* msg, void**) | |||
701 | 700 | ||
702 | list->addElement(row, ADD_SORTED); | 701 | list->addElement(row, ADD_SORTED); |
703 | 702 | ||
704 | LLString id_str = llformat("%u", event_id); | 703 | std::string id_str = llformat("%u", event_id); |
705 | self->mResultsContents[id_str] = content; | 704 | self->mResultsContents[id_str] = content; |
706 | } | 705 | } |
707 | 706 | ||
@@ -721,7 +720,7 @@ void LLPanelDirBrowser::processDirGroupsReply(LLMessageSystem* msg, void**) | |||
721 | 720 | ||
722 | LLUUID query_id; | 721 | LLUUID query_id; |
723 | LLUUID group_id; | 722 | LLUUID group_id; |
724 | char group_name[DB_GROUP_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ | 723 | std::string group_name; |
725 | S32 members; | 724 | S32 members; |
726 | F32 search_order; | 725 | F32 search_order; |
727 | 726 | ||
@@ -753,7 +752,7 @@ void LLPanelDirBrowser::processDirGroupsReply(LLMessageSystem* msg, void**) | |||
753 | for (i = 0; i < rows; i++) | 752 | for (i = 0; i < rows; i++) |
754 | { | 753 | { |
755 | msg->getUUIDFast(_PREHASH_QueryReplies, _PREHASH_GroupID, group_id, i ); | 754 | msg->getUUIDFast(_PREHASH_QueryReplies, _PREHASH_GroupID, group_id, i ); |
756 | msg->getStringFast(_PREHASH_QueryReplies, _PREHASH_GroupName, DB_GROUP_NAME_BUF_SIZE, group_name, i); | 755 | msg->getStringFast(_PREHASH_QueryReplies, _PREHASH_GroupName, group_name, i); |
757 | msg->getS32Fast(_PREHASH_QueryReplies, _PREHASH_Members, members, i ); | 756 | msg->getS32Fast(_PREHASH_QueryReplies, _PREHASH_Members, members, i ); |
758 | msg->getF32Fast(_PREHASH_QueryReplies, _PREHASH_SearchOrder, search_order, i ); | 757 | msg->getF32Fast(_PREHASH_QueryReplies, _PREHASH_SearchOrder, search_order, i ); |
759 | 758 | ||
@@ -839,12 +838,12 @@ void LLPanelDirBrowser::processDirClassifiedReply(LLMessageSystem* msg, void**) | |||
839 | for (i = 0; i < num_new_rows; i++) | 838 | for (i = 0; i < num_new_rows; i++) |
840 | { | 839 | { |
841 | LLUUID classified_id; | 840 | LLUUID classified_id; |
842 | char name[DB_PARCEL_NAME_SIZE]; /*Flawfinder: ignore*/ | 841 | std::string name; |
843 | U32 creation_date = 0; // unix timestamp | 842 | U32 creation_date = 0; // unix timestamp |
844 | U32 expiration_date = 0; // future use | 843 | U32 expiration_date = 0; // future use |
845 | S32 price_for_listing = 0; | 844 | S32 price_for_listing = 0; |
846 | msg->getUUID("QueryReplies", "ClassifiedID", classified_id, i); | 845 | msg->getUUID("QueryReplies", "ClassifiedID", classified_id, i); |
847 | msg->getString("QueryReplies", "Name", DB_PARCEL_NAME_SIZE, name, i); | 846 | msg->getString("QueryReplies", "Name", name, i); |
848 | msg->getU32("QueryReplies","CreationDate",creation_date,i); | 847 | msg->getU32("QueryReplies","CreationDate",creation_date,i); |
849 | msg->getU32("QueryReplies","ExpirationDate",expiration_date,i); | 848 | msg->getU32("QueryReplies","ExpirationDate",expiration_date,i); |
850 | msg->getS32("QueryReplies","PriceForListing",price_for_listing,i); | 849 | msg->getS32("QueryReplies","PriceForListing",price_for_listing,i); |
@@ -872,7 +871,7 @@ void LLPanelDirBrowser::processDirLandReply(LLMessageSystem *msg, void**) | |||
872 | LLUUID agent_id; | 871 | LLUUID agent_id; |
873 | LLUUID query_id; | 872 | LLUUID query_id; |
874 | LLUUID parcel_id; | 873 | LLUUID parcel_id; |
875 | char name[MAX_STRING]; /*Flawfinder: ignore*/ | 874 | std::string name; |
876 | BOOL auction; | 875 | BOOL auction; |
877 | BOOL for_sale; | 876 | BOOL for_sale; |
878 | S32 sale_price; | 877 | S32 sale_price; |
@@ -917,7 +916,7 @@ void LLPanelDirBrowser::processDirLandReply(LLMessageSystem *msg, void**) | |||
917 | for (i = 0; i < count; i++) | 916 | for (i = 0; i < count; i++) |
918 | { | 917 | { |
919 | msg->getUUID( "QueryReplies", "ParcelID", parcel_id, i); | 918 | msg->getUUID( "QueryReplies", "ParcelID", parcel_id, i); |
920 | msg->getString( "QueryReplies", "Name", MAX_STRING, name, i); | 919 | msg->getString( "QueryReplies", "Name", name, i); |
921 | msg->getBOOL( "QueryReplies", "Auction", auction, i); | 920 | msg->getBOOL( "QueryReplies", "Auction", auction, i); |
922 | msg->getBOOL( "QueryReplies", "ForSale", for_sale, i); | 921 | msg->getBOOL( "QueryReplies", "ForSale", for_sale, i); |
923 | msg->getS32( "QueryReplies", "SalePrice", sale_price, i); | 922 | msg->getS32( "QueryReplies", "SalePrice", sale_price, i); |
@@ -937,7 +936,7 @@ void LLPanelDirBrowser::processDirLandReply(LLMessageSystem *msg, void**) | |||
937 | content["type"] = type; | 936 | content["type"] = type; |
938 | content["name"] = name; | 937 | content["name"] = name; |
939 | 938 | ||
940 | LLString buffer = "Auction"; | 939 | std::string buffer = "Auction"; |
941 | if (!auction) | 940 | if (!auction) |
942 | { | 941 | { |
943 | buffer = llformat("%d", sale_price); | 942 | buffer = llformat("%d", sale_price); |
@@ -987,7 +986,7 @@ void LLPanelDirBrowser::processDirLandReply(LLMessageSystem *msg, void**) | |||
987 | count = self->showNextButton(non_auction_count); | 986 | count = self->showNextButton(non_auction_count); |
988 | 987 | ||
989 | // Empty string will sort by current sort options. | 988 | // Empty string will sort by current sort options. |
990 | list->sortByColumn("",FALSE); | 989 | list->sortByColumn(LLStringUtil::null,FALSE); |
991 | self->updateResultCount(); | 990 | self->updateResultCount(); |
992 | 991 | ||
993 | // Poke the result received timer | 992 | // Poke the result received timer |
@@ -995,9 +994,9 @@ void LLPanelDirBrowser::processDirLandReply(LLMessageSystem *msg, void**) | |||
995 | self->mDidAutoSelect = FALSE; | 994 | self->mDidAutoSelect = FALSE; |
996 | } | 995 | } |
997 | 996 | ||
998 | void LLPanelDirBrowser::addClassified(LLCtrlListInterface *list, const LLUUID& pick_id, const char* name, const U32 creation_date, const S32 price_for_listing) | 997 | void LLPanelDirBrowser::addClassified(LLCtrlListInterface *list, const LLUUID& pick_id, const std::string& name, const U32 creation_date, const S32 price_for_listing) |
999 | { | 998 | { |
1000 | LLString type = llformat("%d", CLASSIFIED_CODE); | 999 | std::string type = llformat("%d", CLASSIFIED_CODE); |
1001 | 1000 | ||
1002 | LLSD row; | 1001 | LLSD row; |
1003 | row["id"] = pick_id; | 1002 | row["id"] = pick_id; |
@@ -1017,7 +1016,7 @@ void LLPanelDirBrowser::addClassified(LLCtrlListInterface *list, const LLUUID& p | |||
1017 | list->addElement(row); | 1016 | list->addElement(row); |
1018 | } | 1017 | } |
1019 | 1018 | ||
1020 | LLSD LLPanelDirBrowser::createLandSale(const LLUUID& parcel_id, BOOL is_auction, BOOL is_for_sale, const LLString& name, S32 *type) | 1019 | LLSD LLPanelDirBrowser::createLandSale(const LLUUID& parcel_id, BOOL is_auction, BOOL is_for_sale, const std::string& name, S32 *type) |
1021 | { | 1020 | { |
1022 | LLSD row; | 1021 | LLSD row; |
1023 | row["id"] = parcel_id; | 1022 | row["id"] = parcel_id; |
@@ -1074,7 +1073,7 @@ void LLPanelDirBrowser::newClassified() | |||
1074 | LLUUID classified_id = mFloaterDirectory->mPanelClassifiedp->getClassifiedID(); | 1073 | LLUUID classified_id = mFloaterDirectory->mPanelClassifiedp->getClassifiedID(); |
1075 | 1074 | ||
1076 | // Put it in the list on the left | 1075 | // Put it in the list on the left |
1077 | addClassified(list, classified_id, mFloaterDirectory->mPanelClassifiedp->getClassifiedName().c_str(),0,0); | 1076 | addClassified(list, classified_id, mFloaterDirectory->mPanelClassifiedp->getClassifiedName(),0,0); |
1078 | 1077 | ||
1079 | // Select it. | 1078 | // Select it. |
1080 | list->setCurrentByID(classified_id); | 1079 | list->setCurrentByID(classified_id); |
@@ -1096,7 +1095,7 @@ void LLPanelDirBrowser::setupNewSearch() | |||
1096 | 1095 | ||
1097 | // ready the list for results | 1096 | // ready the list for results |
1098 | list->operateOnAll(LLCtrlListInterface::OP_DELETE); | 1097 | list->operateOnAll(LLCtrlListInterface::OP_DELETE); |
1099 | list->addCommentText(getString("searching_text")); | 1098 | list->addCommentText(std::string("Searching...")); // *TODO: Translate |
1100 | childDisable("results"); | 1099 | childDisable("results"); |
1101 | 1100 | ||
1102 | mResultsReceived = 0; | 1101 | mResultsReceived = 0; |
@@ -1127,7 +1126,7 @@ void LLPanelDirBrowser::onClickSearchCore(void* userdata) | |||
1127 | void LLPanelDirBrowser::sendDirFindQuery( | 1126 | void LLPanelDirBrowser::sendDirFindQuery( |
1128 | LLMessageSystem* msg, | 1127 | LLMessageSystem* msg, |
1129 | const LLUUID& query_id, | 1128 | const LLUUID& query_id, |
1130 | const LLString& text, | 1129 | const std::string& text, |
1131 | U32 flags, | 1130 | U32 flags, |
1132 | S32 query_start) | 1131 | S32 query_start) |
1133 | { | 1132 | { |
@@ -1144,15 +1143,6 @@ void LLPanelDirBrowser::sendDirFindQuery( | |||
1144 | } | 1143 | } |
1145 | 1144 | ||
1146 | 1145 | ||
1147 | void LLPanelDirBrowser::addHelpText(const char* text) | ||
1148 | { | ||
1149 | LLScrollListCtrl* list = getChild<LLScrollListCtrl>("results"); | ||
1150 | |||
1151 | list->addCommentText(text); | ||
1152 | childDisable("results"); | ||
1153 | } | ||
1154 | |||
1155 | |||
1156 | void LLPanelDirBrowser::onKeystrokeName(LLLineEditor* line, void* data) | 1146 | void LLPanelDirBrowser::onKeystrokeName(LLLineEditor* line, void* data) |
1157 | { | 1147 | { |
1158 | LLPanelDirBrowser *self = (LLPanelDirBrowser*)data; | 1148 | LLPanelDirBrowser *self = (LLPanelDirBrowser*)data; |