找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 13353|回复: 40

[webOS开发] 更新!webOS-SDK-chapter1(EN-CN)中英文对照-1-090218

[复制链接]
发表于 2009-2-18 18:22 | 显示全部楼层 |阅读模式
首发于Hi-Pda,不是不重视这里,主要是因为crazygorilla发的pdf是在hipda上看到的。(实际上我的homepage就是这里)
5 a" w9 |( L5 ^" t
' c9 u$ \  x5 m2 Z- `* H感谢crazygorilla 发出PDF文档!
" x+ G( x2 R4 B+ h  ~7 U. |  E) B) k; c- x; D1 Y
感谢14楼CasBoy 提出的那个不该有的错误!
0 h% G8 U0 ]* M0 L9 h4 X1 a" O2 M
链接:
* h$ x6 b- ~- G* e& ~: R
' u# w& O0 A, \# K" Ehttp://www.hi-pda.com/forum/view ... 26amp%3Btypeid%3D64
" `2 @: `6 J$ v! G- \0 F3 X$ k
% t3 Z) P3 Q  vOverview of webOS
. J& @8 ?# ?9 n8 F8 I
; G0 y+ F2 O3 t, G- U总论
' E- ^6 z3 a0 c# H7 C' G: W6 P9 J8 X- b

6 Y, D% d4 a$ T2 \% fPalm® webOS™ is Palm's next generation operating system. Designed around an in-credibly fast and beautiful user experience and optimized for the multi-tasking user, webOS integrates the power of a window-based operating system with the simplicity of a browser. Applications are built using standard web technologies and languages, but have access to device-based services and data.
7 O3 \' R5 m& ]  D. ^/ V: ~9 K( I" ?8 T& E' S: _% l  Y
Palm® webOS™是Palm公司新一代的操作系统。WebOS将窗口操作系统的强大功能和浏览器应用的简便性融合在一起,提供了非常快速并且华丽的用户界面,而且还为多任务操作进行了优化。可以使用任何标准的web技术和语言撰写WebOS的应用程序,同时这并不会影响到WebOS应用程序对设备底层服务和本地数据的访问。* \1 c& @7 A) A1 t/ q. i8 }

