summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterexperienceprofile.cpp
diff options
context:
space:
mode:
authordolphin <dolphin@lindenlab.com>2013-10-17 13:58:52 -0700
committerdolphin <dolphin@lindenlab.com>2013-10-17 13:58:52 -0700
commitfa344fdcd987ec66fa08f6286b504cb126c9a45c (patch)
tree815990cf85068f93e1e4c1864c23f18981c7246a /indra/newview/llfloaterexperienceprofile.cpp
parent1aed2f848c4f2a86d6c2ea6385ebb920e7658aa8 (diff)
Updated experience profile to remove the permission buttons on privileged
experiences and fix the enabling of the save button with the checkbox controls.
Diffstat (limited to 'indra/newview/llfloaterexperienceprofile.cpp')
-rw-r--r--indra/newview/llfloaterexperienceprofile.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/newview/llfloaterexperienceprofile.cpp b/indra/newview/llfloaterexperienceprofile.cpp
index e1667a39b7..740e800a07 100644
--- a/indra/newview/llfloaterexperienceprofile.cpp
+++ b/indra/newview/llfloaterexperienceprofile.cpp
@@ -67,6 +67,7 @@
#define PNL_LOC "location panel"
#define PNL_MRKT "marketplace panel"
#define PNL_GROUP "group_panel"
+#define PNL_PERMS "perm panel"
#define BTN_EDIT "edit_btn"
#define BTN_ALLOW "allow_btn"
@@ -249,8 +250,8 @@ BOOL LLFloaterExperienceProfile::postBuild()
getChild<LLLineEditor>(EDIT TF_MRKT)->setKeystrokeCallback(boost::bind(&LLFloaterExperienceProfile::onFieldChanged, this), NULL);
getChild<LLLineEditor>(EDIT TF_NAME)->setKeystrokeCallback(boost::bind(&LLFloaterExperienceProfile::onFieldChanged, this), NULL);
- childSetAction(EDIT BTN_ENABLE, boost::bind(&LLFloaterExperienceProfile::onFieldChanged, this));
- childSetAction(EDIT BTN_PRIVATE, boost::bind(&LLFloaterExperienceProfile::onFieldChanged, this));
+ childSetCommitCallback(EDIT BTN_ENABLE, boost::bind(&LLFloaterExperienceProfile::onFieldChanged, this), NULL);
+ childSetCommitCallback(EDIT BTN_PRIVATE, boost::bind(&LLFloaterExperienceProfile::onFieldChanged, this), NULL);
getChild<LLTextEditor>(EDIT TF_DESC)->setCommitOnFocusLost(TRUE);
@@ -364,6 +365,7 @@ void LLFloaterExperienceProfile::refreshExperience( const LLSD& experience )
LLLayoutPanel* locationPanel = getChild<LLLayoutPanel>(PNL_LOC);
LLLayoutPanel* marketplacePanel = getChild<LLLayoutPanel>(PNL_MRKT);
LLLayoutPanel* topPanel = getChild<LLLayoutPanel>(PNL_TOP);
+ LLLayoutPanel* permPanel = getChild<LLLayoutPanel>(PNL_PERMS);
imagePanel->setVisible(FALSE);
@@ -433,6 +435,9 @@ void LLFloaterExperienceProfile::refreshExperience( const LLSD& experience )
child->setVisible(TRUE);
child->setText(LLTrans::getString("GRID_WIDE"));
}
+
+
+ permPanel->setVisible((properties & LLExperienceCache::PROPERTY_PRIVILEGED) == 0);
value=experience[LLExperienceCache::METADATA].asString();
if(value.empty())
@@ -490,7 +495,6 @@ void LLFloaterExperienceProfile::refreshExperience( const LLSD& experience )
}
mDirty=false;
- setCanClose(!mDirty);
mForceClose = false;
getChild<LLButton>(BTN_SAVE)->setEnabled(mDirty);
}
@@ -548,7 +552,6 @@ void LLFloaterExperienceProfile::setPreferences( const LLSD& content )
void LLFloaterExperienceProfile::onFieldChanged()
{
mDirty=true;
- setCanClose(!mDirty);
getChild<LLButton>(BTN_SAVE)->setEnabled(mDirty);
}