aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJacek Antonelli2009-05-25 21:38:18 -0500
committerJacek Antonelli2009-05-25 21:38:52 -0500
commitb8f111aef0f5e3135b7da2990002ca6306473981 (patch)
treeaae5026c8b6fc58eb8bf28c08d3887fc01a1e0d2
parentAdded ConfirmRestoreToWorld alert text. (diff)
downloadmeta-impy-b8f111aef0f5e3135b7da2990002ca6306473981.zip
meta-impy-b8f111aef0f5e3135b7da2990002ca6306473981.tar.gz
meta-impy-b8f111aef0f5e3135b7da2990002ca6306473981.tar.bz2
meta-impy-b8f111aef0f5e3135b7da2990002ca6306473981.tar.xz
Added Restore to Last Position confirmation and callback methods.
LLItemBridge::restoreToWorldConfirm() LLItemBridge::restoreToWorldCallback()
Diffstat (limited to '')
-rw-r--r--ChangeLog.txt8
-rw-r--r--linden/indra/newview/llinventorybridge.cpp18
-rw-r--r--linden/indra/newview/llinventorybridge.h4
3 files changed, 30 insertions, 0 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 82224d6..557926c 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,5 +1,13 @@
12009-05-25 Jacek Antonelli <jacek.antonelli@gmail.com> 12009-05-25 Jacek Antonelli <jacek.antonelli@gmail.com>
2 2
3 * linden/indra/newview/llinventorybridge.cpp:
4 Added Restore to Last Position confirmation and callback methods.
5 LLItemBridge::restoreToWorldConfirm()
6 LLItemBridge::restoreToWorldCallback()
7 * linden/indra/newview/llinventorybridge.h:
8 Ditto.
9
10
3 * linden/indra/newview/skins/default/xui/en-us/alerts.xml: 11 * linden/indra/newview/skins/default/xui/en-us/alerts.xml:
4 Added ConfirmRestoreToWorld alert text. 12 Added ConfirmRestoreToWorld alert text.
5 13
diff --git a/linden/indra/newview/llinventorybridge.cpp b/linden/indra/newview/llinventorybridge.cpp
index 34277f7..65922cc 100644
--- a/linden/indra/newview/llinventorybridge.cpp
+++ b/linden/indra/newview/llinventorybridge.cpp
@@ -816,6 +816,24 @@ void LLItemBridge::restoreItem()
816 } 816 }
817} 817}
818 818
819
820// virtual
821void LLItemBridge::restoreToWorldConfirm()
822{
823 gViewerWindow->alertXml("ConfirmRestoreToWorld", LLItemBridge::restoreToWorldCallback, (void *)this);
824}
825
826// static
827void LLItemBridge::restoreToWorldCallback(S32 option, void *userdata)
828{
829 if( option == 0 )
830 {
831 // They confirmed it. Here we go!
832 ((LLItemBridge *) userdata)->restoreToWorld();
833 }
834}
835
836// virtual
819void LLItemBridge::restoreToWorld() 837void LLItemBridge::restoreToWorld()
820{ 838{
821 LLViewerInventoryItem* itemp = (LLViewerInventoryItem*)getItem(); 839 LLViewerInventoryItem* itemp = (LLViewerInventoryItem*)getItem();
diff --git a/linden/indra/newview/llinventorybridge.h b/linden/indra/newview/llinventorybridge.h
index eb17432..a4f59fe 100644
--- a/linden/indra/newview/llinventorybridge.h
+++ b/linden/indra/newview/llinventorybridge.h
@@ -244,7 +244,11 @@ public:
244 244
245 virtual void selectItem(); 245 virtual void selectItem();
246 virtual void restoreItem(); 246 virtual void restoreItem();
247
247 virtual void restoreToWorld(); 248 virtual void restoreToWorld();
249 virtual void restoreToWorldConfirm();
250 static void restoreToWorldCallback(S32 option, void *userdata);
251
248 252
249 virtual LLUIImagePtr getIcon() const; 253 virtual LLUIImagePtr getIcon() const;
250 virtual const std::string& getDisplayName() const; 254 virtual const std::string& getDisplayName() const;