チェンジセット 2652

差分発生行の前後
無視リスト:
コミット日時:
2009/05/16 20:49:15 (3 年前)
コミッタ:
uwi
ログメッセージ:

デバッグしまくり

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • air/TLife/trunk/application.xml

    r2651 r2652  
    33   
    44  <id>uwi.TLife</id>  
    5   <version>alpha19</version> 
     5  <version>alpha20</version> 
    66  <filename>TLife</filename> 
    77  <name>TLife</name>  
  • air/TLife/trunk/src/Main.mxml

    r2651 r2652  
    115115                                Logger.errorLevel = Logger.INFO; 
    116116                                Logger.dumpLimDepth = 999; 
    117 //                            Logger.logging = new FilePutLogging(CommonData.FILE_LOG); 
    118                               Logger.logging = new TraceLogging(); 
     117                              Logger.logging = new FilePutLogging(CommonData.FILE_LOG); 
     118//                            Logger.logging = new TraceLogging(); 
    119119 
    120120                                postarea.text = ""; 
     
    221221                                } 
    222222                                tabbar.titles = new ArrayCollection(ar); 
    223                                 tabbar.changeLayout(); 
    224                                 tabbar.SelectedIndex = 0; 
     223                                tabbar.changeLayout(0); 
    225224                                 
    226225                                reflectConfig(); 
  • air/TLife/trunk/src/uwi/search/Searcher.as

    r2650 r2652  
    55  import mx.controls.DataGrid; 
    66  import mx.core.Application; 
     7  import mx.utils.StringUtil; 
    78  import uwi.migemo.AIRMigemo; 
    89  import uwi.regexp.RegExpParser; 
     
    154155      if (query.posterid) { 
    155156        var escaped : Array = []; 
    156         for (var q : String in query.posterid) { 
     157        for each(var q : String in query.posterid) { 
    157158          escaped.push(StringUtility.escapeSQL(q)); 
    158159        } 
     
    162163        if (query.content is RegExp) query.content = query.content.source; 
    163164         
    164         for (var frag : String in query.content) { 
     165        for each(var frag : String in query.content) { 
    165166          var prefix : String = frag.charAt(0); 
    166167          if (prefix == "-") { 
     
    169170          frag = StringUtility.escapeSQLForLike(frag); 
    170171          if(!option.capital){ 
    171             conds.push("content " + prefix == "-" ? "not " : "" + "glob '" + frag + "'"); 
     172            conds.push("content " + (prefix == "-" ? "not " : "") + "glob '" + frag + "'"); 
    172173          }else { 
    173             conds.push("content " + prefix == "-" ? "not " : "" + "like '" + frag + "'"); 
     174            conds.push("content " + (prefix == "-" ? "not " : "") + "like '" + frag + "'"); 
    174175          } 
    175176        } 
     
    190191          rule : conds.join(" and "), 
    191192          type : 1, 
    192           numdisplay : 0, 
     193          numdisplay : 20, 
    193194          numnotify : 0, 
    194195          manageunread : -1, 
     
    196197          hammer : -1 
    197198        } 
    198         Application.application.tabbar.selectTabName(title); 
     199        Application.application.tabbar.callLater(function() : void { 
     200          Application.application.tabbar.selectTabName(title); 
     201        }); 
    199202      } 
    200203    } 
     
    217220      if (query.posterid) { 
    218221        // queryを空白文字で分解 
    219         query.posterid = query.posterid.split(" "); 
     222        query.posterid = StringUtil.trim(query.posterid).split(" "); 
    220223      } 
    221224       
  • air/TLife/trunk/src/uwi/thread/event/ContextMenuItemEventThread.as

    r2650 r2652  
    415415    { 
    416416      var tb : TabBar = e.mouseTarget.parent as TabBar; 
    417       var oldtabname : String = tb.itemToLabel(e.mouseTarget) 
     417      var oldtabname : String = tb.itemToLabel(e.mouseTarget); 
    418418      var ans : Answer = new Answer(); 
    419419      ans.title = "リネーム(from " + oldtabname + ")"; 
     
    421421        if (newtabname == "") return; 
    422422        if (tabbar.titles.contains(newtabname)) return; 
     423         
     424        var ind : int = tabbar.titles.source.indexOf(oldtabname); 
     425        tabbar.titles.setItemAt(newtabname, ind); 
    423426         
    424427        for each(var rule : TabRule in CommonData.tabrules){ 
  • air/TLife/trunk/src/uwi/thread/event/PostEventThread.as

    r2651 r2652  
    4848    public function PostEventThread()  
    4949    { 
    50       sub = new EventThread(postarea, Event.CHANGE, onChange); 
    5150      uict = new UserIDCompleteThread(postarea, Application.application as Container); 
    5251      downatpostarea = false; 
     
    5655    protected override function run() : void  
    5756    { 
     57      sub = new EventThread(postarea, Event.CHANGE, onChange); 
    5858      sub.start(); 
    5959      uict.start(); 
     
    132132       
    133133      CommonData.datagridsuspend = true; 
    134 //      next(waitEvents); 
     134      next(waitEvents); 
    135135    } 
    136136     
    137137    private function onKeyUp(e : KeyboardEvent) : void 
    138138    { 
     139      trace("up"); 
    139140      CommonData.datagridsuspend = false; 
    140141       
     
    182183      } 
    183184       
    184       post(); 
    185       /* 
     185//      post(); 
     186/* 
    186187      // ポスト直前に短縮する 
    187188      switch(CommonData.configxml.urlshotening.policy) { 
  • air/TLife/trunk/src/uwi/ui/dbsearch/DBSearchWindow.mxml

    r2634 r2652  
    99  systemChrome="standard" 
    1010  transparent="false" 
    11   type="utility
     11  type="normal
    1212  paddingLeft="1" 
    1313  paddingRight="1" 
     
    1818  resizable="false" 
    1919  showStatusBar="false" 
     20  alwaysInFront="false" 
    2021  creationComplete="onLoad()" 
    2122  closing="onClosing()" 
  • air/TLife/trunk/src/uwi/ui/dbsearch/DBSearchWindowEventThread.as

    r2634 r2652  
    1616  { 
    1717    private var sw : DBSearchWindow; 
     18    private var code_down : uint; 
    1819     
    1920    public function DBSearchWindowEventThread(sw : DBSearchWindow) 
     
    2425    protected override function run() : void 
    2526    { 
     27      event(sw.queryuserid, KeyboardEvent.KEY_DOWN, onKeyDown); 
     28      event(sw.querycontent, KeyboardEvent.KEY_DOWN, onKeyDown); 
    2629      event(sw.queryuserid, KeyboardEvent.KEY_UP, onKeyUp); 
    2730      event(sw.querycontent, KeyboardEvent.KEY_UP, onKeyUp); 
     
    2932    } 
    3033     
     34    private function onKeyDown(e : KeyboardEvent) : void 
     35    { 
     36      code_down = e.keyCode; 
     37      next(run); 
     38    } 
     39     
    3140    private function onKeyUp(e : KeyboardEvent) : void 
    3241    { 
    33       if (e.keyCode == Keyboard.ENTER) { 
    34         onSearchClick(null); 
    35       }else { 
    36         next(run); 
     42      if (e.keyCode == Keyboard.ENTER && e.keyCode == code_down) { 
     43        doSearch(); 
    3744      } 
     45      next(run); 
    3846    } 
    3947     
    4048    private function onSearchClick(e : MouseEvent) : void 
     49    { 
     50      doSearch(); 
     51      next(run); 
     52    } 
     53     
     54    private function doSearch() : void 
    4155    { 
    4256      var src : Array; 
     
    8498        sw.close(); 
    8599      } 
    86       next(run); 
    87100    } 
    88101  } 
  • air/TLife/trunk/src/uwi/ui/multipletabbar/MultipleTabBar.as

    r2651 r2652  
    6565          tab.dataProvider = tabdp; 
    6666          tab.selectedIndex = -1; 
    67 //          tab.styleName = ".tabbarstyle"; 
    6867          this.tablist.push(tab); 
    6968        } 
     
    7372      this.height = tabheight * tablist.length; 
    7473       
     74      // タブは初期化されているので選び直す 
     75      var ind : int = index != -1 ? index : selectedIndex; 
    7576      this.callLater(function() : void { 
    76         var ind : int = index != -1 ? index : selectedIndex; 
     77        if (ind != selectedIndex) { 
     78          dispatchEvent(EVENT_CHANGE); 
     79        } 
    7780        setSelectedIndexCore(ind); 
    7881      }); 
  • air/TLife/trunk/src/uwi/ui/search/SearchWindow.mxml

    r2634 r2652  
    1717  maximizable="false" 
    1818  resizable="false" 
     19  alwaysInFront="false" 
    1920  showStatusBar="true" 
    2021  creationComplete="onLoad()" 
  • air/TLife/trunk/src/uwi/ui/search/SearchWindowEventThread.as

    r2634 r2652  
    1515  { 
    1616    private var sw : SearchWindow; 
     17    private var code_down : uint; 
    1718     
    1819    public function SearchWindowEventThread(sw : SearchWindow) 
     
    3334    } 
    3435     
    35     private var prevcode : int = -1; 
    36      
    3736    private function onKeyDown(e : KeyboardEvent) : void 
    3837    { 
    39       prevcode = e.keyCode; 
     38      code_down = e.keyCode; 
    4039      sw.status = ""; 
    4140      next(run); 
     
    4443    private function onKeyUp(e : KeyboardEvent) : void 
    4544    { 
    46       if (e.keyCode == Keyboard.ENTER && prevcode == e.keyCode){ 
    47         onSearchClick(null); 
    48       }else { 
    49         next(run); 
     45      if (e.keyCode == Keyboard.ENTER && code_down == e.keyCode) { 
     46        doSearch(true); 
    5047      } 
     48      next(run); 
    5149    } 
    5250     
     
    5856     
    5957    private function onSearchClick(e : MouseEvent) : void 
     58    { 
     59      doSearch(e.target == sw.searchForward); 
     60      next(run); 
     61    } 
     62     
     63    private function doSearch(forward : Boolean) : void 
    6064    { 
    6165      if (sw.queryuserid.text == "" && sw.querycontent.text == "") { 
     
    8892       
    8993      if(CommonData.searcher.searchTimeline(query, {  
    90         forward : e == null || e.target == sw.searchForward, 
     94        forward : forward, 
    9195        fromnext : true, 
    9296        cosuffix : sw.condCoSuffix.selected, // yet 
     
    108112      } 
    109113      if (sw.closeDialog.selected) sw.close(); 
    110       next(run); 
    111114    } 
    112115  }