home *** CD-ROM | disk | FTP | other *** search
/ Minami 79 / MINAMI79.iso / Extra / MPSetup.exe / 1033 / RCDATA / CABINET / wmploc.DLL / 256 / VSETTINGS.JS < prev    next >
Text File  |  2002-12-14  |  2KB  |  99 lines

  1. // Windows Media Player - Copyright 2000 Microsoft Corporation.
  2. //<script>
  3.  
  4. var g_Zoom50 = theme.loadString("res://wmploc.dll/RT_STRING/#1134");
  5. var g_Zoom100 = theme.loadString("res://wmploc.dll/RT_STRING/#1135");
  6. var g_Zoom200 = theme.loadString("res://wmploc.dll/RT_STRING/#1136");
  7. var g_ZoomStretch = theme.loadString("res://wmploc.dll/RT_STRING/#1133");
  8. var g_ZoomSizePlayer = theme.loadString("res://wmploc.dll/RT_STRING/#1138");
  9.  
  10. var ID_ZOOM_STRETCH = 9999;
  11. var ID_ZOOM_SIZEPLAYER = 9998;
  12.  
  13. //
  14. // Initialization
  15. //
  16.  
  17. function InitVideoSettingsView()
  18. {
  19.     if ( PlayingDVD() )
  20.     {
  21.         SetDisabledUI(true);
  22.     }
  23.     else
  24.     {
  25.         SetDisabledUI(false);
  26.     }
  27. }
  28.  
  29. function SetDisabledUI(disabled)
  30. {
  31.  
  32. }
  33.          
  34. //
  35. // Utility
  36. //
  37.  
  38. function ResetVideoSettings()
  39. {
  40.     vs.brightness=0;
  41.     vs.contrast=0;
  42.     vs.hue=0;
  43.     vs.saturation=0;
  44. }
  45.  
  46. function ZoomMenu()
  47. {
  48.     var selectedID = 0;
  49.  
  50.     mnuZoom.deleteAllItems();
  51.  
  52.     mnuZoom.appendItem( ID_ZOOM_STRETCH, g_ZoomStretch);
  53.     mnuZoom.appendItem( ID_ZOOM_SIZEPLAYER, g_ZoomSizePlayer);
  54.     mnuZoom.appendSeparator();
  55.     mnuZoom.appendItem( 50, g_Zoom50);
  56.     mnuZoom.appendItem( 100, g_Zoom100);
  57.     mnuZoom.appendItem( 200, g_Zoom200);
  58.  
  59.     if (mediacenter.videoStretchToFit)
  60.     {
  61.         mnuZoom.checkItem( ID_ZOOM_STRETCH, true );
  62.     }
  63.     if (mediacenter.snapToVideo)
  64.     {
  65.         mnuZoom.checkItem( ID_ZOOM_SIZEPLAYER, true );
  66.     }
  67.     switch (mediacenter.videoZoom)
  68.     {
  69.         case 50:
  70.         case 100:
  71.         case 200:
  72.             mnuZoom.checkRadioItem( mediacenter.videoZoom, true );
  73.             break;
  74.         default:
  75.             break;
  76.     }     
  77.  
  78.     selectedID = mnuZoom.show();
  79.  
  80.     switch (selectedID)
  81.     {
  82.         case ID_ZOOM_STRETCH:
  83.             mediacenter.videoStretchToFit = !mediacenter.videoStretchToFit;
  84.             break;
  85.         case ID_ZOOM_SIZEPLAYER:
  86.             mediacenter.snapToVideo = !mediacenter.snapToVideo;
  87.             break;
  88.         case 50:
  89.         case 100:
  90.         case 200:
  91.             mediacenter.videoZoom = selectedID;
  92.             break;
  93.         default:
  94.             break;
  95.     }
  96. }
  97.  
  98.  
  99.