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 527 by mineap, Thu May 5 16:56:26 2011 UTC revision 529 by mineap, Fri May 6 08:15:30 2011 UTC
# Line 86  public var relationSortIndex:int = 0; Line 86  public var relationSortIndex:int = 0;
86  public var relationOrderIndex:int = 0;  public var relationOrderIndex:int = 0;
87  public var isNgUpEnable:Boolean = true;  public var isNgUpEnable:Boolean = true;
88  public var isSmoothing:Boolean = true;  public var isSmoothing:Boolean = true;
89    public var isSmoothingOnlyNotPixelIdenticalDimensions:Boolean = true;
90  public var playerQuality:int = 2;  public var playerQuality:int = 2;
91  public var isFollowInfoViewHeight:Boolean = false;  public var isFollowInfoViewHeight:Boolean = false;
92    
# Line 213  private function stop():void{ Line 214  private function stop():void{
214    
215  private function checkBoxAppendCommentChanged(event:Event):void{  private function checkBoxAppendCommentChanged(event:Event):void{
216          this.isAppendComment = event.target.selected;          this.isAppendComment = event.target.selected;
217          Application.application.setAppendComment(this.isAppendComment);          FlexGlobals.topLevelApplication.setAppendComment(this.isAppendComment);
218  }  }
219    
220  public function setAppendComment(boolean:Boolean):void{  public function setAppendComment(boolean:Boolean):void{
# Line 244  public function checkBoxNgUpChanged(even Line 245  public function checkBoxNgUpChanged(even
245    
246  public function checkBoxSmoothingChanged(event:Event):void{  public function checkBoxSmoothingChanged(event:Event):void{
247          this.isSmoothing = checkBox_isSmoothing.selected;          this.isSmoothing = checkBox_isSmoothing.selected;
248            checkBox_isSmoothingOnlyNotPixelIdenticalDimensions.enabled = this.isSmoothing;
249          if(this.playerController != null){          if(this.playerController != null){
250                  this.playerController.setVideoSmoothing(this.isSmoothing);                  this.playerController.setVideoSmoothing(this.isSmoothing);
251          }          }
252  }  }
253    
254    public function checkBoxSmoothingOnlyNotPixelIdenticalDimensionsChanged(event:Event):void
255    {
256            this.isSmoothingOnlyNotPixelIdenticalDimensions = checkBox_isSmoothingOnlyNotPixelIdenticalDimensions.selected;
257            if (this.playerController != null)
258            {
259                    this.playerController.setVideoSmoothing(this.isSmoothing);
260            }
261    }
262    
263  private function checkBoxPlayerAlwaysFrontChanged(event:Event):void{  private function checkBoxPlayerAlwaysFrontChanged(event:Event):void{
264          this.videoPlayer.isAlwaysFront = (event.currentTarget as CheckBox).selected;          this.videoPlayer.isAlwaysFront = (event.currentTarget as CheckBox).selected;
265          this.videoPlayer.alwaysInFront = (event.currentTarget as CheckBox).selected;          this.videoPlayer.alwaysInFront = (event.currentTarget as CheckBox).selected;
# Line 737  private function configCanvas1CreationCo Line 748  private function configCanvas1CreationCo
748                    
749          checkbox_enableWideMode.selected = isEnableWideMode;          checkbox_enableWideMode.selected = isEnableWideMode;
750          checkBox_isSmoothing.selected = isSmoothing;          checkBox_isSmoothing.selected = isSmoothing;
751            checkBox_isSmoothingOnlyNotPixelIdenticalDimensions.enabled = isSmoothing;
752            checkBox_isSmoothingOnlyNotPixelIdenticalDimensions.selected = isSmoothingOnlyNotPixelIdenticalDimensions;
753                    
754          if(playerController.getCommentManager() != null){          if(playerController.getCommentManager() != null){
755                  playerController.getCommentManager().setAntiAlias(isAntiAlias);                  playerController.getCommentManager().setAntiAlias(isAntiAlias);
# Line 1097  private function readStore():void{ Line 1110  private function readStore():void{
1110                          playerController.setVideoSmoothing(this.isSmoothing);                          playerController.setVideoSmoothing(this.isSmoothing);
1111                  }                  }
1112                                    
1113                    confValue = ConfigManager.getInstance().getItem("isSmoothingOnlyNotPixelIdenticalDimensions");
1114                    if(confValue != null){
1115                            isSmoothingOnlyNotPixelIdenticalDimensions = ConfUtil.parseBoolean(confValue);
1116                    }
1117                    
1118                  confValue = ConfigManager.getInstance().getItem("playerQuality");                  confValue = ConfigManager.getInstance().getItem("playerQuality");
1119                  if(confValue != null){                  if(confValue != null){
1120                          playerQuality = int(confValue);                          playerQuality = int(confValue);
# Line 1237  public function saveStore():void{ Line 1255  public function saveStore():void{
1255                  ConfigManager.getInstance().removeItem("isSmoothing");                  ConfigManager.getInstance().removeItem("isSmoothing");
1256                  ConfigManager.getInstance().setItem("isSmoothing",isSmoothing);                  ConfigManager.getInstance().setItem("isSmoothing",isSmoothing);
1257                                    
1258                    ConfigManager.getInstance().removeItem("isSmoothingOnlyNotPixelIdenticalDimensions");
1259                    ConfigManager.getInstance().setItem("isSmoothingOnlyNotPixelIdenticalDimensions", isSmoothingOnlyNotPixelIdenticalDimensions);
1260                    
1261                  ConfigManager.getInstance().removeItem("playerQuality");                  ConfigManager.getInstance().removeItem("playerQuality");
1262                  ConfigManager.getInstance().setItem("playerQuality", playerQuality);                  ConfigManager.getInstance().setItem("playerQuality", playerQuality);
1263                                    

Legend:
Removed from v.527  
changed lines
  Added in v.529

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