Support for new 'rental' parcel category.

This commit is contained in:
Shyotl
2011-04-28 01:18:08 -05:00
parent ab35a07f0e
commit 0909a4ddbe
6 changed files with 48 additions and 21 deletions

View File

@@ -79,23 +79,25 @@ static const std::string PARCEL_CATEGORY_STRING[LLParcel::C_COUNT] =
"shopping", "shopping",
"stage", "stage",
"other", "other",
"rental"
}; };
static const std::string PARCEL_CATEGORY_UI_STRING[LLParcel::C_COUNT + 1] = static const std::string PARCEL_CATEGORY_UI_STRING[LLParcel::C_COUNT + 1] =
{ {
"None", "None",
"Linden Location", "Linden Location",
"Adult", "Adult",
"Arts & Culture", "Arts and Culture",
"Business", "Business",
"Educational", "Educational",
"Gaming", "Gaming",
"Hangout", "Hangout",
"Newcomer Friendly", "Newcomer Friendly",
"Parks & Nature", "Parks and Nature",
"Residential", "Residential",
"Shopping", "Shopping",
"Stage", "Stage",
"Other", "Other",
"Rental",
"Any", // valid string for parcel searches "Any", // valid string for parcel searches
}; };
@@ -690,8 +692,8 @@ void LLParcel::packMessage(LLSD& msg)
msg["auto_scale"] = getMediaAutoScale(); msg["auto_scale"] = getMediaAutoScale();
msg["media_loop"] = getMediaLoop(); msg["media_loop"] = getMediaLoop();
msg["media_current_url"] = getMediaCurrentURL(); msg["media_current_url"] = getMediaCurrentURL();
msg["obscure_media"] = FALSE; // OBSOLETE - no longer used msg["obscure_media"] = false; // OBSOLETE - no longer used
msg["obscure_music"] = FALSE; // OBSOLETE - no longer used msg["obscure_music"] = false; // OBSOLETE - no longer used
msg["media_id"] = getMediaID(); msg["media_id"] = getMediaID();
msg["media_allow_navigate"] = getMediaAllowNavigate(); msg["media_allow_navigate"] = getMediaAllowNavigate();
msg["media_prevent_camera_zoom"] = getMediaPreventCameraZoom(); msg["media_prevent_camera_zoom"] = getMediaPreventCameraZoom();

View File

@@ -170,6 +170,7 @@ public:
C_SHOPPING, C_SHOPPING,
C_STAGE, C_STAGE,
C_OTHER, C_OTHER,
C_RENTAL,
C_COUNT, C_COUNT,
C_ANY = -1 // only useful in queries C_ANY = -1 // only useful in queries
}; };
@@ -534,7 +535,7 @@ public:
static bool isAgentBlockedFromParcel(LLParcel* parcelp, static bool isAgentBlockedFromParcel(LLParcel* parcelp,
const LLUUID& agent_id, const LLUUID& agent_id,
const std::vector<LLUUID>& group_ids, const uuid_vec_t& group_ids,
const BOOL is_agent_identified, const BOOL is_agent_identified,
const BOOL is_agent_transacted, const BOOL is_agent_transacted,
const BOOL is_agent_ageverified); const BOOL is_agent_ageverified);

View File

@@ -653,7 +653,7 @@ Only large parcels can be listed in search.
Adult Adult
</combo_item> </combo_item>
<combo_item name="Arts&amp;Culture" value="arts"> <combo_item name="Arts&amp;Culture" value="arts">
Arts &amp; Culture Arts and Culture
</combo_item> </combo_item>
<combo_item name="Business" value="store"> <combo_item name="Business" value="store">
Business Business
@@ -671,7 +671,7 @@ Only large parcels can be listed in search.
Newcomer Friendly Newcomer Friendly
</combo_item> </combo_item>
<combo_item name="Parks&amp;Nature" value="park"> <combo_item name="Parks&amp;Nature" value="park">
Parks &amp; Nature Parks and Nature
</combo_item> </combo_item>
<combo_item name="Residential" value="home"> <combo_item name="Residential" value="home">
Residential Residential
@@ -682,6 +682,9 @@ Only large parcels can be listed in search.
<combo_item name="Other" value="other"> <combo_item name="Other" value="other">
Other Other
</combo_item> </combo_item>
<combo_item name="Rental" value="rental">
Rental
</combo_item>
</combo_box> </combo_box>
<!-- The following combo box is identical to the previous one, except for the <!-- The following combo box is identical to the previous one, except for the
fact that the Adult item is missing. This seems to be the only way to safely fact that the Adult item is missing. This seems to be the only way to safely
@@ -697,7 +700,7 @@ Only large parcels can be listed in search.
Linden Location Linden Location
</combo_item> </combo_item>
<combo_item name="Arts&amp;Culture" value="arts"> <combo_item name="Arts&amp;Culture" value="arts">
Arts &amp; Culture Arts and Culture
</combo_item> </combo_item>
<combo_item name="Business" value="store"> <combo_item name="Business" value="store">
Business Business
@@ -715,7 +718,7 @@ Only large parcels can be listed in search.
Newcomer Friendly Newcomer Friendly
</combo_item> </combo_item>
<combo_item name="Parks&amp;Nature" value="park"> <combo_item name="Parks&amp;Nature" value="park">
Parks &amp; Nature Parks and Nature
</combo_item> </combo_item>
<combo_item name="Residential" value="home"> <combo_item name="Residential" value="home">
Residential Residential
@@ -726,6 +729,9 @@ Only large parcels can be listed in search.
<combo_item name="Other" value="other"> <combo_item name="Other" value="other">
Other Other
</combo_item> </combo_item>
<combo_item name="Rental" value="rental">
Rental
</combo_item>
</combo_box> </combo_box>
<button bottom="-140" enabled="true" follows="left|top" font="SansSerif" <button bottom="-140" enabled="true" follows="left|top" font="SansSerif"
halign="center" height="18" label="?" label_selected="?" left="400" halign="center" height="18" label="?" label_selected="?" left="400"

