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 498 by mineap, Sat Apr 23 06:01:55 2011 UTC revision 507 by mineap, Sun May 1 06:18:40 2011 UTC
# Line 33  import mx.events.DataGridEvent; Line 33  import mx.events.DataGridEvent;
33  import mx.events.DragEvent;  import mx.events.DragEvent;
34  import mx.events.FlexEvent;  import mx.events.FlexEvent;
35  import mx.events.ListEvent;  import mx.events.ListEvent;
36    import mx.events.NumericStepperEvent;
37  import mx.events.SliderEvent;  import mx.events.SliderEvent;
38    
39  import org.mineap.nicovideo4as.model.SearchType;  import org.mineap.nicovideo4as.model.SearchType;
# Line 63  public var isHideUnderController:Boolean Line 64  public var isHideUnderController:Boolean
64  public var commentScale:Number = 1.0;  public var commentScale:Number = 1.0;
65  public var fps:Number = 15;  public var fps:Number = 15;
66  public var isShowOnlyPermissionComment:Boolean = false;  public var isShowOnlyPermissionComment:Boolean = false;
67  public var showCommentCount:int = 250;  public var showCommentCountPerMin:int = 50;
68    public var showOwnerCommentCountPerMin:int = 50;
69  public var showCommentSec:int = 3;  public var showCommentSec:int = 3;
70  public var isAntiAlias:Boolean = true;  public var isAntiAlias:Boolean = true;
71  public var commentAlpha:int = 100;  public var commentAlpha:int = 100;
# Line 397  private function sliderFpsChanged(event: Line 399  private function sliderFpsChanged(event:
399          this.playerController.changeFps(this.fps);          this.playerController.changeFps(this.fps);
400  }  }
401    
402  private function sliderShowCommentCountChanged(event:SliderEvent):void{  
403          this.showCommentCount = event.value;  private function commentCountNumStepperChanged(event:NumericStepperEvent):void
404    {
405            this.showCommentCountPerMin = event.value;
406    }
407    
408    private function ownerCommentCountNumStepperChanged(event:NumericStepperEvent):void
409    {
410            this.showOwnerCommentCountPerMin = event.value;
411  }  }
412    
413  private function addNGListIdButtonClicked():void{  private function addNGListIdButtonClicked():void{
# Line 735  private function configCanvas2CreationCo Line 744  private function configCanvas2CreationCo
744                    
745          slider_commentScale.value = commentScale;          slider_commentScale.value = commentScale;
746          slider_fps.value = getValueByFps(fps);          slider_fps.value = getValueByFps(fps);
747          slider_showCommentCount.value = showCommentCount;          
748            commentNumStepper.value = showCommentCountPerMin;
749            ownerCommentNumStepper.value = showOwnerCommentCountPerMin;
750            
751          slider_showCommentTime.value = showCommentSec;          slider_showCommentTime.value = showCommentSec;
752          slider_commentAlpha.value = commentAlpha;          slider_commentAlpha.value = commentAlpha;
753                    
# Line 875  private function readStore():void{ Line 887  private function readStore():void{
887                  if (confValue == null) {                  if (confValue == null) {
888                          //何もしない                          //何もしない
889                  }else{                  }else{
890                          showCommentCount = int(confValue);                          showCommentCountPerMin = int(confValue);
891                    }
892                    
893                    confValue = ConfigManager.getInstance().getItem("showOwnerCommentCount");
894                    if (confValue == null) {
895                            showOwnerCommentCountPerMin = showCommentCountPerMin;
896                    }else{
897                            showOwnerCommentCountPerMin = int(confValue);
898                  }                  }
899                                    
900                  confValue = ConfigManager.getInstance().getItem("showCommentSec");                  confValue = ConfigManager.getInstance().getItem("showCommentSec");
# Line 1134  public function saveStore():void{ Line 1153  public function saveStore():void{
1153                  ConfigManager.getInstance().setItem("isShowOnlyPermissionComment", isShowOnlyPermissionComment);                  ConfigManager.getInstance().setItem("isShowOnlyPermissionComment", isShowOnlyPermissionComment);
1154                                    
1155                  ConfigManager.getInstance().removeItem("showCommentCount");                  ConfigManager.getInstance().removeItem("showCommentCount");
1156                  ConfigManager.getInstance().setItem("showCommentCount", showCommentCount);                  ConfigManager.getInstance().setItem("showCommentCount", showCommentCountPerMin);
1157                    
1158                    ConfigManager.getInstance().removeItem("showOwnerCommentCount");
1159                    ConfigManager.getInstance().setItem("showOwnerCommentCount", showOwnerCommentCountPerMin);
1160                                    
1161                  ConfigManager.getInstance().removeItem("showCommentSec");                  ConfigManager.getInstance().removeItem("showCommentSec");
1162                  ConfigManager.getInstance().setItem("showCommentSec", showCommentSec);                  ConfigManager.getInstance().setItem("showCommentSec", showCommentSec);

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

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