summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelpick.cpp
diff options
context:
space:
mode:
authorMark Palange <palange@lindenlab.com>2009-07-16 17:54:58 +0000
committerMark Palange <palange@lindenlab.com>2009-07-16 17:54:58 +0000
commit0274c1f2b16e571a0cc6295d1f3073b136210a7c (patch)
tree4396f7f721befba4f907c0871067e3da1cdf0494 /indra/newview/llpanelpick.cpp
parent09d9b0556e8cf6c0a716e5b2c78b265799486331 (diff)
Merged work for DEV-2066 (and formerly QAR-1538) in Viewer 2.
merged all changes, post copy, from the following branches: linden/brachnes/enable-o-v user/cg/qar-1538 user/mani/viewer2-enable-o-v
Diffstat (limited to 'indra/newview/llpanelpick.cpp')
-rw-r--r--indra/newview/llpanelpick.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/indra/newview/llpanelpick.cpp b/indra/newview/llpanelpick.cpp
index 2bcead425a..b1efb71abb 100644
--- a/indra/newview/llpanelpick.cpp
+++ b/indra/newview/llpanelpick.cpp
@@ -97,9 +97,9 @@ void LLPanelPick::reset()
mCreatorId.setNull();
mParcelId.setNull();
- setName("");
- setDesc("");
- setLocation("");
+ setPickName("");
+ setPickDesc("");
+ setPickLocation("");
mSnapshotCtrl->setImageAssetID(LLUUID::null);
//*HACK just setting asset id to NULL not enough to clear
@@ -164,9 +164,9 @@ void LLPanelPick::init(LLPickData *pick_data)
mPickId = pick_data->pick_id;
mCreatorId = pick_data->creator_id;
- setName(pick_data->name);
- setDesc(pick_data->desc);
- setLocation(pick_data->location_text);
+ setPickName(pick_data->name);
+ setPickDesc(pick_data->desc);
+ setPickLocation(pick_data->location_text);
mSnapshotCtrl->setImageAssetID(pick_data->snapshot_id);
//*HACK see reset() where the texture control was set to FALSE
@@ -188,8 +188,8 @@ void LLPanelPick::createNewPick()
LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
if (parcel)
{
- setName(parcel->getName());
- setDesc(parcel->getDesc());
+ setPickName(parcel->getName());
+ setPickDesc(parcel->getDesc());
mSnapshotCtrl->setImageAssetID(parcel->getSnapshotID());
}
@@ -219,9 +219,9 @@ void LLPanelPick::setEditMode( BOOL edit_mode )
mEditMode = edit_mode;
// preserve data before killing controls
- std::string name = getName();
- std::string desc = getDesc();
- std::string location = getLocation();
+ std::string name = getPickName();
+ std::string desc = getPickDesc();
+ std::string location = getPickLocation();
LLUUID snapshot_id = mSnapshotCtrl->getImageAssetID();
LLRect old_rect = getRect();
@@ -242,15 +242,15 @@ void LLPanelPick::setEditMode( BOOL edit_mode )
setRect(old_rect);
// time to restore data
- setName(name);
- setDesc(desc);
- setLocation(location);
+ setPickName(name);
+ setPickDesc(desc);
+ setPickLocation(location);
mSnapshotCtrl->setImageAssetID(snapshot_id);
updateButtons();
}
-void LLPanelPick::setName(std::string name)
+void LLPanelPick::setPickName(std::string name)
{
if (mEditMode)
{
@@ -262,7 +262,7 @@ void LLPanelPick::setName(std::string name)
}
}
-void LLPanelPick::setDesc(std::string desc)
+void LLPanelPick::setPickDesc(std::string desc)
{
if (mEditMode)
{
@@ -274,22 +274,22 @@ void LLPanelPick::setDesc(std::string desc)
}
}
-void LLPanelPick::setLocation(std::string location)
+void LLPanelPick::setPickLocation(std::string location)
{
childSetWrappedText(XML_LOCATION, location);
}
-std::string LLPanelPick::getName()
+std::string LLPanelPick::getPickName()
{
return childGetValue(XML_NAME).asString();
}
-std::string LLPanelPick::getDesc()
+std::string LLPanelPick::getPickDesc()
{
return childGetValue(XML_DESC).asString();
}
-std::string LLPanelPick::getLocation()
+std::string LLPanelPick::getPickLocation()
{
return childGetValue(XML_LOCATION).asString();
}
@@ -310,8 +310,8 @@ void LLPanelPick::sendUpdate()
//legacy var need to be deleted
pick_data.top_pick = FALSE;
pick_data.parcel_id = mParcelId;
- pick_data.name = getName();
- pick_data.desc = getDesc();
+ pick_data.name = getPickName();
+ pick_data.desc = getPickDesc();
pick_data.snapshot_id = mSnapshotCtrl->getImageAssetID();
pick_data.pos_global = mPosGlobal;
pick_data.sort_order = 0;
@@ -381,7 +381,7 @@ void LLPanelPick::onClickSet()
location_text.append(mSimName);
location_text.append(llformat(" (%d, %d, %d)", region_x, region_y, region_z));
- setLocation(location_text);
+ setPickLocation(location_text);
}
// static