3.2 Yahoo! Widget

Yahoo! Widgets Yahoo! Widgets Running on Mac OS X 1. Was developed by a core development team consisting of Arlo Rose, Perr Clarke, and Ed Voas. 2. Originally released on February 10, 2003 as Mac OS X application which cost some money. (Version 1.0) 3. Bought by Yahoo! On July 25, 2005 and become freeware since. (Version 2.1) 4. Previously called Konfabulator, is a free application platform for Mac OS X and Microsoft Windows. 5. Current version is 4.5 as of November 18, 2008. 6. Uses a JavaScript runtime environment combined with an XML interpreter to run small applications referred as Widgets (with big W). 7. Part of class of software applications called widget engines. 8. Each Widget runs in its own system process, thus improving the stability of the software application. 9. Widgets use extra computer memory. 10. Konsposé a.k.a Heads-Up Display causes all widgets to be brought to foreground, leaving all other applications in the background. Yahoo! Widgets with Heads-Up Display 11. The Dock was introduced in Yahoo! Widget Engine 4.0. 12. The Dock shows all currently open Widgets with representative icons and allows users to expand the dock to show all Widgets inside the users “My Widgets” folder. 13. The Dock helps the user to close, show preferences, and reveal a Widget. Yahoo! Widgets Dock 14. Has a very flexible API based around JavaScript. 15. Some of the features include: automatically to check gallery downloaded Widgets for updates, support for WebKit and Flash, Animator objects, SQlite, and Canvas. 16. Animator objects are for aiding in visual effects. 17. SQlite is used to create and modify databases. 18. Canvas is used to create simple drawing programs.

 

 

widget的構成
1. .kon檔:裡面是由xml構成 包含最基本widget的定義
編輯.kon檔要使用文字編輯器

2. .js 包含了和使用者互動的內容 由javascript構成 widget越來越複雜把所有的code寫在.kon內會造成閱讀的困難(因為是xml檔)
所以把和使用者互動的部分寫在.js 讓.kon檔include 在 <widget> tag 之後加入 <action trigger="onLoad" file="JavaScript檔名"/>

3. 圖形檔案 所有構成widget需要的圖 通常為 PNG 格式
打包:
最後的打包工具下載處 只需要把包含上面1.2.3檔案的資料夾拖曳到上面
按下convert就會自動幫我們打包好
打包好的檔案會出現在和資料夾同一個目錄下 為.widget檔
http://tw.widget.yahoo.com/gallery/more_info.php?widget=C02000255

簡單來說yahoo widget就是一堆的桌面小工具,一開始本來是要收錢的軟體

但是後來yahoo把它買下來

這樣就變成免費的

他之前是叫做Konfabulator, 這是我在網路上看的

然後他本來是 Mac OS 的桌面核心技術然後再開發到Windows 上的軟體

這套軟體有很多人在開發

像是桌面天氣或是桌面時鍾或是月曆或是CPU使用率阿 ...等等這些都是

重點是他都做得很美觀

如果記憶體太多用不完,倒是可以去試試看

另外我們也可以自己製作 widget

只要夠熟悉JavaScript 或 XML 就可以了widget主要是由這2個語言所構成。

 

執行:
安裝Yahoo! Widget Engine便可執行

參考資料 是教學文 寫的很清楚 最簡單的hello word 範例在參考資料下載的到
http://homepage.mac.com/neonwang/articles/ywe_howto/helloworld.html