Develop and Download Open Source Software

Browse Subversion Repository

Diff of /NNDDv2/trunk/src/org/mineap/nndd/view/VideoInfoView.as

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 490 by mineap, Sun Apr 10 03:38:54 2011 UTC revision 498 by mineap, Sat Apr 23 06:01:55 2011 UTC
# Line 7  Line 7 
7   *   *
8   */       */    
9    
10    import flash.display.StageQuality;
11  import flash.events.Event;  import flash.events.Event;
12  import flash.events.MouseEvent;  import flash.events.MouseEvent;
13  import flash.events.NativeWindowBoundsEvent;  import flash.events.NativeWindowBoundsEvent;
14  import flash.events.TextEvent;  import flash.events.TextEvent;
15  import flash.geom.Rectangle;  import flash.geom.Rectangle;
16    import flash.sampler.getInvocationCount;
17  import flash.utils.Timer;  import flash.utils.Timer;
18    
19  import mx.collections.ArrayCollection;  import mx.collections.ArrayCollection;
# Line 24  import mx.controls.HSlider; Line 26  import mx.controls.HSlider;
26  import mx.controls.RadioButton;  import mx.controls.RadioButton;
27  import mx.core.Application;  import mx.core.Application;
28  import mx.core.DragSource;  import mx.core.DragSource;
29    import mx.core.FlexGlobals;
30  import mx.events.AIREvent;  import mx.events.AIREvent;
31  import mx.events.CloseEvent;  import mx.events.CloseEvent;
32  import mx.events.DataGridEvent;  import mx.events.DataGridEvent;
# Line 80  public var relationSortIndex:int = 0; Line 83  public var relationSortIndex:int = 0;
83  public var relationOrderIndex:int = 0;  public var relationOrderIndex:int = 0;
84  public var isNgUpEnable:Boolean = true;  public var isNgUpEnable:Boolean = true;
85  public var isSmoothing:Boolean = true;  public var isSmoothing:Boolean = true;
86    public var playerQuality:int = 2;
87    
88  public static const RESIZE_TYPE_NICO:int = 1;  public static const RESIZE_TYPE_NICO:int = 1;
89  public static const RESIZE_TYPE_VIDEO:int = 2;  public static const RESIZE_TYPE_VIDEO:int = 2;
# Line 691  private function relationOrderComboboxCh Line 695  private function relationOrderComboboxCh
695          playerController.setNicoRelationInfoForRelationSortTypeChange();          playerController.setNicoRelationInfoForRelationSortTypeChange();
696  }  }
697    
698  private function configCanvasCreationCompleteHandler(event:FlexEvent):void{  private function playerQualitySliderChanged(event:Event):void{
699          checkbox_PlayerAlwaysFront.selected = videoPlayer.isAlwaysFront;          playerQuality = slider_playerQuality.value;
         checkbox_InfoViewAlwaysFront.selected = isInfoViewAlwaysFront;  
         checkbox_playerFollow.selected = isPlayerFollow;  
         radioGroup_resizeType.selectedValue = selectedResizeType;  
700                    
701            if(playerController != null){
702                    playerController.setPlayerQuality(playerQuality);
703            }
704    }
705    
706    private function configCanvas1CreationCompleteHandler(event:FlexEvent):void{
707          checkbox_resizePlayerEachPlay.selected = isResizePlayerEachPlay;          checkbox_resizePlayerEachPlay.selected = isResizePlayerEachPlay;
708            
709            radioGroup_resizeType.selectedValue = selectedResizeType;
710          if(isResizePlayerEachPlay){          if(isResizePlayerEachPlay){
                 //                      playerController.resizePlayerJustVideoSize();  
711                  radioButton_resizeNicoDou.enabled = true;                  radioButton_resizeNicoDou.enabled = true;
712                  radioButton_resizeVideo.enabled = true;                  radioButton_resizeVideo.enabled = true;
713          }else{          }else{
# Line 707  private function configCanvasCreationCom Line 715  private function configCanvasCreationCom
715                  radioButton_resizeVideo.enabled = false;                  radioButton_resizeVideo.enabled = false;
716          }          }
717                    
718          checkBox_showAlwaysNicowariArea.selected = isShowAlwaysNicowariArea;          checkbox_enableWideMode.selected = isEnableWideMode;
719            checkBox_isSmoothing.selected = isSmoothing;
720            
721            if(playerController.getCommentManager() != null){
722                    playerController.getCommentManager().setAntiAlias(isAntiAlias);
723            }
724            
725            checkBox_isAlwaysEconomyForStreaming.selected = isAlwaysEconomyForStreaming;
726                    
727            slider_playerQuality.value = playerQuality;
728            
729    }
730    
731    private function configCanvas2CreationCompleteHandler(event:FlexEvent):void{
732          checkBox_commentBold.selected = isCommentFontBold;          checkBox_commentBold.selected = isCommentFontBold;
733            checkBox_hideSekaShinComment.selected = isHideSekaShinComment;
734            checkBox_isNgUpEnable.selected = isNgUpEnable;
735                    
         checkbox_hideUnderController.selected = isHideUnderController;  
736          slider_commentScale.value = commentScale;          slider_commentScale.value = commentScale;
737          slider_fps.value = getValueByFps(fps);          slider_fps.value = getValueByFps(fps);
           
         checkBox_renewComment.selected = isRenewCommentEachPlay;  
738          slider_showCommentCount.value = showCommentCount;          slider_showCommentCount.value = showCommentCount;
739          slider_showCommentTime.value = showCommentSec;          slider_showCommentTime.value = showCommentSec;
740          slider_commentAlpha.value = commentAlpha;          slider_commentAlpha.value = commentAlpha;
         checkBox_renewTagAndNicowari.selected = isRenewOtherCommentWithCommentEachPlay;  
         checkBox_renewTagAndNicowari.enabled = isRenewCommentEachPlay;  
741                    
         checkBox_enableJump.selected = isEnableJump;  
         checkBox_askToUserOnJump.selected = isAskToUserOnJump;  
         checkBox_askToUserOnJump.enabled = isEnableJump;  
742                    
743          checkBox_isAlwaysEconomyForStreaming.selected = isAlwaysEconomyForStreaming;  }
744    
745    private function configCanvas3CreationCompleteHandler(event:FlexEvent):void{
746            checkbox_PlayerAlwaysFront.selected = videoPlayer.isAlwaysFront;
747            checkbox_InfoViewAlwaysFront.selected = isInfoViewAlwaysFront;
748                    
749          checkbox_hideTagArea.selected = isHideTagArea;          checkbox_playerFollow.selected = isPlayerFollow;
750            checkBox_renewComment.selected = isRenewCommentEachPlay;
751            checkBox_renewTagAndNicowari.selected = isRenewOtherCommentWithCommentEachPlay;
752            checkBox_renewTagAndNicowari.enabled = isRenewCommentEachPlay;
753                    
754          isAppendComment = Application.application.getAppendComment();          isAppendComment = FlexGlobals.topLevelApplication.getAppendComment();
755          checkBox_isAppendComment.selected = isAppendComment;          checkBox_isAppendComment.selected = isAppendComment;
756          checkBox_isAppendComment.enabled = isRenewCommentEachPlay;          checkBox_isAppendComment.enabled = isRenewCommentEachPlay;
         checkBox_hideSekaShinComment.selected = isHideSekaShinComment;  
757                    
         checkBox_isNgUpEnable.selected = isNgUpEnable;  
         checkBox_isSmoothing.selected = isSmoothing;  
758                    
759          if(playerController.getCommentManager() != null){          checkBox_showAlwaysNicowariArea.selected = isShowAlwaysNicowariArea;
760                  playerController.getCommentManager().setAntiAlias(isAntiAlias);          checkbox_hideTagArea.selected = isHideTagArea;
761          }          checkbox_hideUnderController.selected = isHideUnderController;
762            
763            checkBox_enableJump.selected = isEnableJump;
764            checkBox_askToUserOnJump.selected = isAskToUserOnJump;
765            checkBox_askToUserOnJump.enabled = isEnableJump;
766  }  }
767    
768    
769  public function isRepeatAll():Boolean{  public function isRepeatAll():Boolean{
770          return this.isPlayListRepeat;          return this.isPlayListRepeat;
771  }  }
# Line 1042  private function readStore():void{ Line 1065  private function readStore():void{
1065                          playerController.setVideoSmoothing(this.isSmoothing);                          playerController.setVideoSmoothing(this.isSmoothing);
1066                  }                  }
1067                                    
1068                    confValue = ConfigManager.getInstance().getItem("playerQuality");
1069                    if(confValue != null){
1070                            playerQuality = int(confValue);
1071                    }
1072                    if(playerController != null){
1073                            playerController.setPlayerQuality(this.playerQuality);
1074                    }
1075                    
1076                    confValue = ConfigManager.getInstance().getItem("isEnableWideMode");
1077                    if(confValue != null){
1078                            isEnableWideMode = ConfUtil.parseBoolean(confValue);
1079                    }
1080                                    
1081          }catch(error:Error){          }catch(error:Error){
1082                  trace(error.getStackTrace());                  trace(error.getStackTrace());
# Line 1161  public function saveStore():void{ Line 1196  public function saveStore():void{
1196                  ConfigManager.getInstance().removeItem("isSmoothing");                  ConfigManager.getInstance().removeItem("isSmoothing");
1197                  ConfigManager.getInstance().setItem("isSmoothing",isSmoothing);                  ConfigManager.getInstance().setItem("isSmoothing",isSmoothing);
1198                                    
1199                    ConfigManager.getInstance().removeItem("playerQuality");
1200                    ConfigManager.getInstance().setItem("playerQuality", playerQuality);
1201                    
1202                    ConfigManager.getInstance().removeItem("isEnableWideMode");
1203                    ConfigManager.getInstance().setItem("isEnableWideMode", isEnableWideMode);
1204                    
1205                  ConfigManager.getInstance().save();                  ConfigManager.getInstance().save();
1206                                    
1207          }catch(error:Error){          }catch(error:Error){

Legend:
Removed from v.490  
changed lines
  Added in v.498

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26