View File

@@ -477,7 +477,7 @@ To buy direct, visit the land and click on the place name in the title bar.
Linden Location Linden Location
</combo_item> </combo_item>
<combo_item name="Arts&amp;Culture" value="arts"> <combo_item name="Arts&amp;Culture" value="arts">
Arts &amp; Culture Arts and Culture
</combo_item> </combo_item>
<combo_item name="Business" value="store"> <combo_item name="Business" value="store">
Business Business
@@ -495,7 +495,7 @@ To buy direct, visit the land and click on the place name in the title bar.
Newcomer Friendly Newcomer Friendly
</combo_item> </combo_item>
<combo_item name="Parks&amp;Nature" value="park"> <combo_item name="Parks&amp;Nature" value="park">
Parks &amp; Nature Parks and Nature
</combo_item> </combo_item>
<combo_item name="Residential" value="home"> <combo_item name="Residential" value="home">
Residential Residential
@@ -506,6 +506,9 @@ To buy direct, visit the land and click on the place name in the title bar.
<combo_item name="Other" value="other"> <combo_item name="Other" value="other">
Other Other
</combo_item> </combo_item>
<combo_item name="Rental" value="rental">
Rental
</combo_item>
</combo_box> </combo_box>
<!-- This is used only during the AO transition and can be deleted once the AO transition is <!-- This is used only during the AO transition and can be deleted once the AO transition is
complete. It is identical to the combo box above except that it has the Adult category. complete. It is identical to the combo box above except that it has the Adult category.
@@ -522,7 +525,7 @@ To buy direct, visit the land and click on the place name in the title bar.
Adult Adult
</combo_item> </combo_item>
<combo_item name="Arts&amp;Culture" value="arts"> <combo_item name="Arts&amp;Culture" value="arts">
Arts &amp; Culture Arts and Culture
</combo_item> </combo_item>
<combo_item name="Business" value="store"> <combo_item name="Business" value="store">
Business Business
@@ -540,7 +543,7 @@ To buy direct, visit the land and click on the place name in the title bar.
Newcomer Friendly Newcomer Friendly
</combo_item> </combo_item>
<combo_item name="Parks&amp;Nature" value="park"> <combo_item name="Parks&amp;Nature" value="park">
Parks &amp; Nature Parks and Nature
</combo_item> </combo_item>
<combo_item name="Residential" value="home"> <combo_item name="Residential" value="home">
Residential Residential
@@ -551,6 +554,9 @@ To buy direct, visit the land and click on the place name in the title bar.
<combo_item name="Other" value="other"> <combo_item name="Other" value="other">
Other Other
</combo_item> </combo_item>
<combo_item name="Rental" value="rental">
Rental
</combo_item>
</combo_box> </combo_box>
<button bottom="-48" follows="right|top" font="SansSerif" halign="center" height="20" <button bottom="-48" follows="right|top" font="SansSerif" halign="center" height="20"
label="Search" label_selected="Search" left="121" mouse_opaque="true" label="Search" label_selected="Search" left="121" mouse_opaque="true"

View File

