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 507 by mineap, Sun May 1 06:18:40 2011 UTC revision 526 by mineap, Thu May 5 16:53:06 2011 UTC
# Line 27  import mx.controls.RadioButton; Line 27  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;  import mx.core.FlexGlobals;
30    import mx.core.Window;
31  import mx.events.AIREvent;  import mx.events.AIREvent;
32  import mx.events.CloseEvent;  import mx.events.CloseEvent;
33  import mx.events.DataGridEvent;  import mx.events.DataGridEvent;
# Line 48  import org.mineap.nndd.player.PlayerCont Line 49  import org.mineap.nndd.player.PlayerCont
49  import org.mineap.nndd.util.PathMaker;  import org.mineap.nndd.util.PathMaker;
50  import org.mineap.util.config.ConfUtil;  import org.mineap.util.config.ConfUtil;
51  import org.mineap.util.config.ConfigManager;  import org.mineap.util.config.ConfigManager;
52  import org.mineap.util.font.FontUtil;  import org.mineap.util.font.FontUtil;
53    
54  private var videoPlayer:VideoPlayer;  private var videoPlayer:VideoPlayer;
55  private var playerController:PlayerController;  private var playerController:PlayerController;
# Line 86  public var relationOrderIndex:int = 0; Line 87  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 playerQuality:int = 2;  public var playerQuality:int = 2;
90    public var isFollowInfoViewHeight:Boolean = false;
91    
92  public static const RESIZE_TYPE_NICO:int = 1;  public static const RESIZE_TYPE_NICO:int = 1;
93  public static const RESIZE_TYPE_VIDEO:int = 2;  public static const RESIZE_TYPE_VIDEO:int = 2;
# Line 283  private function checkboxPlayerFollowCha Line 285  private function checkboxPlayerFollowCha
285          }          }
286  }  }
287    
288    private function checkboxFollowInfoViewHeight(event:Event):void
289    {
290            this.isFollowInfoViewHeight = this.checkbox_followInfoViewHeight.selected;
291            if ((event.currentTarget as CheckBox).selected)
292            {
293                    this.videoPlayer.resizeInfoView();
294            }
295    }
296    
297  private function checkboxHideUnderControllerChanged(event:Event):void{  private function checkboxHideUnderControllerChanged(event:Event):void{
298          this.isHideUnderController = this.checkbox_hideUnderController.selected;          this.isHideUnderController = this.checkbox_hideUnderController.selected;
299          if(this.videoPlayer.stage.displayState != StageDisplayState.FULL_SCREEN_INTERACTIVE){          if(this.videoPlayer.stage.displayState != StageDisplayState.FULL_SCREEN_INTERACTIVE){
# Line 1097  private function readStore():void{ Line 1108  private function readStore():void{
1108                          isEnableWideMode = ConfUtil.parseBoolean(confValue);                          isEnableWideMode = ConfUtil.parseBoolean(confValue);
1109                  }                  }
1110                                    
1111                    confValue = ConfigManager.getInstance().getItem("isFollowInfoViewHeight");
1112                    if (confValue != null)
1113                    {
1114                            isFollowInfoViewHeight = ConfUtil.parseBoolean(confValue);
1115                    }
1116                    
1117          }catch(error:Error){          }catch(error:Error){
1118                  trace(error.getStackTrace());                  trace(error.getStackTrace());
1119                  Alert.show(Message.M_CONF_FILE_IS_BROKEN, Message.M_ERROR);                  Alert.show(Message.M_CONF_FILE_IS_BROKEN, Message.M_ERROR);
# Line 1224  public function saveStore():void{ Line 1241  public function saveStore():void{
1241                  ConfigManager.getInstance().removeItem("isEnableWideMode");                  ConfigManager.getInstance().removeItem("isEnableWideMode");
1242                  ConfigManager.getInstance().setItem("isEnableWideMode", isEnableWideMode);                  ConfigManager.getInstance().setItem("isEnableWideMode", isEnableWideMode);
1243                                    
1244                    ConfigManager.getInstance().removeItem("isFollowInfoViewHeight");
1245                    ConfigManager.getInstance().setItem("isFollowInfoViewHeight", isFollowInfoViewHeight);
1246                    
1247                  ConfigManager.getInstance().save();                  ConfigManager.getInstance().save();
1248                                    
1249          }catch(error:Error){          }catch(error:Error){

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

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