aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenufile.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-05-03 22:20:51 -0700
committerJacek Antonelli2010-06-19 02:03:55 -0500
commit0981d741d03119904cb3bfad18c7a4b931b7c654 (patch)
treee6f3ff8c5686e4b6fec2967bfdf0b8ec19387586 /linden/indra/newview/llviewermenufile.cpp
parentImprudence 1.3.0 beta 4 released. (diff)
downloadmeta-impy-0981d741d03119904cb3bfad18c7a4b931b7c654.zip
meta-impy-0981d741d03119904cb3bfad18c7a4b931b7c654.tar.gz
meta-impy-0981d741d03119904cb3bfad18c7a4b931b7c654.tar.bz2
meta-impy-0981d741d03119904cb3bfad18c7a4b931b7c654.tar.xz
Added minimize all option to the File menu, works on everything but the snapshot window (decided that was a feature)
Diffstat (limited to 'linden/indra/newview/llviewermenufile.cpp')
-rw-r--r--linden/indra/newview/llviewermenufile.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenufile.cpp b/linden/indra/newview/llviewermenufile.cpp
index 8f47e0b..e3b9769 100644
--- a/linden/indra/newview/llviewermenufile.cpp
+++ b/linden/indra/newview/llviewermenufile.cpp
@@ -399,6 +399,15 @@ class LLFileCloseAllWindows : public view_listener_t
399 } 399 }
400}; 400};
401 401
402class LLFileMinimizeAllWindows : public view_listener_t
403{
404 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
405 {
406 gFloaterView->minimizeAllChildren();
407 return true;
408 }
409};
410
402class LLFileSaveTexture : public view_listener_t 411class LLFileSaveTexture : public view_listener_t
403{ 412{
404 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 413 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
@@ -1135,6 +1144,7 @@ void init_menu_file()
1135 (new LLFileCloseAllWindows())->registerListener(gMenuHolder, "File.CloseAllWindows"); 1144 (new LLFileCloseAllWindows())->registerListener(gMenuHolder, "File.CloseAllWindows");
1136 (new LLFileEnableCloseWindow())->registerListener(gMenuHolder, "File.EnableCloseWindow"); 1145 (new LLFileEnableCloseWindow())->registerListener(gMenuHolder, "File.EnableCloseWindow");
1137 (new LLFileEnableCloseAllWindows())->registerListener(gMenuHolder, "File.EnableCloseAllWindows"); 1146 (new LLFileEnableCloseAllWindows())->registerListener(gMenuHolder, "File.EnableCloseAllWindows");
1147 (new LLFileMinimizeAllWindows())->registerListener(gMenuHolder, "File.MinimizeAllWindows");
1138 (new LLFileSaveTexture())->registerListener(gMenuHolder, "File.SaveTexture"); 1148 (new LLFileSaveTexture())->registerListener(gMenuHolder, "File.SaveTexture");
1139 (new LLFileTakeSnapshot())->registerListener(gMenuHolder, "File.TakeSnapshot"); 1149 (new LLFileTakeSnapshot())->registerListener(gMenuHolder, "File.TakeSnapshot");
1140 (new LLFileTakeSnapshotToDisk())->registerListener(gMenuHolder, "File.TakeSnapshotToDisk"); 1150 (new LLFileTakeSnapshotToDisk())->registerListener(gMenuHolder, "File.TakeSnapshotToDisk");