diff options
Diffstat (limited to 'linden/indra/newview/llpaneldirbrowser.cpp')
-rw-r--r-- | linden/indra/newview/llpaneldirbrowser.cpp | 43 |
1 files changed, 14 insertions, 29 deletions
diff --git a/linden/indra/newview/llpaneldirbrowser.cpp b/linden/indra/newview/llpaneldirbrowser.cpp index 7f15a85..b65480b 100644 --- a/linden/indra/newview/llpaneldirbrowser.cpp +++ b/linden/indra/newview/llpaneldirbrowser.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 5 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -323,7 +324,6 @@ void LLPanelDirBrowser::onCommitList(LLUICtrl* ctrl, void* data) | |||
323 | { | 324 | { |
324 | self->mFloaterDirectory->mPanelAvatarp->setVisible(TRUE); | 325 | self->mFloaterDirectory->mPanelAvatarp->setVisible(TRUE); |
325 | self->mFloaterDirectory->mPanelAvatarp->setAvatarID(id, name, ONLINE_STATUS_NO); | 326 | self->mFloaterDirectory->mPanelAvatarp->setAvatarID(id, name, ONLINE_STATUS_NO); |
326 | self->mFloaterDirectory->mPanelAvatarp->disableRate(); | ||
327 | } | 327 | } |
328 | break; | 328 | break; |
329 | case EVENT_CODE: | 329 | case EVENT_CODE: |
@@ -491,7 +491,6 @@ void LLPanelDirBrowser::processDirPlacesReply(LLMessageSystem* msg, void**) | |||
491 | char name[MAX_STRING]; /*Flawfinder: ignore*/ | 491 | char name[MAX_STRING]; /*Flawfinder: ignore*/ |
492 | BOOL is_for_sale; | 492 | BOOL is_for_sale; |
493 | BOOL is_auction; | 493 | BOOL is_auction; |
494 | BOOL is_newbie; | ||
495 | F32 dwell; | 494 | F32 dwell; |
496 | 495 | ||
497 | msg->getUUID("AgentData", "AgentID", agent_id); | 496 | msg->getUUID("AgentData", "AgentID", agent_id); |
@@ -528,7 +527,6 @@ void LLPanelDirBrowser::processDirPlacesReply(LLMessageSystem* msg, void**) | |||
528 | msg->getString("QueryReplies", "Name", MAX_STRING, name, i); | 527 | msg->getString("QueryReplies", "Name", MAX_STRING, name, i); |
529 | msg->getBOOL("QueryReplies", "ForSale", is_for_sale, i); | 528 | msg->getBOOL("QueryReplies", "ForSale", is_for_sale, i); |
530 | msg->getBOOL("QueryReplies", "Auction", is_auction, i); | 529 | msg->getBOOL("QueryReplies", "Auction", is_auction, i); |
531 | msg->getBOOL("QueryReplies", "ReservedNewbie", is_newbie, i); | ||
532 | msg->getF32("QueryReplies", "Dwell", dwell, i); | 530 | msg->getF32("QueryReplies", "Dwell", dwell, i); |
533 | 531 | ||
534 | if (parcel_id.isNull()) | 532 | if (parcel_id.isNull()) |
@@ -539,7 +537,7 @@ void LLPanelDirBrowser::processDirPlacesReply(LLMessageSystem* msg, void**) | |||
539 | LLSD content; | 537 | LLSD content; |
540 | S32 type; | 538 | S32 type; |
541 | 539 | ||
542 | LLSD row = self->createLandSale(parcel_id, is_auction, is_for_sale, is_newbie, name, &type); | 540 | LLSD row = self->createLandSale(parcel_id, is_auction, is_for_sale, name, &type); |
543 | 541 | ||
544 | content["type"] = type; | 542 | content["type"] = type; |
545 | content["name"] = name; | 543 | content["name"] = name; |
@@ -767,8 +765,7 @@ void LLPanelDirBrowser::processDirGroupsReply(LLMessageSystem* msg, void**) | |||
767 | LLUUID group_id; | 765 | LLUUID group_id; |
768 | char group_name[DB_GROUP_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ | 766 | char group_name[DB_GROUP_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ |
769 | S32 members; | 767 | S32 members; |
770 | BOOL open_enrollment; | 768 | F32 search_order; |
771 | S32 membership_fee; | ||
772 | 769 | ||
773 | msg->getUUIDFast(_PREHASH_QueryData,_PREHASH_QueryID, query_id ); | 770 | msg->getUUIDFast(_PREHASH_QueryData,_PREHASH_QueryID, query_id ); |
774 | 771 | ||
@@ -800,8 +797,7 @@ void LLPanelDirBrowser::processDirGroupsReply(LLMessageSystem* msg, void**) | |||
800 | msg->getUUIDFast(_PREHASH_QueryReplies, _PREHASH_GroupID, group_id, i ); | 797 | msg->getUUIDFast(_PREHASH_QueryReplies, _PREHASH_GroupID, group_id, i ); |
801 | msg->getStringFast(_PREHASH_QueryReplies, _PREHASH_GroupName, DB_GROUP_NAME_BUF_SIZE, group_name, i); | 798 | msg->getStringFast(_PREHASH_QueryReplies, _PREHASH_GroupName, DB_GROUP_NAME_BUF_SIZE, group_name, i); |
802 | msg->getS32Fast(_PREHASH_QueryReplies, _PREHASH_Members, members, i ); | 799 | msg->getS32Fast(_PREHASH_QueryReplies, _PREHASH_Members, members, i ); |
803 | msg->getBOOLFast(_PREHASH_QueryReplies, _PREHASH_OpenEnrollment, open_enrollment, i ); | 800 | msg->getF32Fast(_PREHASH_QueryReplies, _PREHASH_SearchOrder, search_order, i ); |
804 | msg->getS32Fast(_PREHASH_QueryReplies, _PREHASH_MembershipFee, membership_fee, i ); | ||
805 | 801 | ||
806 | if (group_id.isNull()) | 802 | if (group_id.isNull()) |
807 | { | 803 | { |
@@ -829,6 +825,9 @@ void LLPanelDirBrowser::processDirGroupsReply(LLMessageSystem* msg, void**) | |||
829 | row["columns"][2]["value"] = members; | 825 | row["columns"][2]["value"] = members; |
830 | row["columns"][2]["font"] = "SANSSERIFSMALL"; | 826 | row["columns"][2]["font"] = "SANSSERIFSMALL"; |
831 | 827 | ||
828 | row["columns"][3]["column"] = "score"; | ||
829 | row["columns"][3]["value"] = search_order; | ||
830 | |||
832 | list->addElement(row); | 831 | list->addElement(row); |
833 | self->mResultsContents[group_id.asString()] = content; | 832 | self->mResultsContents[group_id.asString()] = content; |
834 | } | 833 | } |
@@ -921,7 +920,6 @@ void LLPanelDirBrowser::processDirLandReply(LLMessageSystem *msg, void**) | |||
921 | BOOL for_sale; | 920 | BOOL for_sale; |
922 | S32 sale_price; | 921 | S32 sale_price; |
923 | S32 actual_area; | 922 | S32 actual_area; |
924 | BOOL is_newbie; | ||
925 | 923 | ||
926 | msg->getUUID("AgentData", "AgentID", agent_id); | 924 | msg->getUUID("AgentData", "AgentID", agent_id); |
927 | msg->getUUID("QueryData", "QueryID", query_id ); | 925 | msg->getUUID("QueryData", "QueryID", query_id ); |
@@ -965,7 +963,6 @@ void LLPanelDirBrowser::processDirLandReply(LLMessageSystem *msg, void**) | |||
965 | msg->getString( "QueryReplies", "Name", MAX_STRING, name, i); | 963 | msg->getString( "QueryReplies", "Name", MAX_STRING, name, i); |
966 | msg->getBOOL( "QueryReplies", "Auction", auction, i); | 964 | msg->getBOOL( "QueryReplies", "Auction", auction, i); |
967 | msg->getBOOL( "QueryReplies", "ForSale", for_sale, i); | 965 | msg->getBOOL( "QueryReplies", "ForSale", for_sale, i); |
968 | msg->getBOOL( "QueryReplies", "ReservedNewbie", is_newbie, i); | ||
969 | msg->getS32( "QueryReplies", "SalePrice", sale_price, i); | 966 | msg->getS32( "QueryReplies", "SalePrice", sale_price, i); |
970 | msg->getS32( "QueryReplies", "ActualArea", actual_area, i); | 967 | msg->getS32( "QueryReplies", "ActualArea", actual_area, i); |
971 | 968 | ||
@@ -978,7 +975,7 @@ void LLPanelDirBrowser::processDirLandReply(LLMessageSystem *msg, void**) | |||
978 | LLSD content; | 975 | LLSD content; |
979 | S32 type; | 976 | S32 type; |
980 | 977 | ||
981 | LLSD row = self->createLandSale(parcel_id, auction, for_sale, is_newbie, name, &type); | 978 | LLSD row = self->createLandSale(parcel_id, auction, for_sale, name, &type); |
982 | 979 | ||
983 | content["type"] = type; | 980 | content["type"] = type; |
984 | content["name"] = name; | 981 | content["name"] = name; |
@@ -1065,7 +1062,7 @@ void LLPanelDirBrowser::addClassified(LLCtrlListInterface *list, const LLUUID& p | |||
1065 | list->addElement(row); | 1062 | list->addElement(row); |
1066 | } | 1063 | } |
1067 | 1064 | ||
1068 | LLSD LLPanelDirBrowser::createLandSale(const LLUUID& parcel_id, BOOL is_auction, BOOL is_for_sale, BOOL is_newbie, const LLString& name, S32 *type) | 1065 | LLSD LLPanelDirBrowser::createLandSale(const LLUUID& parcel_id, BOOL is_auction, BOOL is_for_sale, const LLString& name, S32 *type) |
1069 | { | 1066 | { |
1070 | LLSD row; | 1067 | LLSD row; |
1071 | row["id"] = parcel_id; | 1068 | row["id"] = parcel_id; |
@@ -1083,24 +1080,12 @@ LLSD LLPanelDirBrowser::createLandSale(const LLUUID& parcel_id, BOOL is_auction, | |||
1083 | } | 1080 | } |
1084 | else if (is_for_sale) | 1081 | else if (is_for_sale) |
1085 | { | 1082 | { |
1086 | if(is_newbie) | 1083 | image_id.set( gViewerArt.getString("icon_for_sale.tga") ); |
1087 | { | 1084 | row["columns"][0]["column"] = "icon"; |
1088 | image_id.set( gViewerArt.getString("icon_land_for_landless.tga") ); | 1085 | row["columns"][0]["type"] = "icon"; |
1089 | row["columns"][0]["column"] = "icon"; | 1086 | row["columns"][0]["value"] = image_id; |
1090 | row["columns"][0]["type"] = "icon"; | ||
1091 | row["columns"][0]["value"] = image_id; | ||
1092 | |||
1093 | *type = FOR_SALE_CODE; | ||
1094 | } | ||
1095 | else | ||
1096 | { | ||
1097 | image_id.set( gViewerArt.getString("icon_for_sale.tga") ); | ||
1098 | row["columns"][0]["column"] = "icon"; | ||
1099 | row["columns"][0]["type"] = "icon"; | ||
1100 | row["columns"][0]["value"] = image_id; | ||
1101 | 1087 | ||
1102 | *type = FOR_SALE_CODE; | 1088 | *type = FOR_SALE_CODE; |
1103 | } | ||
1104 | } | 1089 | } |
1105 | else | 1090 | else |
1106 | { | 1091 | { |