From e13f747a05e945da3e37b73f5dc1ebd5ac96c413 Mon Sep 17 00:00:00 2001 From: Hazim Gazov Date: Sat, 1 May 2010 10:24:24 -0300 Subject: [PATCH] more work done on copybootch function, save as xml works for the most part now --- indra/llui/llfloater.h | 4 +++ indra/newview/llviewermenu.cpp | 32 +++++++++++++++++++ .../default/xui/en-us/floater_export.xml | 27 ++++++++++++++++ .../default/xui/en-us/menu_pie_attachment.xml | 6 ++-- .../default/xui/en-us/menu_pie_avatar.xml | 6 +++- .../default/xui/en-us/menu_pie_object.xml | 12 +++++-- .../skins/default/xui/en-us/menu_viewer.xml | 12 +++++++ 7 files changed, 94 insertions(+), 5 deletions(-) create mode 100644 indra/newview/skins/default/xui/en-us/floater_export.xml diff --git a/indra/llui/llfloater.h b/indra/llui/llfloater.h index 12f878d47..b43e7c489 100644 --- a/indra/llui/llfloater.h +++ b/indra/llui/llfloater.h @@ -216,6 +216,10 @@ public: virtual BOOL canSaveAs() const { return FALSE; } virtual void saveAs() {} + + // + virtual LLUUID getItemID() { return LLUUID::null; } + // void setSnapTarget(LLHandle handle) { mSnappedTo = handle; } void clearSnapTarget() { mSnappedTo.markDead(); } diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 83ad0b981..bf5a37293 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -3012,6 +3012,38 @@ void process_grant_godlike_powers(LLMessageSystem* msg, void**) } } +// + +void handle_reopen_with_hex_editor(void*) +{ + LLFloater* top = gFloaterView->getFrontmost(); + if (top) + { + LLUUID item_id = top->getItemID(); + if(item_id.notNull()) + { + LLInventoryItem* item = gInventory.getItem(item_id); + if(item) + { + DOFloaterHex::show(item_id); + } + } + } +} + +void handle_close_all_notifications(void*) +{ + LLView::child_list_t child_list(*(gNotifyBoxView->getChildList())); + for(LLView::child_list_iter_t iter = child_list.begin(); + iter != child_list.end(); + iter++) + { + gNotifyBoxView->removeChild(*iter); + } +} + +// + /* class LLHaveCallingcard : public LLInventoryCollectFunctor { diff --git a/indra/newview/skins/default/xui/en-us/floater_export.xml b/indra/newview/skins/default/xui/en-us/floater_export.xml new file mode 100644 index 000000000..9e6190d91 --- /dev/null +++ b/indra/newview/skins/default/xui/en-us/floater_export.xml @@ -0,0 +1,27 @@ + + + + + + + + + Select/Deselect: +