aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorArmin Weatherwax2010-06-14 12:04:49 +0200
committerArmin Weatherwax2010-09-23 15:38:25 +0200
commit35df5441d3e2789663532c948731aff3a1e04728 (patch)
treeac7674289784a5f96106ea507637055a8dada78a /linden/indra/newview/llviewermenu.cpp
parentChanged version to Experimental 2010.09.18 (diff)
downloadmeta-impy-35df5441d3e2789663532c948731aff3a1e04728.zip
meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.gz
meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.bz2
meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.xz
llmediaplugins first step
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewermenu.cpp34
1 files changed, 19 insertions, 15 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index fd6e842..7266dbc 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -40,7 +40,7 @@
40#include <sstream> 40#include <sstream>
41 41
42// linden library includes 42// linden library includes
43#include "audioengine.h" 43#include "llaudioengine.h"
44#include "indra_constants.h" 44#include "indra_constants.h"
45#include "llassetstorage.h" 45#include "llassetstorage.h"
46#include "llchat.h" 46#include "llchat.h"
@@ -111,9 +111,8 @@
111#include "llfloatergroupinfo.h" 111#include "llfloatergroupinfo.h"
112#include "llfloatergroupinvite.h" 112#include "llfloatergroupinvite.h"
113#include "llfloatergroups.h" 113#include "llfloatergroups.h"
114#include "llfloaterhtml.h"
115#include "llfloaterhtmlcurrency.h" 114#include "llfloaterhtmlcurrency.h"
116#include "llfloaterhtmlhelp.h" // gViewerHtmlHelp 115#include "llfloatermediabrowser.h" // gViewerHtmlHelp
117#include "llfloaterhtmlsimple.h" 116#include "llfloaterhtmlsimple.h"
118#include "llfloaterhud.h" 117#include "llfloaterhud.h"
119#include "llfloaterinspect.h" 118#include "llfloaterinspect.h"
@@ -158,6 +157,7 @@
158#include "lllineeditor.h" 157#include "lllineeditor.h"
159#include "llmenucommands.h" 158#include "llmenucommands.h"
160#include "llmenugl.h" 159#include "llmenugl.h"
160#include "llmimetypes.h"
161#include "llmorphview.h" 161#include "llmorphview.h"
162#include "llmoveview.h" 162#include "llmoveview.h"
163#include "llmutelist.h" 163#include "llmutelist.h"
@@ -934,6 +934,14 @@ void init_client_menu(LLMenuGL* menu)
934 menu->appendMenu( sub ); 934 menu->appendMenu( sub );
935 sub->createJumpKeys(); 935 sub->createJumpKeys();
936 } 936 }
937 {
938 LLMenuGL* sub = NULL;
939 sub = new LLMenuGL("Media");
940 sub->append(new LLMenuItemCallGL("Reload MIME types", &LLMIMETypes::reload));
941 sub->append(new LLMenuItemCallGL("Web Browser Test", &handle_web_browser_test));
942 menu->appendMenu( sub );
943 sub->createJumpKeys();
944 }
937 945
938 menu->appendSeparator(); 946 menu->appendSeparator();
939 947
@@ -1063,6 +1071,7 @@ void init_debug_ui_menu(LLMenuGL* menu)
1063 menu->appendSeparator(); 1071 menu->appendSeparator();
1064 1072
1065 menu->append(new LLMenuItemCallGL("Web Browser Test", &handle_web_browser_test)); 1073 menu->append(new LLMenuItemCallGL("Web Browser Test", &handle_web_browser_test));
1074
1066 // commented out until work is complete: DEV-32268 1075 // commented out until work is complete: DEV-32268
1067 // menu->append(new LLMenuItemCallGL("Buy Currency Test", &handle_buy_currency_test)); 1076 // menu->append(new LLMenuItemCallGL("Buy Currency Test", &handle_buy_currency_test));
1068 menu->append(new LLMenuItemCallGL("Editable UI", &edit_ui)); 1077 menu->append(new LLMenuItemCallGL("Editable UI", &edit_ui));
@@ -5493,6 +5502,7 @@ class LLWorldSetAway : public view_listener_t
5493 if (gAgent.getAFK()) 5502 if (gAgent.getAFK())
5494 { 5503 {
5495 gAgent.clearAFK(); 5504 gAgent.clearAFK();
5505 llinfos << "Spawning HTML help window" << llendl;
5496 } 5506 }
5497 else 5507 else
5498 { 5508 {
@@ -6045,10 +6055,10 @@ class LLShowFloater : public view_listener_t
6045 { 6055 {
6046 JCFloaterAnimList::toggleInstance(LLSD()); 6056 JCFloaterAnimList::toggleInstance(LLSD());
6047 } 6057 }
6048 else if (floater_name == "inworld browser") 6058//imprudence fixme else if (floater_name == "inworld browser")
6049 { 6059// {
6050 LLFloaterMediaBrowser::toggleInstance(LLSD()); 6060// LLFloaterMediaBrowser::toggle();
6051 } 6061// }
6052 else if (floater_name == "beacons") 6062 else if (floater_name == "beacons")
6053 { 6063 {
6054 LLFloaterBeacons::toggleInstance(LLSD()); 6064 LLFloaterBeacons::toggleInstance(LLSD());
@@ -7844,7 +7854,7 @@ void handle_grab_texture(void* data)
7844 // user know that the image is now in inventory. 7854 // user know that the image is now in inventory.
7845 if(view) 7855 if(view)
7846 { 7856 {
7847 LLUICtrl* focus_ctrl = gFocusMgr.getKeyboardFocus(); 7857 LLFocusableElement* focus_ctrl = gFocusMgr.getKeyboardFocus();
7848 7858
7849 view->getPanel()->setSelection(item_id, TAKE_FOCUS_NO); 7859 view->getPanel()->setSelection(item_id, TAKE_FOCUS_NO);
7850 view->getPanel()->openSelected(); 7860 view->getPanel()->openSelected();
@@ -8048,13 +8058,7 @@ void handle_load_from_xml(void*)
8048 8058
8049void handle_web_browser_test(void*) 8059void handle_web_browser_test(void*)
8050{ 8060{
8051 const bool open_links_externally = false; 8061 LLWeb::loadURL("http://secondlife.com/app/search/slurls.html");
8052 const bool open_app_slurls = true;
8053 LLFloaterHtml::getInstance()->show(
8054 "http://secondlife.com/app/search/slurls.html",
8055 "Web Browser Test",
8056 open_links_externally,
8057 open_app_slurls);
8058} 8062}
8059 8063
8060void handle_buy_currency_test(void*) 8064void handle_buy_currency_test(void*)