diff options
| author | Jonathan Yap <none@none> | 2012-06-23 19:28:28 -0400 | 
|---|---|---|
| committer | Jonathan Yap <none@none> | 2012-06-23 19:28:28 -0400 | 
| commit | ad8478c47038c09f016da26669570a571753f397 (patch) | |
| tree | bedfbb9c5dbd2f88839e34c16a1e683bfdc6525a | |
| parent | 90547ff411db177bf6424ca553449a81a808fc0f (diff) | |
STORM-1892 Add Apply button to the edit content permission floater
| -rw-r--r-- | doc/contributions.txt | 1 | ||||
| -rw-r--r-- | indra/newview/llfloaterbulkpermission.cpp | 7 | ||||
| -rw-r--r-- | indra/newview/llfloaterbulkpermission.h | 1 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/floater_bulk_perms.xml | 19 | 
4 files changed, 24 insertions, 4 deletions
diff --git a/doc/contributions.txt b/doc/contributions.txt index 18df538d2a..b39cfb7b9a 100644 --- a/doc/contributions.txt +++ b/doc/contributions.txt @@ -629,6 +629,7 @@ Jonathan Yap  	STORM-1809  	STORM-1793  	STORM-1810 +	STORM-1892  Kadah Coba  	STORM-1060  Jondan Lundquist diff --git a/indra/newview/llfloaterbulkpermission.cpp b/indra/newview/llfloaterbulkpermission.cpp index 90f40628a8..d9577eb74a 100644 --- a/indra/newview/llfloaterbulkpermission.cpp +++ b/indra/newview/llfloaterbulkpermission.cpp @@ -57,6 +57,7 @@ LLFloaterBulkPermission::LLFloaterBulkPermission(const LLSD& seed)  	mDone(FALSE)  {  	mID.generate(); +	mCommitCallbackRegistrar.add("BulkPermission.Ok",		boost::bind(&LLFloaterBulkPermission::onOkBtn, this));  	mCommitCallbackRegistrar.add("BulkPermission.Apply",	boost::bind(&LLFloaterBulkPermission::onApplyBtn, this));  	mCommitCallbackRegistrar.add("BulkPermission.Close",	boost::bind(&LLFloaterBulkPermission::onCloseBtn, this));  	mCommitCallbackRegistrar.add("BulkPermission.CheckAll",	boost::bind(&LLFloaterBulkPermission::onCheckAll, this)); @@ -144,6 +145,12 @@ void LLFloaterBulkPermission::inventoryChanged(LLViewerObject* viewer_object,  	}  } +void LLFloaterBulkPermission::onOkBtn() +{ +	doApply(); +	closeFloater(); +} +  void LLFloaterBulkPermission::onApplyBtn()  {  	doApply(); diff --git a/indra/newview/llfloaterbulkpermission.h b/indra/newview/llfloaterbulkpermission.h index 7dd05df7ee..58e4467f4d 100644 --- a/indra/newview/llfloaterbulkpermission.h +++ b/indra/newview/llfloaterbulkpermission.h @@ -72,6 +72,7 @@ private:  								bool is_new);  	void onCloseBtn(); +	void onOkBtn();  	void onApplyBtn();  	void onCommitCopy();  	void onCheckAll() { doCheckUncheckAll(TRUE); } diff --git a/indra/newview/skins/default/xui/en/floater_bulk_perms.xml b/indra/newview/skins/default/xui/en/floater_bulk_perms.xml index 4e0cfb0cd4..e7ab3cacdc 100644 --- a/indra/newview/skins/default/xui/en/floater_bulk_perms.xml +++ b/indra/newview/skins/default/xui/en/floater_bulk_perms.xml @@ -6,7 +6,7 @@   layout="topleft"   name="floaterbulkperms"   help_topic="floaterbulkperms" - title="EDIT CONTENT PERMISSIONS" + title="ADJUST CONTENT PERMISSIONS"   width="410">      <floater.string       name="nothing_to_modify_text"> @@ -192,7 +192,7 @@       name="newperms"       top="90"       width="250"> -        New Content Permissions +        Adjust Content Permissions To      </text>        <text         type="string" @@ -292,11 +292,22 @@       height="23"       label="OK"       layout="topleft" -     left="205" -     name="apply" +     left="110" +     name="ok"       top_pad="10"       width="90">        <button.commit_callback +       function="BulkPermission.Ok"/> +    </button> +    <button +     follows="left|top" +     height="23" +     label="Apply" +     layout="topleft" +     left_pad="5" +     name="apply" +     width="90"> +      <button.commit_callback         function="BulkPermission.Apply"/>      </button>      <button  | 
