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 /linden/indra/newview | |
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 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/llinventorybridge.cpp | 18 | ||||
-rw-r--r-- | linden/indra/newview/llinventorybridge.h | 4 |
2 files changed, 22 insertions, 0 deletions
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; |