diff options
author | McCabe Maxsted | 2010-10-02 05:25:11 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-10-02 05:25:11 -0700 |
commit | 86b279770167bfae0894d1851c211f7309617faf (patch) | |
tree | d6cfcc20579bd12c2d09fcf305ba44bff71e5c10 /linden/indra | |
parent | Merge remote branch 'armin/weekly' into weekly (diff) | |
download | meta-impy-86b279770167bfae0894d1851c211f7309617faf.zip meta-impy-86b279770167bfae0894d1851c211f7309617faf.tar.gz meta-impy-86b279770167bfae0894d1851c211f7309617faf.tar.bz2 meta-impy-86b279770167bfae0894d1851c211f7309617faf.tar.xz |
Applied patch by Ansariel Hiller for #568: reload balance option in the advanced menu. Patch originally from Phoenix. I've modified it to support our currency changes, too
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 22 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | 5 |
2 files changed, 26 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 7526944..6ec7e46 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -457,6 +457,7 @@ void dump_inventory(void*); | |||
457 | void edit_ui(void*); | 457 | void edit_ui(void*); |
458 | void toggle_visibility(void*); | 458 | void toggle_visibility(void*); |
459 | BOOL get_visibility(void*); | 459 | BOOL get_visibility(void*); |
460 | void reload_linden_balance(void*); | ||
460 | 461 | ||
461 | // Avatar Pie menu | 462 | // Avatar Pie menu |
462 | void request_friendship(const LLUUID& agent_id); | 463 | void request_friendship(const LLUUID& agent_id); |
@@ -678,6 +679,8 @@ void init_menus() | |||
678 | gMenuHolder->childSetLabelArg("ImportUpload", "[UPLOADFEE]", fee); | 679 | gMenuHolder->childSetLabelArg("ImportUpload", "[UPLOADFEE]", fee); |
679 | gMenuHolder->childSetLabelArg("Buy and Sell L$...", "[CURRENCY]", | 680 | gMenuHolder->childSetLabelArg("Buy and Sell L$...", "[CURRENCY]", |
680 | gHippoGridManager->getConnectedGrid()->getCurrencySymbol()); | 681 | gHippoGridManager->getConnectedGrid()->getCurrencySymbol()); |
682 | gMenuHolder->childSetLabelArg("Reload Balance", "[CURRENCY]", | ||
683 | gHippoGridManager->getConnectedGrid()->getCurrencySymbol()); | ||
681 | 684 | ||
682 | gAFKMenu = gMenuBarView->getChild<LLMenuItemCallGL>("Set Away", TRUE); | 685 | gAFKMenu = gMenuBarView->getChild<LLMenuItemCallGL>("Set Away", TRUE); |
683 | gBusyMenu = gMenuBarView->getChild<LLMenuItemCallGL>("Set Busy", TRUE); | 686 | gBusyMenu = gMenuBarView->getChild<LLMenuItemCallGL>("Set Busy", TRUE); |
@@ -1060,6 +1063,7 @@ void init_debug_ui_menu(LLMenuGL* menu) | |||
1060 | { | 1063 | { |
1061 | menu->append(new LLMenuItemCheckGL("Use default system color picker", menu_toggle_control, NULL, menu_check_control, (void*)"UseDefaultColorPicker")); | 1064 | menu->append(new LLMenuItemCheckGL("Use default system color picker", menu_toggle_control, NULL, menu_check_control, (void*)"UseDefaultColorPicker")); |
1062 | menu->append(new LLMenuItemCheckGL("Show search panel in overlay bar", menu_toggle_control, NULL, menu_check_control, (void*)"ShowSearchBar")); | 1065 | menu->append(new LLMenuItemCheckGL("Show search panel in overlay bar", menu_toggle_control, NULL, menu_check_control, (void*)"ShowSearchBar")); |
1066 | menu->append(new LLMenuItemCallGL("Reload L$ balance", &reload_linden_balance, NULL, NULL, 'B', MASK_CONTROL | MASK_ALT)); | ||
1063 | menu->appendSeparator(); | 1067 | menu->appendSeparator(); |
1064 | 1068 | ||
1065 | menu->append(new LLMenuItemCallGL("Web Browser Test", &handle_web_browser_test)); | 1069 | menu->append(new LLMenuItemCallGL("Web Browser Test", &handle_web_browser_test)); |
@@ -5831,6 +5835,11 @@ class LLObjectEnableSitOrStand : public view_listener_t | |||
5831 | } | 5835 | } |
5832 | }; | 5836 | }; |
5833 | 5837 | ||
5838 | void reload_linden_balance(void*) | ||
5839 | { | ||
5840 | LLStatusBar::sendMoneyBalanceRequest(); | ||
5841 | } | ||
5842 | |||
5834 | void edit_ui(void*) | 5843 | void edit_ui(void*) |
5835 | { | 5844 | { |
5836 | LLFloater::setEditModeEnabled(!LLFloater::getEditModeEnabled()); | 5845 | LLFloater::setEditModeEnabled(!LLFloater::getEditModeEnabled()); |
@@ -9467,7 +9476,17 @@ class LLAdvancedToggleEditableUI : public view_listener_t | |||
9467 | // become a menu_item_check. Need to add check_edit_ui(void*) | 9476 | // become a menu_item_check. Need to add check_edit_ui(void*) |
9468 | // or functional equivalent to do that. | 9477 | // or functional equivalent to do that. |
9469 | 9478 | ||
9470 | 9479 | ///////////////////// | |
9480 | // Reload L$ balance // | ||
9481 | ///////////////////// | ||
9482 | class LLAdvancedReloadBalance : public view_listener_t | ||
9483 | { | ||
9484 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9485 | { | ||
9486 | reload_linden_balance(NULL); | ||
9487 | return true; | ||
9488 | } | ||
9489 | }; | ||
9471 | 9490 | ||
9472 | ///////////////////// | 9491 | ///////////////////// |
9473 | // DUMP SELECT MGR // | 9492 | // DUMP SELECT MGR // |
@@ -11284,6 +11303,7 @@ void initialize_menus() | |||
11284 | // Advanced > UI | 11303 | // Advanced > UI |
11285 | addMenu(new LLAdvancedWebBrowserTest(), "Advanced.WebBrowserTest"); | 11304 | addMenu(new LLAdvancedWebBrowserTest(), "Advanced.WebBrowserTest"); |
11286 | addMenu(new LLAdvancedToggleEditableUI(), "Advanced.ToggleEditableUI"); | 11305 | addMenu(new LLAdvancedToggleEditableUI(), "Advanced.ToggleEditableUI"); |
11306 | addMenu(new LLAdvancedReloadBalance(), "Advanced.ReloadBalance"); | ||
11287 | //addMenu(new LLAdvancedCheckEditableUI(), "Advanced.CheckEditableUI"); | 11307 | //addMenu(new LLAdvancedCheckEditableUI(), "Advanced.CheckEditableUI"); |
11288 | addMenu(new LLAdvancedDumpSelectMgr(), "Advanced.DumpSelectMgr"); | 11308 | addMenu(new LLAdvancedDumpSelectMgr(), "Advanced.DumpSelectMgr"); |
11289 | addMenu(new LLAdvancedDumpInventory(), "Advanced.DumpInventory"); | 11309 | addMenu(new LLAdvancedDumpInventory(), "Advanced.DumpInventory"); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml index 0a27f85..66d78bd 100644 --- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml +++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | |||
@@ -1554,6 +1554,11 @@ | |||
1554 | <on_check control="ShowSearchBar" /> | 1554 | <on_check control="ShowSearchBar" /> |
1555 | </menu_item_check> | 1555 | </menu_item_check> |
1556 | 1556 | ||
1557 | <menu_item_call name="Reload Balance" label="Reload [CURRENCY] balance" shortcut="control|alt|B"> | ||
1558 | <on_click function="Advanced.ReloadBalance" userdata="" /> | ||
1559 | </menu_item_call> | ||
1560 | |||
1561 | |||
1557 | <menu_item_separator /> | 1562 | <menu_item_separator /> |
1558 | 1563 | ||
1559 | <menu_item_call name="Web Browser Test" label="Web Browser Test"> | 1564 | <menu_item_call name="Web Browser Test" label="Web Browser Test"> |