@@ -419,7 +419,7 @@ To buy direct, visit the land and click on the place name in the title bar.
Official Location Official Location
</combo_item> </combo_item>
<combo_item name="Arts&amp;Culture" value="arts"> <combo_item name="Arts&amp;Culture" value="arts">
Arts &amp; Culture Artsand Culture
</combo_item> </combo_item>
<combo_item name="Business" value="store"> <combo_item name="Business" value="store">
Business Business
@@ -437,7 +437,7 @@ To buy direct, visit the land and click on the place name in the title bar.
Newcomer Friendly Newcomer Friendly
</combo_item> </combo_item>
<combo_item name="Parks&amp;Nature" value="park"> <combo_item name="Parks&amp;Nature" value="park">
Parks &amp; Nature Parks and Nature
</combo_item> </combo_item>
<combo_item name="Residential" value="home"> <combo_item name="Residential" value="home">
Residential Residential
@@ -448,6 +448,9 @@ To buy direct, visit the land and click on the place name in the title bar.
<combo_item name="Other" value="other"> <combo_item name="Other" value="other">
Other Other
</combo_item> </combo_item>
<combo_item name="Rental" value="rental">
Rental
</combo_item>
</combo_box> </combo_box>
<!-- This is used only during the AO transition and can be deleted once the AO transition is <!-- This is used only during the AO transition and can be deleted once the AO transition is
complete. It is identical to the combo box above except that it has the Adult category. complete. It is identical to the combo box above except that it has the Adult category.
@@ -464,7 +467,7 @@ To buy direct, visit the land and click on the place name in the title bar.
Adult Adult
</combo_item> </combo_item>
<combo_item name="Arts&amp;Culture" value="arts"> <combo_item name="Arts&amp;Culture" value="arts">
Arts &amp; Culture Arts and Culture
</combo_item> </combo_item>
<combo_item name="Business" value="store"> <combo_item name="Business" value="store">
Business Business
@@ -482,7 +485,7 @@ To buy direct, visit the land and click on the place name in the title bar.
Newcomer Friendly Newcomer Friendly
</combo_item> </combo_item>
<combo_item name="Parks&amp;Nature" value="park"> <combo_item name="Parks&amp;Nature" value="park">
Parks &amp; Nature Parks and Nature
</combo_item> </combo_item>
<combo_item name="Residential" value="home"> <combo_item name="Residential" value="home">
Residential Residential
@@ -493,6 +496,9 @@ To buy direct, visit the land and click on the place name in the title bar.
<combo_item name="Other" value="other"> <combo_item name="Other" value="other">
Other Other
</combo_item> </combo_item>
<combo_item name="Rental" value="rental">
Rental
</combo_item>
</combo_box> </combo_box>
<button bottom="-48" follows="right|top" font="SansSerif" halign="center" height="20" <button bottom="-48" follows="right|top" font="SansSerif" halign="center" height="20"
label="Search" label_selected="Search" left="121" mouse_opaque="true" label="Search" label_selected="Search" left="121" mouse_opaque="true"

View File

@@ -535,7 +535,7 @@ To buy direct, visit the land and click on the place name in the title bar.
Official Location Official Location
</combo_item> </combo_item>
<combo_item name="Arts&amp;Culture" value="arts"> <combo_item name="Arts&amp;Culture" value="arts">
Arts &amp; Culture Arts and Culture
</combo_item> </combo_item>
<combo_item name="Business" value="store"> <combo_item name="Business" value="store">
Business Business
@@ -553,7 +553,7 @@ To buy direct, visit the land and click on the place name in the title bar.
Newcomer Friendly Newcomer Friendly
</combo_item> </combo_item>
<combo_item name="Parks&amp;Nature" value="park"> <combo_item name="Parks&amp;Nature" value="park">
Parks &amp; Nature Parks and Nature
</combo_item> </combo_item>
<combo_item name="Residential" value="home"> <combo_item name="Residential" value="home">
Residential Residential
@@ -564,6 +564,9 @@ To buy direct, visit the land and click on the place name in the title bar.
<combo_item name="Other" value="other"> <combo_item name="Other" value="other">
Other Other
</combo_item> </combo_item>
<combo_item name="Rental" value="rental">
Rental
</combo_item>
</combo_box> </combo_box>
<!-- This is used only during the AO transition and can be deleted once the AO transition is <!-- This is used only during the AO transition and can be deleted once the AO transition is
complete. It is identical to the combo box above except that it has the Adult category. complete. It is identical to the combo box above except that it has the Adult category.
@@ -580,7 +583,7 @@ To buy direct, visit the land and click on the place name in the title bar.
Adult Adult
</combo_item> </combo_item>
<combo_item name="Arts&amp;Culture" value="arts"> <combo_item name="Arts&amp;Culture" value="arts">
Arts &amp; Culture Arts and Culture
</combo_item> </combo_item>
<combo_item name="Business" value="store"> <combo_item name="Business" value="store">
Business Business
@@ -598,7 +601,7 @@ To buy direct, visit the land and click on the place name in the title bar.
Newcomer Friendly Newcomer Friendly
</combo_item> </combo_item>
<combo_item name="Parks&amp;Nature" value="park"> <combo_item name="Parks&amp;Nature" value="park">
Parks &amp; Nature Parks and Nature
</combo_item> </combo_item>
<combo_item name="Residential" value="home"> <combo_item name="Residential" value="home">
Residential Residential
@@ -609,6 +612,9 @@ To buy direct, visit the land and click on the place name in the title bar.
<combo_item name="Other" value="other"> <combo_item name="Other" value="other">
Other Other
</combo_item> </combo_item>
<combo_item name="Rental" value="rental">
Rental
</combo_item>
</combo_box> </combo_box>
<button bottom="-48" follows="right|top" font="SansSerif" halign="center" height="20" <button bottom="-48" follows="right|top" font="SansSerif" halign="center" height="20"
label="Search" label_selected="Search" left="121" mouse_opaque="true" label="Search" label_selected="Search" left="121" mouse_opaque="true"