diff options
author | Jacek Antonelli | 2009-05-25 21:38:18 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-05-25 21:38:52 -0500 |
commit | b8f111aef0f5e3135b7da2990002ca6306473981 (patch) | |
tree | aae5026c8b6fc58eb8bf28c08d3887fc01a1e0d2 | |
parent | Added ConfirmRestoreToWorld alert text. (diff) | |
download | meta-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.txt | 8 | ||||
-rw-r--r-- | linden/indra/newview/llinventorybridge.cpp | 18 | ||||
-rw-r--r-- | linden/indra/newview/llinventorybridge.h | 4 |
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 @@ | |||
1 | 2009-05-25 Jacek Antonelli <jacek.antonelli@gmail.com> | 1 | 2009-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 | ||
821 | void LLItemBridge::restoreToWorldConfirm() | ||
822 | { | ||
823 | gViewerWindow->alertXml("ConfirmRestoreToWorld", LLItemBridge::restoreToWorldCallback, (void *)this); | ||
824 | } | ||
825 | |||
826 | // static | ||
827 | void 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 | ||
819 | void LLItemBridge::restoreToWorld() | 837 | void 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; |