Changeset 87
- Timestamp:
- 08/17/08 13:43:08 (3 months ago)
- Files:
-
- trunk/lily/lily/chrome/content/bootstrap.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/components (added)
- trunk/lily/lily/chrome/content/components/dialog.js (added)
- trunk/lily/lily/chrome/content/components/editor.js (added)
- trunk/lily/lily/chrome/content/components/iframe.js (added)
- trunk/lily/lily/chrome/content/components/xhr.js (added)
- trunk/lily/lily/chrome/content/externals/amazondotitemlookup.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/amazondotitemsearch.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/amazondotsimilaritylookup.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/babelfish.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/comment.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/get.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/googledotmap.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/id.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/iframe.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/jquerydotcolorpicker.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/message.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/oracle.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/post.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/rss.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/subpatch.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/twitter.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/wikipedia.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/xuldottree.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/yahoodotgeocoding.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/yahoodotgettime.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/yahoodotimagesearch.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/yahoodotitemextraction.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/yahoodotlocalsearch.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/yahoodotnewssearch.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/yahoodotspellingsuggestion.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/yahoodottrafficdata.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/yahoodotvideosearch.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/yahoodotwebsearch.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/yuidotcalendar.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/lib/processing.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/lily.js (modified) (2 diffs)
- trunk/lily/lily/chrome/content/patch.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/services.js (modified) (2 diffs)
- trunk/lily/lily/chrome/content/utils (added)
- trunk/lily/lily/chrome/content/utils.js (deleted)
- trunk/lily/lily/chrome/content/utils/core.js (added)
- trunk/lily/lily/chrome/content/utils/file.js (added)
- trunk/lily/lily/chrome/content/utils/font.js (added)
- trunk/lily/lily/chrome/content/utils/patch.js (added)
- trunk/lily/lily/chrome/content/utils/prefs.js (added)
- trunk/lily/lily/chrome/content/utils/string.js (added)
- trunk/lily/lily/chrome/content/utils/window.js (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lily/lily/chrome/content/bootstrap.js
r39 r87 6 6 "chrome://global/content/nsTransferable.js", 7 7 "chrome://lily/content/lib.js", 8 "chrome://lily/content/utils.js", 8 "chrome://lily/content/utils/core.js", 9 "chrome://lily/content/utils/file.js", 10 "chrome://lily/content/utils/font.js", 11 "chrome://lily/content/utils/patch.js", 12 "chrome://lily/content/utils/prefs.js", 13 "chrome://lily/content/utils/string.js", 14 "chrome://lily/content/utils/window.js", 15 "chrome://lily/content/apiKeyManager.js", 16 "chrome://lily/content/components/dialog.js", 17 "chrome://lily/content/components/editor.js", 18 "chrome://lily/content/components/iframe.js", 19 "chrome://lily/content/components/xhr.js", 9 20 "chrome://lily/content/externals.js", 10 21 "chrome://lily/content/debug.js", trunk/lily/lily/chrome/content/externals/amazondotitemlookup.js
r1 r87 42 42 this.outlet1=new this.outletClass("outlet1",this,"each item as hash with keys {asin, group, title, url, img, author}"); 43 43 this.outlet2=new this.outletClass("outlet2",this,"bang on complete"); 44 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this);44 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); 45 45 46 46 this.inlet1["anything"]=function(str){ trunk/lily/lily/chrome/content/externals/amazondotitemsearch.js
r1 r87 42 42 this.outlet1=new this.outletClass("outlet1",this,"each result as hash with keys {asin, group, title, url, img, author}"); 43 43 this.outlet2=new this.outletClass("outlet2",this,"bang on complete"); 44 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this);44 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); 45 45 46 46 this.inlet1["anything"]=function(str){ trunk/lily/lily/chrome/content/externals/amazondotsimilaritylookup.js
r1 r87 42 42 this.outlet1=new this.outletClass("outlet1",this,"each item as hash with keys {asin, group, title, url, img, author}"); 43 43 this.outlet2=new this.outletClass("outlet2",this,"bang on complete"); 44 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this);44 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); 45 45 46 46 //bang method trunk/lily/lily/chrome/content/externals/babelfish.js
r1 r87 79 79 this.outlet2 = new this.outletClass("outlet2",this,"bang on complete"); 80 80 81 this.xhr=new Lily Utils._xhr(outputResponse,"text",this);81 this.xhr=new LilyComponents._xhr(outputResponse,"text",this); 82 82 83 83 this.inlet1["anything"]=function(str) { trunk/lily/lily/chrome/content/externals/comment.js
r1 r87 76 76 this.displayElement=thisPtr.ui.contentWrapper 77 77 78 var editor=new Lily Utils._editor(this,this.ui.getElByID(thisPtr.createElID("comment")),spacer(),setArgs,getArgs,true); //widget that will handle editing...78 var editor=new LilyComponents._editor(this,this.ui.getElByID(thisPtr.createElID("comment")),spacer(),setArgs,getArgs,true); //widget that will handle editing... 79 79 80 80 this.controller.attachObserver(this.createElID("comment"),"dblclick",editor.startEdit,"edit"); trunk/lily/lily/chrome/content/externals/get.js
r1 r87 39 39 this.inlet1=new this.inletClass("inlet1",this,"url to get, \"bang\" uses url supplied in object argument"); 40 40 41 this.xhr=new Lily Utils._xhr(outputResponse,type,this);41 this.xhr=new LilyComponents._xhr(outputResponse,type,this); 42 42 43 43 this.inlet1["anything"]=function(loc){ trunk/lily/lily/chrome/content/externals/googledotmap.js
r1 r87 152 152 } 153 153 154 var iframe=new Lily Utils._iframe(this,"file://"+Lily.libPath+"/googlemaps.html",300,500,"no",frameInit);154 var iframe=new LilyComponents._iframe(this,"file://"+Lily.libPath+"/googlemaps.html",300,500,"no",frameInit); 155 155 156 156 this.controller.attachObserver(this.objID,"deselect",function(){deselectFunc();},"edit"); trunk/lily/lily/chrome/content/externals/id.js
r1 r87 13 13 this.outlet1 = new this.outletClass("outlet1",this,"most recent queries"); 14 14 this.outlet2 = new this.outletClass("outlet2",this,"bang on complete or error"); 15 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this);15 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); 16 16 17 17 this.inlet1["bang"]=function(){ thisPtr.xhr.loadXMLDoc(url+ "×tamp=" +new Date().getTime()); } trunk/lily/lily/chrome/content/externals/iframe.js
r1 r87 65 65 //_iframe contains the iframe html, ui property is a necessary placeholder, must'nt be null. 66 66 this.ui={}; 67 var iframe=new Lily Utils._iframe(this,this.src,null,null,null,frameInit);67 var iframe=new LilyComponents._iframe(this,this.src,null,null,null,frameInit); 68 68 69 69 trunk/lily/lily/chrome/content/externals/jquerydotcolorpicker.js
r1 r87 50 50 } 51 51 52 var iframe=new Lily Utils._iframe(this,"chrome://lily/content/lib/jquery.html?farbtastic",200,200,"no",frameInit);52 var iframe=new LilyComponents._iframe(this,"chrome://lily/content/lib/jquery.html?farbtastic",200,200,"no",frameInit); 53 53 //iframe.objFrame.addEventListener("load",frameInit,false); 54 54 trunk/lily/lily/chrome/content/externals/message.js
r1 r87 211 211 // 212 212 this.displayElement=this.ui.getElByID(thisPtr.createElID("message")); 213 var editor=new Lily Utils._editor(this,this.displayElement,spacer(),setArgs,getArgs,false); //widget that will handle editing...213 var editor=new LilyComponents._editor(this,this.displayElement,spacer(),setArgs,getArgs,false); //widget that will handle editing... 214 214 215 215 function setStyles() { trunk/lily/lily/chrome/content/externals/oracle.js
r1 r87 16 16 this.outlet2 = new this.outletClass("outlet2",this,"bang on complete or error"); 17 17 18 var xhr=new Lily Utils._xhr(outputResponse,"text",this);18 var xhr=new LilyComponents._xhr(outputResponse,"text",this); 19 19 20 20 this.inlet1["bang"]=function(){ xhr.loadXMLDoc(url); } trunk/lily/lily/chrome/content/externals/post.js
r1 r87 46 46 this.outlet2 = new this.outletClass("outlet2",this,"bang on complete"); 47 47 this.inlet1=new this.inletClass("inlet1",this,"data to post"); 48 this.xhr=new Lily Utils._xhr(outputResponse,type,this,"POST",null,[{name:"Content-Type",value:"application/x-www-form-urlencoded"}]);48 this.xhr=new LilyComponents._xhr(outputResponse,type,this,"POST",null,[{name:"Content-Type",value:"application/x-www-form-urlencoded"}]); 49 49 50 50 this.inlet1["anything"]=function(msg){ thisPtr.xhr.loadXMLDoc(url,msg); } trunk/lily/lily/chrome/content/externals/rss.js
r1 r87 40 40 this.inlet1=new this.inletClass("inlet1",this,"feed url, \"bang\" uses url supplied in object argument"); 41 41 42 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this); //gets xml42 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); //gets xml 43 43 this.rssparser=new LilyServices._rssService(); //converts to js object 44 44 trunk/lily/lily/chrome/content/externals/subpatch.js
r60 r87 274 274 //_iframe contains the iframe html, ui property is a necessary placeholder, must'nt be null. 275 275 this.ui={}; 276 var iframe=new Lily Utils._iframe(this,null,200,200,"no",frameLoad); //no scrolling276 var iframe=new LilyComponents._iframe(this,null,200,200,"no",frameLoad); //no scrolling 277 277 278 278 this.displayElement=this.resizeElement=iframe.objFrame; // trunk/lily/lily/chrome/content/externals/twitter.js
r1 r87 58 58 59 59 //get 60 this.xhr1=new Lily Utils._xhr(outputResponse1,"text",this,"GET",true,[{name:"Authorization",value:"Basic "+ window.btoa(credentials)}]);60 this.xhr1=new LilyComponents._xhr(outputResponse1,"text",this,"GET",true,[{name:"Authorization",value:"Basic "+ window.btoa(credentials)}]); 61 61 //post 62 this.xhr2=new Lily Utils._xhr(outputResponse2,"text",this,"POST",true,[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Authorization",value:"Basic "+ window.btoa(credentials)}]);62 this.xhr2=new LilyComponents._xhr(outputResponse2,"text",this,"POST",true,[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Authorization",value:"Basic "+ window.btoa(credentials)}]); 63 63 64 64 //public timeline trunk/lily/lily/chrome/content/externals/wikipedia.js
r1 r87 40 40 this.outlet2 = new this.outletClass("outlet2",this,"bang on complete or error"); 41 41 42 this.xhr=new Lily Utils._xhr(outputResponse,"text",this);42 this.xhr=new LilyComponents._xhr(outputResponse,"text",this); 43 43 44 44 this.inlet1["anything"]=function(str){ trunk/lily/lily/chrome/content/externals/xuldottree.js
r1 r87 317 317 } 318 318 319 var iframe=new Lily Utils._iframe(this,"chrome://lily/content/lib/base.xul",200,200,"no",frameInit);319 var iframe=new LilyComponents._iframe(this,"chrome://lily/content/lib/base.xul",200,200,"no",frameInit); 320 320 321 321 function frameInit() { trunk/lily/lily/chrome/content/externals/yahoodotgeocoding.js
r1 r87 43 43 this.outlet2=new this.outletClass("outlet2",this,"bang on complete or error"); 44 44 45 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this);45 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); 46 46 47 47 //bang method trunk/lily/lily/chrome/content/externals/yahoodotgettime.js
r1 r87 42 42 this.outlet2=new this.outletClass("outlet2",this,"time as a string"); 43 43 this.outlet3=new this.outletClass("outlet3",this,"bang on complete or error"); 44 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this);44 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); 45 45 46 46 //bang method trunk/lily/lily/chrome/content/externals/yahoodotimagesearch.js
r1 r87 43 43 this.outlet2=new this.outletClass("outlet2",this,"bang on complete or error"); 44 44 45 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this);45 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); 46 46 47 47 this.inlet1["anything"]=function(str){ trunk/lily/lily/chrome/content/externals/yahoodotitemextraction.js
r1 r87 46 46 this.outlet2 = new this.outletClass("outlet2",this,"bang on complete or error"); 47 47 48 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this,"POST",null,[{name:"Content-Type",value:"application/x-www-form-urlencoded"}]);48 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this,"POST",null,[{name:"Content-Type",value:"application/x-www-form-urlencoded"}]); 49 49 50 50 this.inlet1["anything"]=function(msg) { trunk/lily/lily/chrome/content/externals/yahoodotlocalsearch.js
r1 r87 47 47 this.outlet1=new this.outletClass("outlet1",this,"each result as hash {title, url, latitude, longitude, address, city, state, phone}"); 48 48 this.outlet2=new this.outletClass("outlet2",this,"bang on complete or error"); 49 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this);49 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); 50 50 51 51 this.inlet2["anything"]=function(str) { trunk/lily/lily/chrome/content/externals/yahoodotnewssearch.js
r1 r87 41 41 this.outlet1=new this.outletClass("outlet1",this,"each result as hash with keys {title, summary, url}"); 42 42 this.outlet2=new this.outletClass("outlet2",this,"bang on complete or error"); 43 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this);43 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); 44 44 45 45 //&street=701+First+Street&city=Sunnyvale&state=CA trunk/lily/lily/chrome/content/externals/yahoodotspellingsuggestion.js
r1 r87 41 41 this.outlet1=new this.outletClass("outlet1",this,"suggested spelling"); 42 42 this.outlet2=new this.outletClass("outlet2",this,"bang on complete or error"); 43 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this);43 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); 44 44 45 45 //&street=701+First+Street&city=Sunnyvale&state=CA trunk/lily/lily/chrome/content/externals/yahoodottrafficdata.js
r1 r87 41 41 this.outlet1=new this.outletClass("outlet1",this,"each result as hash {title, description, latitude, longitude, direction, severity}"); 42 42 this.outlet2=new this.outletClass("outlet2",this,"bang on complete or error"); 43 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this);43 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); 44 44 45 45 trunk/lily/lily/chrome/content/externals/yahoodotvideosearch.js
r1 r87 41 41 this.outlet1=new this.outletClass("outlet1",this,"each result as hash with keys {\"title\",\"summary\",\"url\",\"height\",\"width\"}"); 42 42 this.outlet2=new this.outletClass("outlet2",this,"bang on complete or error"); 43 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this);43 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); 44 44 45 45 //&street=701+First+Street&city=Sunnyvale&state=CA trunk/lily/lily/chrome/content/externals/yahoodotwebsearch.js
r1 r87 41 41 this.outlet1=new this.outletClass("outlet1",this,"each result as hash with keys {title, summary, url}"); 42 42 this.outlet2=new this.outletClass("outlet2",this,"bang on complete or error"); 43 this.xhr=new Lily Utils._xhr(outputResponse,"xml",this);43 this.xhr=new LilyComponents._xhr(outputResponse,"xml",this); 44 44 45 45 //&street=701+First+Street&city=Sunnyvale&state=CA trunk/lily/lily/chrome/content/externals/yuidotcalendar.js
r1 r87 92 92 } 93 93 94 var iframe=new Lily Utils._iframe(this,"chrome://lily/content/lib/yui.html",185,202,"no",frameInit);94 var iframe=new LilyComponents._iframe(this,"chrome://lily/content/lib/yui.html",185,202,"no",frameInit); 95 95 96 96 function frameInit() { trunk/lily/lily/chrome/content/lib/processing.js
r51 r87 664 664 665 665 //synchronous 666 var xhr = new Lily Utils._xhr(processData,"bin",this,"GET",false);666 var xhr = new LilyComponents._xhr(processData,"bin",this,"GET",false); 667 667 xhr.loadXMLDoc(file); 668 668 xhr.loadXMLDoc(file); //2nd verse, same as the first... trunk/lily/lily/chrome/content/lily.js
r86 r87 289 289 //win,str,width,color 290 290 if(!this.initialized) 291 Lily Utils.displayMessageDialog(content,"<img src='chrome://lily/content/images/activity-medium.png'/>",200);291 LilyComponents._dialog.toggleMessageDialog(content,"<img src='chrome://lily/content/images/activity-medium.png'/>",200); 292 292 }, 293 293 … … 684 684 //only open if the user confirms 685 685 if(hideWarning||prompts.confirmCheck(null, "", "It appears that you're opening a Lily program located at "+url+". Malicious Lily programs can damage your privacy and data. You should only open Lily programs from sources you trust.", "Don't warn again", check)) { 686 var xhr=new Lily Utils._xhr(outputResponse,"text",this);686 var xhr=new LilyComponents._xhr(outputResponse,"text",this); 687 687 xhr.loadXMLDoc(url); 688 688 } trunk/lily/lily/chrome/content/patch.js
r86 r87 2205 2205 this.displayPatchDialog=function(str,color) { 2206 2206 var width=Math.floor(this.patch.width/1.33); 2207 return Lily Utils.toggleMessageDialog(thisPtr.oWin,str,width,color);2207 return LilyComponents._dialog.toggleMessageDialog(thisPtr.oWin,str,width,color); 2208 2208 } 2209 2209 trunk/lily/lily/chrome/content/services.js
r14 r87 53 53 this.outputError=null; //error/complete cb attaches here 54 54 55 this.xhr=new Lily Utils._xhr(handleResponse,'xml',this);55 this.xhr=new LilyComponents._xhr(handleResponse,'xml',this); 56 56 57 57 //loads the default url … … 232 232 this.outputError=null; //error/complete cb attaches here 233 233 234 this.xhr=new Lily Utils._xhr(handleResponse,'text',this);234 this.xhr=new LilyComponents._xhr(handleResponse,'text',this); 235 235 236 236 function formatDate(unixTime) {