: W2 Y# x3 z" P' M. bPalm webOS is designed to run on a variety of hardware with different screen sizes, resolutions and orientations, with or without keyboards and works best with a touch-panel though doesn't require one. Because the user interface and application model are built around a web browser, the range of suitable hardware platforms is quite wide, requiring only a CPU, some memory, a wireless data connection, a display, and a means for interacting with the UI and entering text.
7 D1 g" [6 l9 T0 y) n* U; O" S2 n3 ?: E! e8 N5 Q  L, \. k
Palm webOS能够运行在许多设备上,这些设备在屏幕尺寸、分辨率以及用途上各不相同。Palm webOS支持键盘操作,尽管如此,在配备触摸屏的设备上表现更好。因为Palm webOS的用户界面和应用程序都是基于浏览器应用的,所以,只要硬件设备包含一个cpu、一些内存、支持无线数据连接、有显示设备、并且能够进行文本输入和用户界面操作,那么这个设备就能够使用Palm webOS。
+ e5 o  M4 A( q/ t
" ]: _' }2 |! }. bYou can think of webOS applications as native applications, but built from the same standard HTML, CSS and JavaScript that you'd use to develop web applications. Palm has extended the standard web development environment through a JavaScript frame-work that gives standardized UI widgets, and access to selected device hardware and services.
, D0 Q. O9 D$ E% g. l1 k- ^4 r- Z8 s( S1 L9 M+ u' v
尽管Palm webOS应用程序开发基于标准的HTML, CSS and JavaScript(这些语言都是开发web应用程序必备的---注:web应用程序是web应用程序,WebOS应用程序是WebOS应用程序,不是一码事儿),我们仍然可以认为WebOS应用程序就是本地程序。Palm已经通过一套完成的JavaScript frame-work对标准的web开发环境进行了扩展。这套JavaScript frame-work提供了标准化的用户界面组件,并且支持对设备硬件和服务的访问。2 u  m" `7 R' `% e3 f3 J

, Q, o( d! D% K7 f5 F! O. |9 ]+ a: {The user experience is optimized for launching and managing multiple applications at once. WebOS is designed around multi-tasking, and makes it utterly simple to run background applications, to switch between applications in a single step, and to easily handle interruptions and events without losing context. & Z% N0 U4 G; o- V5 i( j

' L/ I+ Y% `! ^$ U+ @5 y1 \用户可以在WebOS上同时启动并且管理多个应用程序,Palm为此对WebOS进行了专门优化。WebOS的设计初衷就是为了更好地支持多任务,因此WebOS能够很容易地运行后台程序、能够在多个程序间一部切换,而且还能够非常轻松地在不丢失当前输入的情况下处理各种中断和系统事件。$ C5 O) R- c' b6 ?9 D; q) \1 y) W
! \& l: ^: G0 k1 S
You will build WebOS applications with common web development tools following typical design and implementation practices for Ajax applications. But your webOS applications are installed and run directly on the device, just as you are used to doing with native applications. 5 [8 K7 n+ y1 C$ @1 Y6 b' H5 d& n

5 r, `  j- p: c: d  A( S# r) _开发人员可以很容易地用常见的web开发工具进行开发,开发方式和开发Ajax应用程序一样。不同的是,WebOS应用程序直接安装并且运行在设备上,这一点和以前的palm应用程序没有任何区别。
% R+ ~% M7 O- u0 u2 k# Q. m0 p' d$ y$ v9 p" c8 T/ O2 }

' F. T* ^8 T- DApplication Model
7 D2 d5 J" c) k9 G# k' V; V  {! A( v( R0 l; l3 L/ h- S! m+ E( V6 k
As shown in Figure 1, the original Palm OS has a typical native application model, as do many of the popular mobile operating systems. Under this model the application's data, logic and user interface are integrated within an executable installed on the native operating system, with direct access to the operating system's services and data. & b6 D9 u5 P  O0 e

+ B% b9 s; j, a+ f0 A7 n如图一所示,最初的PalmOS应用程序和其他流行的移动操作系统一样都是本地程序。在这种情况下,程序的数据、逻辑以及用户界面都被整合在一个可执行应用程序中,然后安装在本地操作系统上,这样能就能够直接访问操作系统服务和数据。
1 p/ [% {/ E1 ~( F
7 T+ o2 B8 R' fClassic web applications are basic HTML-based applications that submit an HTTP request to a web server after every user action, and wait for a response before displaying an updated HTML page. More common in recent years are Ajax applications, which handle many user interactions directly and make web server requests asynchronously. As a result, Ajax applications are able to deliver a richer and more responsive user experience. Some of the best examples of this richer experience are the map applica-tions, which enable users to pan and zoom while asynchronously retrieving needed tiles from the web server. & J) k* E4 P$ k. k8 l
: W+ P% U3 T2 k/ i0 D! i
典型的web应用程序使用以HTML为基础的语言进行开发。在每一个用户动作之后,都会向一个web服务器提交HTTP请求,然后等待回应。收到回应之后,以HTML页面的形式对返回结果进行显示。最近几年更常见的是Ajax应用程序。Ajax应用程序能够直接处理用户动作,并且能够以异步的方式向web服务器发出请求。因此,Ajax就能够提供更丰富更快速的用户体验。地图程序就是个好例子。地图程序在持全景以及缩放功能的同时,也能够异步地从web服务器获取所需的数据。
- z" C+ A: V3 T+ Q/ t: c
7 z7 y9 ^7 z* f, y3 ~" EAjax applications have some significant advantages over embedded applications. They can be more easily deployed and updated through the same search and access techni-ques used for web pages. Developing web applications is far easier too; the simplicity of the languages and tools, particularly for building connected applications, allows de-velopers and designers to be more productive. Connected applications, or applications that leverage dynamic data or web services, are becoming the predominant form for modern applications.
/ t  l+ v7 A! T& a  R2 F( d' |4 Z/ C# [2 [& ~6 `- b: @
Ajax应用程序相比于嵌入式程序有很大的优势。普通网页使用搜索访问技术,用同样的技术就能够很轻松地部署、升级Ajax应用程序。同样,开发web应用程序也极其简单:开发语言和开发工具很简单,这就大大提高了开发设计人员的效率,尤其是开发需要数据连接的程序时。因此,实时数据应用程序(Connected applications,不知道翻译的是否准确)以及支持动态数据和web服务的应用程序就成了主流。
5 {" o- A; B# t% ]" J& V8 u/ A. l) q3 P0 n8 T3 X$ L3 \7 P! X
The webOS application model combines the ease of development and maintenance of a web application with the deep integration available to native applications, signifi-cantly advancing the mobile user experience, while keeping application development simple.
* v* V+ \& S: X$ c
2 J5 `' F: J- E8 r6 q  S1 n- y然而,WebOS应用程序,却进一步把web应用程序开发维护的简便性和本地应用程序的整体性结合在一起。极大地改善了移动用户体验,同时又保留了简便易行的开发方式。
$ Z7 D  X' j& Q
) c+ y% r3 u& N5 Y: }0 x$ D, x  y! }& a( @! G7 G+ l8 ^
**********************************
% j  I$ t5 I% S9 B$ s; a" J5 M7 |
Application Framework and OS 应用程序构架和OS
: I* \# S6 c# N" q
& f9 _+ t$ r. z# j' X5 c  u: WThrough Palm's application framework, applications can embed UI widgets with so-phisticated editing, navigation and display features, enabling more sophisticated ap-plication user interfaces. The framework also includes event handling, notification services and a multi-tasking model. Applications can run in the background, managing data, events and services behind the scenes while engaging the user when needed.
- m" Z5 }# ^$ b: A, J1 ~7 Y
9 ]# A# W( e% r/ EPalm的应用程序构架在用户界面组件里集成了复杂编辑、导航以及一些显示特性,这样就能够开发出更为复杂的用户界面。这套应用程序构架还包括了事件处理、通知服务、以及多任务支持。应用程序在后台运行的同时能够管理数据、事件以及相关服务,用户需要的时候可以轻易切换到显示界面。- L7 z3 K4 Y/ g& H
) N$ u* T( O$ |7 j  z' \8 b) O, V3 l- {
You can create and manage your own persistent data using HTML5 storage functions, and you can access data from some of webOS's core applications, such as Contacts and Calendar. You also have access to some basic system services, most of which are device-resident, such as Location services and Accelerometer data, along with some cloud services, such as XMPP messaging.
  O. Z; ]8 U; }+ Y  w7 m5 F  [+ o" s- F
用户可以使用HTML5的存储函数对需要保存的数据进行管理,用户还能够访问WebOS核心应用程序的数据,比如联系人和日程的数据。用户也能够访问一些基本的系统服务,比如位置服务(应该和gps或者基站定位有关系)和重力感应器数据(这个应该是说WebOS支持重力感应应用,例如IPhone上的《古惑狼赛车》),这些系统服务都是常驻系统的,内嵌于设备的。除此之外,还支持一些晕服务,比如XMPP消息服务。
9 G) S: G" m4 A5 b+ \) t. {$ h3 P8 ^! T: O- P4 ^8 ?2 {
Architecturally, Palm webOS is an embedded Linux operating system that hosts a cus-tom User Interface (UI) System Manager built on standard browser technology. The System Manager provides a full range of system user interface features including: nav-igation, application launching and lifecycle management, event management and no-tifications, system status, local and web searches, and rendering application HTML/ CSS/JavaScript code. & i7 E" }: ]- J. M! ?
3 K0 {: Q: }- Q7 j) e8 U. ]/ i
从整个构架上来说,Palm WebOS是一种嵌入式linux系统。在这个系统上,可以通过标准的浏览器技术构建可定制的用户界面管理器。这套用户界面管理器提供了一整套系统用户界面的特性,包括:导航、应用程序启动和终止、事件管理和消息通知、系统状态、本地以及web搜索、渲染解释应用程序的HTML/ CSS/JavaScript代码。
/ z' v1 C4 v8 n  L: P9 O8 l$ I+ C. n9 J8 a5 [. u* U; ~
You don't need to build a webOS application to make your web content accessible to webOS devices. Palm webOS has a separate browser application to handle standard web pages, and browser-based web applications. While it's expected that more and more web content and services will be delivered as webOS applications, there are mil-lions of legacy websites and information that will continue to be presented in ways best viewed with a classic web browser. Palm webOS supports traditional web content very competitively.
3 Z( N0 ^! H  a
2 S2 _2 D9 _& j$ [+ A" W+ v& _用户不需要专门编写一个WebOS应用程序来浏览web内容。Palm WebOS提供了一个单独的浏览器来对web内容和基于浏览器的web应用程序进行处理。尽管我们预计日后会有越来越多的web内容以WebOS应用程序的形式出现,我们仍然需要认识到,网上还有相当多的信息和网站采用老式代码和构架,对这些信息和站点的浏览而言,传统的浏览器仍然是最好的选择。但是,Palm WebOS对传统内容的支持非常有竞争力。
5 `2 O# V3 c. M( X; e4 t# p) B( v5 Y+ A9 D1 b! B
Beyond the operating system, webOS includes a number of core applications: contacts, calendar, tasks, memos, phone, browser, email and messaging. Other applications are included in the initial release, such as a camera, photo viewer, audio/video player and map application, but the full application suite for a given webOS device will vary depending on the model and carrier configuration. 1 W$ z) f  i! i( Y& e
6 D+ J5 t5 f. D0 ~0 _4 o
除了基础的操作系统,WebOS还包括一整套核心应用程序:联系人、日程表、任务表、记事本、电话功能、浏览器、电子邮件以及短信。在最初发布的版本中,WebOS还会提供额外的应用程序,比如照相机、照片浏览器、音视频播放器以及地图程序。但是,因为具体的硬件配置以及运营商要求不同,特定的WebOS设备包含的应用程序也不尽相同。2 C1 Q5 F6 @& r( T2 x7 z1 l

0 x8 A; b5 D$ s. m% h; S! s# O8 ]1 Q* N# \
User Interface 用户界面! j9 C/ F1 ?9 H% H2 a

; r. `" m) @. e1 x; X8 q: mPalm webOS is designed for mobile, battery-operated devices with limited though var-iable screen sizes, and a touch-driven user interface. User interaction is centered on one application at a time, though applications, once launched, continue to run until closed even when moved out of the foreground view. There is a rich notification system ena-bling applications to subtly inform or directly engage the user, at the application's discretion. - F5 B$ _9 D% ~

( ^3 p" l8 b* `: \& J- TPalm webOS主要应用于手持的、由电池供电的、配备了触摸屏的设备。尽管这些设备的屏幕尺寸不同,但是都有一定限制。每次只能允许一个应用程序显示在屏幕中央,但是其他应用程序一旦启动,就会一直运行(即便没有被显示在屏幕中央位置)直到被关闭。Palm webOS提供了丰富的通知功能,能够使得用户在使用当前程序的同时不会遗漏其他程序的通知。其他程序的通知可能是气泡式的,也能够直接切换到屏幕的中心位置。
0 u$ v0 e. u1 i  |9 Z) D* V/ s+ [. {, e. D+ ^2 y6 ^+ U" i+ ~
Navigation 导航
% W# t" z# g+ B" f: S0 y
- x1 w* W% D. L( X! {- lNavigation is based upon a few simple gestures with optional extensions that create a rich vocabulary of commands to drive powerful navigation and editing features. To start with though, all you need to know is:
4 a7 `5 L0 p6 @1 i/ W7 R8 U  P2 _' N% A
一些简单的手势操作就能够完成导航功能。这些手势操作还有一些可选的扩展功能。这样就能够用一套丰富的指令进行导航和编辑。一开始,用户需要掌握下一基本操作:; S. D1 v& Z: w) Z! T9 Y0 R
/ p) n8 e, Z, ?, }% m! S" t
• tap (act on the indicated object). Commonly in a view that contains clusters or lists of items, tapping reveals information contained in an item. This can be thought of as an open function, which changes the nature or context of the view to be about the selected item exclusively. Alternately, a tap will change an object's state such as setting a checkbox or selecting an object. % s0 j- y, c4 j+ c0 s

1 O/ L( X0 R$ x( ?1 m. r4 G, M9 o$ J; B8 RTap(对图标对象起作用):在包含了一系列图标的界面中使用这个动作,tap可以被用来启动应用程序。另外tap还能够改变当前应用程序的视图,还能够用于选择一个对象或是选中checkbox
0 v/ Z8 i" l3 R( g5 _( T# n) m·     back (the inverse of open). This feature looks like the opposite of a tap: the item compresses down to its summary in the containing context where it belongs. Typ-ically, it reverses a view transition, as going from a child view to a parent view. & K9 s* h9 y/ t

) f0 I+ ^+ ~  T. E& Y   Back(open的逆操作):实际上是tap的逆操作,被启动的程序会回到任务栏中(这里summary我暂时理解为类似于windows的任务栏),并且整个显示退回到程序启动前的界面。1 I* n7 k6 K% }: w8 w( U3 w

- F3 o+ f8 i2 L! G/ f- {       ·     scroll (flick and quick drags are used to scroll through lists and other views. ( U( J: o) A" f+ S7 |

: N, ^0 W* I: o; L, e0 t0 ?+ _     Scroll:滚动,用于在不同的列表和视图中进行切换。
$ G& r" M4 y1 \9 B1 n7 N) [! t5 i' \" {5 ~
Beyond this, you can learn to pan, zoom, drag & drop, switch applications, switch views, search, filter lists and launch applications. But to begin with, only these three gestures are needed to use a webOS device. 6 [# n2 G& u. v
会了以上这些手势,用户就能进一步掌握pan(移动以获得全景)、缩放、拖放、切换程序、切换视图、搜索、过滤列表以及启动应用程序。但是一开始,只需要掌握这三个动作就能够使用WebOS设备。( _! s0 w) t$ l) f* i8 u% Y
( Q  L" P5 g9 ?) W
Launcher 启动器5 V7 O1 a  o* p1 d
* N8 Z! i# z, J: \# W8 W" g2 H
When you turn on a webOS device, the screen displays the selected wallpaper image with the status bar across the top of the screen and, hovering near the bottom, the Quick Launch bar. The Quick Launch bar is used to start up favorite applications or to bring up the Launcher for access to all applications on the device. From this view, a search can be initiated simply by typing the search string; searches can be performed on contacts, installed applications, or to start a web search. Figure 2 shows both the Quick Launch bar and the Launcher.
8 \6 u5 K* _1 w, x$ A" c6 J+ ^' r! |! H2 H, A. e8 B
当用户打开一个WebOS设备时,屏幕上会显示壁纸,屏幕顶部会显示状态栏,同时在屏幕底部漂浮着一个Quick Launch bar。Quick Launch bar用来启动最常用的应用程序,也能够切换出胖子们都很熟悉的Launcher界面以便于看到设备上所有的应用程序。在Launcher界面里,单击“搜索string”(抱歉,没看到真机,不知道这个search string是什么东西)就能够在联系人以及其他应用程序里进行搜索,还能够用这种方式进行web搜索。图2所示即为Quick Launch bar 和 Launcher。' C7 ^4 g5 ^4 v- J; E/ a) Z. m" b' N

6 O! ], \* L0 I' [0 Q: PThe launched application takes over the available screen becoming the foreground ap-plication; the application's view replaces the wallpaper image and the Quick Launch bar is dismissed. The status bar remains and is always visible except for full screen mode, which is available to applications such as the video player, or others that request it. This sequence is fluid and smooth, as you will see with all webOS transitions.
# v8 ~! I$ L" _
+ N5 v4 a2 f/ h# o+ R5 v被启动的应用程序接着就会被显示在主要区域;当前应用程序界面替换了壁纸。并且Quick Launch bar也不再显示。除了某些应用程序的全屏显示(比如视频播放器),状态栏一直都位于屏幕顶端。整个过程非常流畅平滑,所有的webOS界面切换都是这样的。
+ ]! l  U) i3 O8 ?- V& ?6 Y. s% @  J( y+ b/ n
Card View 卡片式界面1 G; @* f! V& Z; o0 g5 u

/ j- w) s# W! u1 ?  xFigure 3 shows an application's main view, in this case the email application's folder view. The application view includes UI elements that make up the basic email appli-cation, in this case the inbox view displays specific folders, which when selected will open a new card with a detail view of the messages contained within the selected folder. At the bottom, the floating icons that you see are menu items. A tap to the menu icons will typically reveal another view associated with the menu action, a sub-menu or a dialog.
) o: ?+ y$ q/ f" Y3 ]1 E& A: g3 [
. f0 \$ w, D1 e图3显示了邮件程序的主界面。在这个界面里,一些UI组件构成了这个基本的电子邮件程序。其中,收件箱界面显示特定的文件夹,选定这个文件夹时,就会切换到一个新界面,这个界面显示的是当前文件夹里邮件的一些详细内容。这时,在底部漂浮的图标就是菜单按钮。点击这种漂浮图标将会打开菜单、显示子菜单或者打开对话框。
# E. k$ W0 |; \But running one application at a time, or performing one activity at a time, can be terribly restrictive, and inefficient. Palm webOS was designed to make it easy to work on more than one thing at a time. Simply pressing the Center button brings up a new view, the Card view , an example of which is shown in Figure 4. From the Card view, you can switch to another activity simply by scrolling to and tapping the card repre-senting the activity. Alternately, you can launch another application from the Quick Launch bar. 1 {/ R: J& _: @6 Y/ r" Z! j

% w9 _. G2 P+ H4 `$ A2 p! P但是,一次运行一个程序,或者执行一个任务,显然无法发挥WebOS的能力。WebOS设计的初衷就是能够同时运行多个程序,并在这些程序间切换,协调这些程序之间的合作。只需要按一下Center button(中键?)整个界面就会变成卡片式界面,如图四所示。在卡片式界面里,用户可以使用tapping和scrolling手势轻松地切换应用程序和显示界面。或者,也可以直接从Quick Launch bar里启动新的应用程序。
' p2 U+ q: f4 [: d) e
) @7 D* n  |. K' ^  x  oThe Card view was inspired by the way one handles a deck of cards. Cards can be fanned out to see what card is where. Within a deck of cards, any single card can be selected or removed with a simple gesture, or moved to a new location by slipping it between adjacent cards. The webOS Card view can be manipulated in similar ways by scrolling through the cards, selecting and flicking cards off the top to remove them or selecting and dragging a card to a new location. 7 }+ c$ h% p5 I8 j
/ n( V3 ^- n7 l
我们从平时玩纸牌的动作中获得灵感,由此开发了卡片式界面。用户可以摊开卡片,以便于看到哪张卡片在哪里。现实生活中,一副卡片里,用户可以通过简单的动作对卡片进行选择或者移动,也可以把一张卡片放在两个相邻卡片之间。WebOS的卡片界面操作方式与此类似,用户可以在卡片间scrolling、选择并且单击卡片以便于移开、或者选择并且拖拽卡片到一个新的位置。
6 N( b; {3 v% u& H
( z$ h2 h1 Y. FWe've introduced the term activity, which needs further explanation. Often by design, you will work on one activity at a time with many applications, but with some appli-cations it is more natural to work on several activities in parallel. A common email activity is writing a new email, but in the middle of writing that email, you may want to return to the inbox to look up some information in another email or perhaps read an urgent mail that has just arrived.
7 F% N+ B0 Q& \' j* d( q, n8 r/ \+ }5 S$ s7 B
尽管前面已经提到activity这个概念,这里仍然有必要对这个概念做进一步的解释。通常,用户能够同时运行很多程序,但是每次只能够执行一个activity,但是在某些情况下,同时进行多个activity更加自然合理。举个例子,一个常见的邮件activity就是写一封新的电子邮件,但是在写这封邮件的时候,用户也许需要返回到收件箱查看其它邮件里的信息,或者正写着当前邮件,又来了一封紧急邮件。" p2 l* e9 Z2 r; z* O

- K9 _6 _. y" w5 M" d2 UWith a webOS device, the draft email has its own card separate from the email inbox card. In fact, you can have as many draft emails, each in their own card, as you need; each is considered a separate activity and independently accessible. Switching between emails is as simple as switching between applications and your data is safe, as it is always saved. Figure 5 shows the Card view with the Email application's inbox card and a draft email compose card. / ?) q4 L, _& p( u* i1 P
# r& E, g: f; x9 q  l
在webOS设备上,邮件程序有独立的草稿卡片。事实上,只要用户需要,就可以同时撰写多个邮件草稿,每个邮件草稿都对应一个卡片。每个卡片都被看作是分别的独立的activity,并且能够分别查看并编辑不同的卡片。在不同的邮件间进行切换与在不同的应用程序间进行切换一样简单。用户不用担心自己的数据会丢失(到底还是有一些palm的精髓----不需要“保存”,就像我以前写过的,“palm就像是一堆用不完的白纸”)。图5显示的就是电子邮件程序的卡片界面。, c* C9 D7 }1 v" i3 y, J- T! N4 L8 T
7 @) g) I" h; f1 S' o. t. H
***************************
! |; @3 D: O8 `, h8 s5 Q' `/ C7 B$ Z& p) L. D/ {, W. {
今天先到这里,明天继续更新。谢谢关注。
7 g, f2 u* T2 V1 w0 g" t5 t4 o" E# g6 K3 ^5 k: C
[ 本帖最后由 CyberVsQ 于 2009-4-2 01:41 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入我们

×

评分

参与人数 7威望 +169 收起 理由
sky981 + 20 谢谢分享
CyberVsQ + 20 谢谢分享
hinull + 49
KING + 20 谢谢分享
ursace + 30 期待继续更新
zhouxi6868 + 10 谢谢分享
2b6c3d729918489 + 20 谢谢分享..

查看全部评分

回复

使用道具 举报

发表于 2009-2-18 18:41 | 显示全部楼层
欢迎常来.这个东东我们发得比Hi-PDA上要早一些..如果没记错的话,我们抢先了半天比其他的网站先发出的..3 v/ H5 [& M: T- N
! w; o! e3 O3 C, F3 V
不过没关系啦..9 w, Z: S* ]" A. D
大家都是一家.
* V" Z$ _( D- b" o8 F  L  K9 m
$ n$ u" S& b0 e  W. P5 t尤其跟Hi-PDA.更是不分你我了...这里有很多资料都是从那边整理来的呢
回复 支持 反对

使用道具 举报

发表于 2009-2-18 20:37 | 显示全部楼层
不错,顶一下
回复 支持 反对

使用道具 举报

发表于 2009-2-19 11:17 | 显示全部楼层
哈哈,一进来就有好东西看
回复 支持 反对

使用道具 举报

发表于 2009-2-19 12:32 | 显示全部楼层
楼猪辛苦佬!:)1
回复 支持 反对

使用道具 举报

发表于 2009-2-19 12:34 | 显示全部楼层
学习了.
回复 支持 反对

使用道具 举报

发表于 2009-2-19 16:36 | 显示全部楼层
看到楼主来吹友很高兴哇,昨天还想着要不要把这帖子转来吹友呢
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-19 17:40 | 显示全部楼层
Notifications and the Dashboard 事件通知和dashboard
; P  @4 b) ^) d; [% l+ P+ a8 ?& b' @0 w
What happens to the current foreground application when you switch to a new appli-cation? The previous application is not closed but continues to run as a background application. Background applications can get events, read and write data, access services, repaint themselves and are generally not restricted other than to run at a lower priority than the foreground application. ; |1 y. R2 g7 {0 F! j4 x
0 c% Q- o1 }5 ^: m: j
如果用户切换到一个新的程序,在屏幕的主界面上会发生什么?新程序之前的那个程序并没有被关闭,只是转为后台运行。转为后台运行的程序照样可以获得系统事件、读写数据、访问系统服务、改变自己的界面,只不过比当前显示在主界面的程序而言,运行优先级低了一点。
5 h- m( O6 p# B6 V) e
  K. b* o# e* [To enable background applications to communicate with the user, Palm provides a notification system with two types of notifications: . N# [# r1 \1 D0 C$ a  g& A% q8 j

& I- s% S7 ?, g9 m( X. |( d, YPalm提供了一个通知系统来帮助用户和后台程序进行沟通,这个通知系统有两种类型的通知:: T! I+ a6 M2 Y% q
& y+ f% ^4 {; m$ V+ |$ N& U" \# l
·     Popup. Non-modal dialogs which are of fixed height and include at least one button to dismiss the dialog # V; B" H; k0 J0 a# S5 N  W
·     气泡式通知:一个固定高度的非模式化对话框,包括至少一个关闭按钮。(此概念与模式化对话框modal dialogs相对,指在不关闭当前对话框的情况下仍然可以进行其他任务,而模式化对话框则需要先行关闭当前对话框才能够进行其他的任务。)
$ f9 Y6 _/ p; s0 x* k+ S·     Banner. Non-modal icon and single non-styled string of text 5 R2 }( Z& P( w3 r) Y, ^
·     横幅式通知:非模式化的图标,外加一行无风格的文本信息(这里non-styled应该是指对字体没有经过色彩或者其他形式的渲染)
. l, b( I# d# n  K" xPopup notifications are disruptive, appropriate for incoming phone calls, calendar alarms, navigation notifications and other time sensitive or urgent notifications. Users are forced to take action with pop-ups or explicitly clear them but since they are not modal, users are not required to respond immediately. 0 b8 j' F5 T- {: Y" _
. Z2 r7 U7 S" J
气泡式通知具有抢占性。用于来电、日程提醒、导航通知以及其他对时间敏感的或者紧急的通知事件。当出现气泡式通知时,用户必须对气泡式通知采取相关动作,或者直接清除它们。但是,因为气泡式通知是非模式化的通知,所以用户不一定要立即对他们做出回应。1 p" m$ }7 ~2 t2 ?) a
6 y. a! r( Y+ }/ x& S4 B
Banner notifications are displayed in a slow crawl along the bottom of the screen within the Notification bar, which sits just below the application window in what is called negative space since it is outside of the card's window. After being displayed, banner notifications can selectively leave a summary icon in the Notification bar as a reminder to the user. Figure 6 shows an example of a banner notification and the summary icons are shown in Figure 7 indicating that the music player is active and that there is an upcoming calendar event and new messages.
0 M  f6 w' a& }; G0 P
3 I8 t0 f6 N2 `2 A: W- M横幅式通知显示在屏幕底部的Notification bar,并且会缓慢的横向移动(有点像led电子横幅)。Notification bar位置就在应用程序窗口正下方,因为这个位置在卡片窗口之外,所以被称作negative space(导航空间?)。在显示了横幅式通知之后,用户可以选择是否在Notification bar里保留这个横幅式通知的summary icon(概要图标?),以便于随后提醒用户还有未处理的通知。图6显示了一个横幅式通知,图7显示的summary icon(概要图标?)告诉用户后台还运行着一个音乐播放器、有一个即将出现的日程提醒、并且还有一条新短信。
% [# Q+ W& Q) g) z) X
3 S9 W; j1 q5 n0 u# m. P" P# w6 d# ^3 ]* }3 g1 w
At any time, the user can tap the Notification bar, which brings up the dashboard, shown in Figure 8. Notifications that are not cleared will display their current status within a dashboard panel. . H, L; Q  N* \3 ?7 V0 G
5 y6 P6 r% p1 u; d7 ^& m
用户可以在任意时间点击Notification bar,随后就会出现dashboard,dashboard里面显示着所有通知事件的详细内容,如图8所示。没有被清空的通知事件将会在dashboard面板里显示他们的当前状态。
- F* ^5 p& v3 f5 z/ ?9 ^* q; h- t, i0 |7 l
Dashboard panels though are more than just summaries of notifications but are dy-namic views enabling any background application to display ambient information or status. For example, the calendar application always displays the next event on the calendar even before the event notification has been issued. In Figure 8, the Music application shows the current song along with playback controls that you can manipulate to pause the music or change the selection.
0 e9 i- E! l1 d. h9 D" {) ?" z6 W; B/ A: o  K9 L! ^
Dashboard面板不仅仅显示了通知事件的概要,而且还能够动态地显示每个后台程序的当前状态和动态信息。比如,在dashboard里,尽管还没有到指定提醒时间,日历程序仍然会显示下一个日历事件。在图8里,dashboard里的音乐播放器程序就显示了当前正在播放的歌曲名称、专辑名以及一个控制面板,用户可以使用这个控制面板直接控制乐曲的播放或者更换乐曲,完全不需要切换到音乐播放器程序本身。- H) t# H- p( Z- W3 n

  T2 ^3 P4 T0 |  X0 D0 uThe Notification Bar and Dashboard manage interruptions and events, keeping you abreast of changes in information without disrupting your current activities. It may help to think of them as an event-driven model for viewing and managing your world, while the Card view provides you with task-oriented navigation tools. The combination gives you a few powerful tools from which you can quickly track and access what you need when you need it. : U( [5 Z$ L# K* g7 k3 z* ?

6 o& K7 w: M' g0 P7 X. i6 ^' S# S" ONotification Bar and Dashboard能够很好地管理系统事件和各种中断,使得用户可以及时掌握信息的变化,却不用停下手头正在干的活儿。如果不好理解,那么可以把这个通知系统看成是一个由事件驱动的系统,而相应的,卡片界面则可以被看作是一个由任务驱动的系统。这两者结合在一起,可以极大的提高用户的工作效率,可以随时获取用户所需要的信息,而又不用停止当前任务。
9 e7 X3 E8 [" I( N; w- G
) u  e8 a2 ~$ f% EHeadless applications are those that can be completely served through the dashboard, as their entire purpose is to monitor and present information. For example, a weather application could display the current weather for a targeted location in a dashboard without having a card view at all.
# l* f9 c6 @9 P8 S! [3 U! a" }; g$ y8 Y, o) X) p- Y
Headless applications指的是那些不需要主界面显示,只需要dashboard就能够完全控制的应用程序。因为这种程序的唯一目的就是监控并且显示信息。比如,一个天气预报程序的功能也不过是现实某个指定地点的天气情况,完全不需要占用卡片界面,显示在dashboard就足够了。
# C4 ~. k) w8 O$ ^
( \# g& ], _; C- D
5 }. {# a" d! P- S( @2 A& j- `( U/ [9 I
You will tend to use the Card view to switch between tasks, launch applications and otherwise perform activities. Dashboard is used to monitor your world, to see what's changed or what events have taken place, which will often drive new activities.
- I( q' W! u# F5 c+ ]8 Z
+ s; V1 e6 h! p- p+ |/ k* W' b  O用户会习惯于使用卡片界面来切换程序、启动程序或者用来执行某些任务。Dashboard则能够像个贴心助手那样帮助用户监控信息变化,看看什么即将发生,或者已经发生了什么,然后再由用户决定是否需要开展新的任务。3 n1 ?' a) r# j9 w+ q3 i

# W# m+ E) x5 D* u  k$ A4 D**********************
3 v; B4 e! X( h* d4 ?; E3 b8 X* ~' m4 R: r- c7 f  e1 }

: X' m; {. F3 FUser Interface Principles 用户界面的一些原则, s- l, m+ a& M( E6 @1 B% o

6 X9 T3 D( _: F8 y8 d  m8 Z; |) m, BThere are some foundational principles or values that support the overall webOS user experience; application designers can exploit these same principles to more deeply in-tegrate the application into the overall device experience and enhance the user's expe-rience. Developers can rely on the framework to provide most of what is required at an implementation level, but the application design should anticipate these needs. 6 B4 U) V% x. ^# t: m7 h

8 V# F3 @1 i; n5 d  f; ?WebOS的用户界面开发需要遵循一些基本的原则。开发人员按照这些原则进行开发将能够吧应用程序的体验和对设备整体的体验全面地结合在一起,使用户察觉不到程序间的差异,以及程序和整个系统之间的差异(PalmOS就遵循这样的原则,每个程序看起来风格都很统一)应用程序的开发可以依赖SDK实现所需功能,但是设计程序的时候一定要考虑到这些基本原则。  G" Y3 P# g6 _

9 L0 g! f" c% ]* k; lHere are the key principles to keep in mind while designing your application:
/ v) a4 @8 u3 B3 F0 }
( E- b9 |3 h' T) a7 J& \下列就是在程序设计阶段,开发人员需要牢记在心的东西:0 w- M, r( e0 a: s4 k
·     Physical metaphors are reinforced through direct interaction with application ob-jects and features, instant response to actions, followed by smooth display and object transitions with physics-based scrolling and other movement. For example, objects are deleted by flicking off screen and editing is in place without auxiliary dialogs or scenes.
- b1 Z; X- ?% t4 X) W: g·     要尽量真实,模仿现实情况,秉承palm的一贯特色。通过直接和应用程序对象互动能够增强真实性。程序对动作的反应要足够快,要能够流畅显示操作对象的变化,这些只需要用户做出最自然的动作即可。比如,在屏幕上轻轻拨动就能够删除一些东西,或者不需要繁琐的对话框就能够直接编辑文本。3 {6 K' Z1 [! m9 d3 n! g, I
·     Maintain a sense of place with repeatable actions, reversible actions, stable object placement and visual transitions taking the user from one place to the next. * c6 f- s" v; o. M
·     要有场景的概念(sense of place),可重复、可逆的操作、程序对象在屏幕上相对固定的位置,以及视觉上的变化都应该能够把用户从一个场景带到另一个场景里。
3 f! ~% [* b6 v* R* p: e5 R·     Always display up-to-date data, which requires both pushing and pulling the latest data onto the device so that the user is never looking at stale data when more recent data is available. But this also means managing on-device caches so that when the device is out of coverage or otherwise off-line, the user has access to the last data received.
( _, ~5 p! T1 r; j# ^3 A/ e要保证所显示的数据是最新的。这就要求应用程序获取最新的数据,并且及时显示在设备上。这样,用户就能够及时掌握信息变化。但是,这也意味着应用程序要和设备的cache打交道。因为,当设备不在信号区或者离线,用户应当能够获取设备在离线之前收到的最新信息。) w$ b7 }. p9 X8 J( Y
·     Palm webOS is fast and simple to use; all features should be designed for instant response, easy for novices to learn while efficient for experienced users. 6 Q9 z1 }* U3 T8 S3 @2 J
·     Palm WebOS用起来应该很快,但是却很简单。所有的动作都要立即响应。对新手应该是很容易上手的,而对老鸟,则应该是非常高效的。(到底还是有palm的血统)4 \% b& C+ X) Q- u5 S# A9 O2 E' L
·     Minimize the steps for all common functions; put frequently executed commands on the screen, the next most frequent under the menus. Avoid preferences and settings where possible and where not, keep them minimal. # n4 X$ D$ W# o9 e
·     省去一切不该有的步骤!把最常用的命令直接显示在屏幕上,次之的放在菜单里。尽可能的避免诸如“特性”“设置”之类的菜单,就算需要这一类东西,也要尽量简洁明了。
3 Y5 U  g! n0 c% }( ?: C1 j- |·     Don't block the user; don't use a modal control when the same function can be carried out non-modally. 5 }' T: G& n3 N. C$ q6 p
·     不要妨碍用户!在不需要模式化的地方,就不要用模式化!(比如尽量不要“打开”、“保存”之类的对话框或按钮,还是那句话,palm在手里,就好象一堆用不完的白纸!)# ^% x4 W8 P5 T: t
·     Be consistent; help the user learn new tasks and features by leveraging what they have already learned.
- J0 K8 A4 ~3 i2 l; K7 V) D·     要保持一致。要利用用户已经掌握的的东西来帮助用户学会新的任务,掌握新的程序特点。 / T3 J( A4 t' A1 s/ J1 g) W
Palm applications have always been built around a direct interaction model, where the user touches the screen to select, navigate, and edit. Palm webOS applications have a significantly expanded vocabulary for interaction, but they start at the same place. Your application design should be strongly centered on direct interaction, with clear and distinguishable targets. The platform will provide physical metaphors through display and navigation, but applications need to extend the metaphor with instantaneous re-sponse to user actions, to smoothly transitioning display changes, and object transi-tions.
5 o" }2 W1 `+ k! \+ n: f& W: n5 W# Y, ]
Palm应用程序一直以来都采用直接互动模式。在这种模式下,用户只需要在屏幕上触摸就能够进行选择、导航、编辑等动作。Palm webOS应用程序比起Palm应用程序而言,支持更多的互动方式。但是Palm webOS应用程序的基本操作都一样。开发人员设计程序时,一定要围绕着“直接互动”这一模式,要让用户觉得直观明了。Palm webOS通过自己的导航和显示功能,真实地模拟了实际情况。但是,应用程序则需要在这个基础上进一步提高对用户动作的响应速度,进一步模拟真实情况(要把Palm当成手头上一堆用不完的白纸!不需要打开,不需要保存,更不需要看见某种恶心的沙漏式的东西!)。
2 E, s  r% z, T2 @) J
" L% C( w- [* x) n8 a7 `9 GYou can find a lot more on the user interface guidelines and design information in the Palm webOS SDK under the Design Guide. We'll touch on the principles and reference standard style guidelines in the next few chapters, but will not be covering this topic in depth. % ?' N7 f; B/ J4 x2 k! ~4 n
在Palm WebOS SDK的Design Guide(设计指南)里,开发人员能够找到更多的有关于程序设计和用户界面的信息。在随后的章节里,我们将会进一步介绍这些原则,还会介绍一些标准设计的指导方针,但是,不会谈的太深。

评分

参与人数 1威望 +49 收起 理由
hinull + 49 好人

查看全部评分

回复 支持 反对

使用道具 举报

发表于 2009-2-21 09:10 | 显示全部楼层
此系统很值得期待....应该很不错
回复 支持 反对

使用道具 举报

发表于 2009-2-21 12:32 | 显示全部楼层
我们关心680能不能安装palm webos
回复 支持 反对

使用道具 举报

发表于 2009-2-21 13:14 | 显示全部楼层
lz很勤奋,比那个超版卒厉害多了
回复 支持 反对

使用道具 举报

发表于 2009-2-28 14:54 | 显示全部楼层
谢谢楼主,学习了
回复 支持 反对

使用道具 举报

发表于 2009-3-1 08:34 | 显示全部楼层
期待WCDMA版本的尽快上市啊!:)1
回复 支持 反对

使用道具 举报

发表于 2009-3-3 00:03 | 显示全部楼层
好东西。 收藏了
回复 支持 反对

使用道具 举报

发表于 2009-3-6 17:10 | 显示全部楼层
默默地等待。
回复 支持 反对

使用道具 举报

发表于 2009-3-10 16:25 | 显示全部楼层
翘首以待,望眼欲穿,望断秋水,心急火燎。。。
% ]4 V: Q7 Y: k& |5 H" ~% R好像已经到了盼”梨(Pre)三境界了:‘昨夜西风凋碧树。独上高楼,望尽天涯路’;‘衣带渐宽终不悔,为“梨”消得人憔悴。’;‘众里寻“梨”千百度,蓦然回首,那“梨”却在,灯火阑珊处’。, W& b  {  r  q) R$ P4 k
. ^: _- k1 }  |
顺顶楼主辛苦!!!
回复 支持 反对

使用道具 举报

发表于 2009-3-11 21:20 | 显示全部楼层
看介绍,好像我的750都可以进入webos的,不知道是不是真的
回复 支持 反对

使用道具 举报

发表于 2009-3-14 00:15 | 显示全部楼层
不错 学习了 更加期待
回复 支持 反对

使用道具 举报

发表于 2009-3-18 13:40 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2009-4-6 21:04 | 显示全部楼层
顶LZ,如果我有空就去学学怎么开发!
回复 支持 反对

使用道具 举报

发表于 2009-4-13 03:30 | 显示全部楼层
本章完整的翻译在置顶贴,大家移步那边
回复 支持 反对

使用道具 举报

发表于 2009-4-19 18:43 | 显示全部楼层
好东西。
回复 支持 反对

使用道具 举报

发表于 2009-4-21 23:02 | 显示全部楼层
PRE现在多少钱啊。》》》》》??
回复 支持 反对

使用道具 举报

发表于 2009-6-7 00:06 | 显示全部楼层
不错!!!!!!!!!!!!!
回复 支持 反对

使用道具 举报

发表于 2009-6-8 11:24 | 显示全部楼层
关注中。。。
回复 支持 反对

使用道具 举报

发表于 2009-6-8 23:30 | 显示全部楼层
好东西阿,新一代OS开发者指南总揽,多谢。
回复 支持 反对

使用道具 举报

发表于 2009-6-9 00:30 | 显示全部楼层
发哪里都是为胖友着想,我们是无所谓了。
回复 支持 反对

使用道具 举报

发表于 2009-7-10 12:38 | 显示全部楼层
nice job......
回复 支持 反对

使用道具 举报

发表于 2009-8-9 15:29 | 显示全部楼层
“吹友吧内部学习使用”挡住了真不爽。。
回复 支持 反对

使用道具 举报

发表于 2009-8-11 21:21 | 显示全部楼层
LZ辛苦了!
回复 支持 反对

使用道具 举报

发表于 2009-8-12 00:09 | 显示全部楼层
楼主辛苦了,我们有福了
回复 支持 反对

使用道具 举报

发表于 2010-4-25 13:19 | 显示全部楼层
楼主辛苦了,只要有你这样的palmer存在,palm会生存下去的。
回复 支持 反对

使用道具 举报

发表于 2010-7-17 23:20 | 显示全部楼层
原汁原味
回复 支持 反对

使用道具 举报

发表于 2010-7-18 12:27 | 显示全部楼层
考虑学习学习,从头
回复 支持 反对

使用道具 举报

发表于 2010-7-19 12:34 | 显示全部楼层
webos是不是基于webkit的?还有就是可否运行gtk或者qt的东西?
回复 支持 反对

使用道具 举报

发表于 2010-8-7 16:05 | 显示全部楼层
此贴一定要顶啊,对新手帮助很多
回复 支持 反对

使用道具 举报

发表于 2010-9-2 21:03 | 显示全部楼层
礼貌回帖`刷积分买机
回复 支持 反对

使用道具 举报

发表于 2010-11-16 14:30 | 显示全部楼层
这可比操作手册好看多了
回复 支持 反对

使用道具 举报

发表于 2010-11-21 12:08 | 显示全部楼层
做个记号 我要学学 待我学会也可以有事不求人了 哈哈哈
回复 支持 反对

使用道具 举报

发表于 2011-6-11 20:28 | 显示全部楼层
想学 !!!!!!!!!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|Archiver|手机版|小黑屋|吹友吧 ( 京ICP备05078561号 )

GMT+8, 2024-11-5 16:08 , Processed in 0.449327 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表