找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 13369|回复: 40

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

[复制链接]
发表于 2009-2-18 18:22 | 显示全部楼层 |阅读模式
首发于Hi-Pda,不是不重视这里,主要是因为crazygorilla发的pdf是在hipda上看到的。(实际上我的homepage就是这里)! l  i3 X6 B" A8 M, G
* `# p7 @, o+ V( g  N$ t
感谢crazygorilla 发出PDF文档!
. g& S+ k$ d  Q' e# g. j$ e
0 ~. K' l' T/ X5 c感谢14楼CasBoy 提出的那个不该有的错误!1 {7 @9 Z5 ^& Z  M8 S
: w* E( X! r5 s; G
链接:
" i1 |( S5 B, z: z! X6 @% C% P0 g  v+ `2 a, }% L
http://www.hi-pda.com/forum/view ... 26amp%3Btypeid%3D64
! S; H+ K- C- T* p
3 w. v4 A. J/ _  VOverview of webOS
/ I% W) l2 ~9 X# k; r
0 n' E# Y  g3 E总论
. R$ z! P* E& B4 S( a4 r7 ]5 I! g& u9 z1 D$ u( t- @4 |

: }) Q8 Y6 \6 b1 K- O9 ]Palm® 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.
: c1 t8 Q" i- _, y! ~- J" c7 o# A
8 C8 c# {# j6 s, ?2 _5 FPalm® webOS™是Palm公司新一代的操作系统。WebOS将窗口操作系统的强大功能和浏览器应用的简便性融合在一起,提供了非常快速并且华丽的用户界面,而且还为多任务操作进行了优化。可以使用任何标准的web技术和语言撰写WebOS的应用程序,同时这并不会影响到WebOS应用程序对设备底层服务和本地数据的访问。& c* b( q/ l" x8 A9 M0 s
+ B# b; `7 X$ e
Palm 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.
) K6 f$ R5 T1 U' B, I$ w2 e
; W) P! m# B+ WPalm webOS能够运行在许多设备上,这些设备在屏幕尺寸、分辨率以及用途上各不相同。Palm webOS支持键盘操作,尽管如此,在配备触摸屏的设备上表现更好。因为Palm webOS的用户界面和应用程序都是基于浏览器应用的,所以,只要硬件设备包含一个cpu、一些内存、支持无线数据连接、有显示设备、并且能够进行文本输入和用户界面操作,那么这个设备就能够使用Palm webOS。
* W8 Q  T- y7 V3 r+ ~% w: N$ T* l  d7 f6 |) ?- m$ M  R9 N
You 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. 8 d. k9 F; C6 u5 C

9 a& F8 S, [0 K% V( y/ I尽管Palm webOS应用程序开发基于标准的HTML, CSS and JavaScript(这些语言都是开发web应用程序必备的---注:web应用程序是web应用程序,WebOS应用程序是WebOS应用程序,不是一码事儿),我们仍然可以认为WebOS应用程序就是本地程序。Palm已经通过一套完成的JavaScript frame-work对标准的web开发环境进行了扩展。这套JavaScript frame-work提供了标准化的用户界面组件,并且支持对设备硬件和服务的访问。5 T! g2 @8 M9 R+ |9 l3 a4 O2 W
  d: }( d- i2 x% ]# Y- q/ S
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.
$ j4 n! q/ a+ \+ Q) ~5 v
0 L. W# q1 Z9 R2 c4 {用户可以在WebOS上同时启动并且管理多个应用程序,Palm为此对WebOS进行了专门优化。WebOS的设计初衷就是为了更好地支持多任务,因此WebOS能够很容易地运行后台程序、能够在多个程序间一部切换,而且还能够非常轻松地在不丢失当前输入的情况下处理各种中断和系统事件。
3 h; s% z  G7 J) B" H) v5 S+ V3 ^4 ]0 t/ x4 f6 r3 F! k, o
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.
  x6 t2 q' \4 J0 Q, I8 y! P" N3 v9 l1 E- n: T
开发人员可以很容易地用常见的web开发工具进行开发,开发方式和开发Ajax应用程序一样。不同的是,WebOS应用程序直接安装并且运行在设备上,这一点和以前的palm应用程序没有任何区别。
. H9 n9 r% S  R4 K5 v5 d2 @& [. n6 [/ l/ H: K6 C' @7 [
7 ?! N. n2 T3 J
Application Model 9 f1 t4 C+ G9 @8 ^; g. C# Q; @

  v8 R& W; J- K& \# WAs 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. * k; \  i# N3 H' }0 s- c

3 \+ A) W1 i! ]  ^7 R, H+ V. v如图一所示,最初的PalmOS应用程序和其他流行的移动操作系统一样都是本地程序。在这种情况下,程序的数据、逻辑以及用户界面都被整合在一个可执行应用程序中,然后安装在本地操作系统上,这样能就能够直接访问操作系统服务和数据。3 K! }0 {: ~. p0 n4 s  l8 s

3 [; x& m. X7 WClassic 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.
& W8 S# H+ Z; [6 d. d
$ r4 e% @3 ^& Z6 R4 {: R典型的web应用程序使用以HTML为基础的语言进行开发。在每一个用户动作之后,都会向一个web服务器提交HTTP请求,然后等待回应。收到回应之后,以HTML页面的形式对返回结果进行显示。最近几年更常见的是Ajax应用程序。Ajax应用程序能够直接处理用户动作,并且能够以异步的方式向web服务器发出请求。因此,Ajax就能够提供更丰富更快速的用户体验。地图程序就是个好例子。地图程序在持全景以及缩放功能的同时,也能够异步地从web服务器获取所需的数据。8 Z- W1 H, s' c( |) U+ T

2 g; {* X" t( V$ ]Ajax 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.
+ K' o( i: t9 C  b2 y! `% U0 V  h8 n9 P
2 w8 j9 [  A" u5 h2 {Ajax应用程序相比于嵌入式程序有很大的优势。普通网页使用搜索访问技术,用同样的技术就能够很轻松地部署、升级Ajax应用程序。同样,开发web应用程序也极其简单:开发语言和开发工具很简单,这就大大提高了开发设计人员的效率,尤其是开发需要数据连接的程序时。因此,实时数据应用程序(Connected applications,不知道翻译的是否准确)以及支持动态数据和web服务的应用程序就成了主流。
. ~- s4 w0 ^' c
1 n& O$ r+ R0 F. k8 a9 W: ]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.
6 z3 {" l2 B5 n2 p; m) P6 ]# C* U% m# j# H: q
然而,WebOS应用程序,却进一步把web应用程序开发维护的简便性和本地应用程序的整体性结合在一起。极大地改善了移动用户体验,同时又保留了简便易行的开发方式。
( J& i, w0 {3 L) y5 B  v# g! r4 {( ^& h* `

1 K3 X' S% \0 Y* h! H: j" n' A**********************************
& n# X9 [$ R1 X' c2 O% I$ }8 L" |! d, h
0 }6 |- I( l3 F5 F; aApplication Framework and OS 应用程序构架和OS
) w3 x$ Y/ t1 T* ]
8 E7 R& h6 N9 g+ Y+ x0 DThrough 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. 6 m- Q  C& U/ n9 n4 B# T

% Z! M# W0 `0 q- ?1 {4 hPalm的应用程序构架在用户界面组件里集成了复杂编辑、导航以及一些显示特性,这样就能够开发出更为复杂的用户界面。这套应用程序构架还包括了事件处理、通知服务、以及多任务支持。应用程序在后台运行的同时能够管理数据、事件以及相关服务,用户需要的时候可以轻易切换到显示界面。6 A) q: \. J4 H, Q' v
' p0 h, C6 Q6 A% X; M
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.
1 K0 k: ]% u# q" W' T6 o3 B7 g4 m  y. L
用户可以使用HTML5的存储函数对需要保存的数据进行管理,用户还能够访问WebOS核心应用程序的数据,比如联系人和日程的数据。用户也能够访问一些基本的系统服务,比如位置服务(应该和gps或者基站定位有关系)和重力感应器数据(这个应该是说WebOS支持重力感应应用,例如IPhone上的《古惑狼赛车》),这些系统服务都是常驻系统的,内嵌于设备的。除此之外,还支持一些晕服务,比如XMPP消息服务。. n2 y% D& z* T5 _
3 J8 z7 v5 [; G
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. 5 S0 L6 W# ]! s" F7 ]0 j: E6 C

( q5 J" ]+ |- |& g- y+ p从整个构架上来说,Palm WebOS是一种嵌入式linux系统。在这个系统上,可以通过标准的浏览器技术构建可定制的用户界面管理器。这套用户界面管理器提供了一整套系统用户界面的特性,包括:导航、应用程序启动和终止、事件管理和消息通知、系统状态、本地以及web搜索、渲染解释应用程序的HTML/ CSS/JavaScript代码。
& j; ], B% c% ]4 q6 m
  U% [9 [% c7 X, n) E" v: q- {/ cYou 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. - \" n  `8 {! v( A* D

% ^' D! T/ m4 {0 Y- w7 ]; k用户不需要专门编写一个WebOS应用程序来浏览web内容。Palm WebOS提供了一个单独的浏览器来对web内容和基于浏览器的web应用程序进行处理。尽管我们预计日后会有越来越多的web内容以WebOS应用程序的形式出现,我们仍然需要认识到,网上还有相当多的信息和网站采用老式代码和构架,对这些信息和站点的浏览而言,传统的浏览器仍然是最好的选择。但是,Palm WebOS对传统内容的支持非常有竞争力。
$ M" h3 ^9 X" N6 O
$ `, k  e9 v' Z- _. F/ `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.
" m% Z$ B3 ]4 }3 O+ o+ e) B/ ^0 ?' S9 W* s* B9 i
除了基础的操作系统,WebOS还包括一整套核心应用程序:联系人、日程表、任务表、记事本、电话功能、浏览器、电子邮件以及短信。在最初发布的版本中,WebOS还会提供额外的应用程序,比如照相机、照片浏览器、音视频播放器以及地图程序。但是,因为具体的硬件配置以及运营商要求不同,特定的WebOS设备包含的应用程序也不尽相同。
9 o7 S1 w. ]& m% x* v- k& U" S  ?3 N+ m  M
" K0 F! l* R  U( m% F+ u
User Interface 用户界面
; W; x& o# P: {. x5 K
' s/ f8 T7 [9 S: ~, v. ]. BPalm 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. ' a8 O4 i5 i% [/ O' `. P

' v& n0 i5 }* A1 wPalm webOS主要应用于手持的、由电池供电的、配备了触摸屏的设备。尽管这些设备的屏幕尺寸不同,但是都有一定限制。每次只能允许一个应用程序显示在屏幕中央,但是其他应用程序一旦启动,就会一直运行(即便没有被显示在屏幕中央位置)直到被关闭。Palm webOS提供了丰富的通知功能,能够使得用户在使用当前程序的同时不会遗漏其他程序的通知。其他程序的通知可能是气泡式的,也能够直接切换到屏幕的中心位置。
3 N* Y5 d# ]! l- m) b* h/ L5 |3 {. O
& ?6 |* e% r* b0 CNavigation 导航6 G; b$ h' x! X7 e; ?! F

: U3 r# T- q  r( G+ cNavigation 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: / H" F3 {, W. D+ V

- ]# `, G) N5 E" T1 K& l& T一些简单的手势操作就能够完成导航功能。这些手势操作还有一些可选的扩展功能。这样就能够用一套丰富的指令进行导航和编辑。一开始,用户需要掌握下一基本操作:, {6 W9 G; t  e+ E! e; W8 M4 z

% x1 J0 m& F1 j$ v6 I; G8 I: I• 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. 7 V" C( Z$ E7 x' s
' O1 B( z7 V% r
Tap(对图标对象起作用):在包含了一系列图标的界面中使用这个动作,tap可以被用来启动应用程序。另外tap还能够改变当前应用程序的视图,还能够用于选择一个对象或是选中checkbox6 X/ V0 h$ o3 Q! c/ r' w1 v+ T% V
·     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. ; I3 s/ m. E+ p1 a
' g( {6 l- G/ g9 B, I; f
   Back(open的逆操作):实际上是tap的逆操作,被启动的程序会回到任务栏中(这里summary我暂时理解为类似于windows的任务栏),并且整个显示退回到程序启动前的界面。
/ h2 M9 O, T0 i3 m/ n% c6 o; l0 _( u$ k8 r# q
       ·     scroll (flick and quick drags are used to scroll through lists and other views.
  k5 [. S& \- y2 N+ u6 U. C' v1 S' Y2 s" V8 S0 P
     Scroll:滚动,用于在不同的列表和视图中进行切换。
2 r4 j; R# y5 n2 c! v8 u
, A; V9 y$ c" e4 j/ M- i1 RBeyond 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. 9 C% A4 ^9 P! }1 z: x
会了以上这些手势,用户就能进一步掌握pan(移动以获得全景)、缩放、拖放、切换程序、切换视图、搜索、过滤列表以及启动应用程序。但是一开始,只需要掌握这三个动作就能够使用WebOS设备。6 z# @2 m( _" e* a

3 t  s/ H- N+ J) ULauncher 启动器
2 F. K3 i; a4 \: j+ Q" a" @
7 A' a+ P! v* c9 |8 Q6 HWhen 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 [5 y) ]3 }+ r$ a7 C# u- y) u$ z1 H3 a9 u; C; P
当用户打开一个WebOS设备时,屏幕上会显示壁纸,屏幕顶部会显示状态栏,同时在屏幕底部漂浮着一个Quick Launch bar。Quick Launch bar用来启动最常用的应用程序,也能够切换出胖子们都很熟悉的Launcher界面以便于看到设备上所有的应用程序。在Launcher界面里,单击“搜索string”(抱歉,没看到真机,不知道这个search string是什么东西)就能够在联系人以及其他应用程序里进行搜索,还能够用这种方式进行web搜索。图2所示即为Quick Launch bar 和 Launcher。) Y/ N4 K$ f) a6 F9 B
* a, I2 {8 O7 e/ R# i2 X9 E
The 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. 3 h8 e0 w4 z) f! U8 ?% |) {
2 B5 a0 n- t8 k8 G8 K8 l7 s. w
被启动的应用程序接着就会被显示在主要区域;当前应用程序界面替换了壁纸。并且Quick Launch bar也不再显示。除了某些应用程序的全屏显示(比如视频播放器),状态栏一直都位于屏幕顶端。整个过程非常流畅平滑,所有的webOS界面切换都是这样的。4 X* p* [! x2 j9 Y3 f
% S* M4 J% x, Y% I. n* m/ [
Card View 卡片式界面
4 T" |9 x" B. X7 c! r* O; [$ `: V) K/ R
Figure 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.
: d1 n8 [" U: h6 H' k$ F
3 o/ C$ L2 E) ^8 M图3显示了邮件程序的主界面。在这个界面里,一些UI组件构成了这个基本的电子邮件程序。其中,收件箱界面显示特定的文件夹,选定这个文件夹时,就会切换到一个新界面,这个界面显示的是当前文件夹里邮件的一些详细内容。这时,在底部漂浮的图标就是菜单按钮。点击这种漂浮图标将会打开菜单、显示子菜单或者打开对话框。& E2 C9 a( N5 J% m3 ]
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.
3 P& B* K4 `4 X* b) b+ w
/ e. H$ g% U, [: M# K# @& M8 \但是,一次运行一个程序,或者执行一个任务,显然无法发挥WebOS的能力。WebOS设计的初衷就是能够同时运行多个程序,并在这些程序间切换,协调这些程序之间的合作。只需要按一下Center button(中键?)整个界面就会变成卡片式界面,如图四所示。在卡片式界面里,用户可以使用tapping和scrolling手势轻松地切换应用程序和显示界面。或者,也可以直接从Quick Launch bar里启动新的应用程序。) w5 v3 U2 o7 }1 K2 p
3 O5 y8 Q% x' S; V/ s7 t
The 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.
3 ^6 ~8 L& u0 r* l4 k0 U
4 w" c' l6 q- S: u我们从平时玩纸牌的动作中获得灵感,由此开发了卡片式界面。用户可以摊开卡片,以便于看到哪张卡片在哪里。现实生活中,一副卡片里,用户可以通过简单的动作对卡片进行选择或者移动,也可以把一张卡片放在两个相邻卡片之间。WebOS的卡片界面操作方式与此类似,用户可以在卡片间scrolling、选择并且单击卡片以便于移开、或者选择并且拖拽卡片到一个新的位置。, Q8 V3 I; Y! L( F% m  e
) Z# C/ c  a2 B
We'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.
1 i9 Q* M% t0 Z, a# L+ K2 ^
( Y4 E' e" ]9 \7 B0 @$ @; {; K尽管前面已经提到activity这个概念,这里仍然有必要对这个概念做进一步的解释。通常,用户能够同时运行很多程序,但是每次只能够执行一个activity,但是在某些情况下,同时进行多个activity更加自然合理。举个例子,一个常见的邮件activity就是写一封新的电子邮件,但是在写这封邮件的时候,用户也许需要返回到收件箱查看其它邮件里的信息,或者正写着当前邮件,又来了一封紧急邮件。/ G+ k7 t; @3 _! r5 x4 t

& n  [: X9 _  C$ y, cWith 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. 0 i4 J. l6 R- r& R" p' Y! t3 o4 u
' T# a" t& X" G3 Q/ ?, x5 L) t; y
在webOS设备上,邮件程序有独立的草稿卡片。事实上,只要用户需要,就可以同时撰写多个邮件草稿,每个邮件草稿都对应一个卡片。每个卡片都被看作是分别的独立的activity,并且能够分别查看并编辑不同的卡片。在不同的邮件间进行切换与在不同的应用程序间进行切换一样简单。用户不用担心自己的数据会丢失(到底还是有一些palm的精髓----不需要“保存”,就像我以前写过的,“palm就像是一堆用不完的白纸”)。图5显示的就是电子邮件程序的卡片界面。3 E4 m  D. l1 A' `$ X# p6 G5 O4 H! o
# U6 j9 n9 k# O: }2 l  g9 `5 v
***************************
, j; E3 z. k# W7 D/ [& X2 i7 L) O3 j, @; i$ D5 g* ~
今天先到这里,明天继续更新。谢谢关注。  z2 G: ?3 ~) k7 d7 a: ]
& P  B$ S. \& r0 n' k
[ 本帖最后由 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上要早一些..如果没记错的话,我们抢先了半天比其他的网站先发出的..' G. N# z7 W! A( B3 p! g
3 ]$ }4 l8 T+ {- u" V
不过没关系啦.., W) X( _8 A5 R7 K  K
大家都是一家.
2 H( u) k) A) g* J* ?$ v5 O; Q' p* [3 B0 S5 X
尤其跟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/ {/ u: B) w, `- ~+ |

* |2 D- }' ]+ rWhat 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.
4 B0 w! O# r! x3 A7 D  h9 z1 y* f
3 S2 {+ q( [9 t+ A0 J  O" S* e3 J如果用户切换到一个新的程序,在屏幕的主界面上会发生什么?新程序之前的那个程序并没有被关闭,只是转为后台运行。转为后台运行的程序照样可以获得系统事件、读写数据、访问系统服务、改变自己的界面,只不过比当前显示在主界面的程序而言,运行优先级低了一点。
3 y, N( U# H# \$ U
6 d' ?; a  K: N" tTo enable background applications to communicate with the user, Palm provides a notification system with two types of notifications: ) F& L; O0 ]1 j$ A3 `# p

9 Q7 `/ X# `" u+ B  X2 a4 Z2 {9 OPalm提供了一个通知系统来帮助用户和后台程序进行沟通,这个通知系统有两种类型的通知:
% [& F2 {4 S. R% \5 H
/ m8 ]3 n; g0 j" ]- O* x/ `' b! }·     Popup. Non-modal dialogs which are of fixed height and include at least one button to dismiss the dialog
6 U* u, Z$ O0 l# P·     气泡式通知:一个固定高度的非模式化对话框,包括至少一个关闭按钮。(此概念与模式化对话框modal dialogs相对,指在不关闭当前对话框的情况下仍然可以进行其他任务,而模式化对话框则需要先行关闭当前对话框才能够进行其他的任务。)' j( x& [& ~  E/ L
·     Banner. Non-modal icon and single non-styled string of text & k! m4 z/ g6 R
·     横幅式通知:非模式化的图标,外加一行无风格的文本信息(这里non-styled应该是指对字体没有经过色彩或者其他形式的渲染)& D) r+ R5 J; Y8 y) ]( n3 [  g
Popup 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. 9 x' f3 f+ C0 M; [4 @- t9 Y; o: s
( M0 M( @8 M2 c1 |8 n+ p- k: ~
气泡式通知具有抢占性。用于来电、日程提醒、导航通知以及其他对时间敏感的或者紧急的通知事件。当出现气泡式通知时,用户必须对气泡式通知采取相关动作,或者直接清除它们。但是,因为气泡式通知是非模式化的通知,所以用户不一定要立即对他们做出回应。
( ~% L4 c' C2 H$ W& _. G/ }. {$ O$ h& v$ l
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. & W6 S/ D# Q' m3 }$ i5 a# z
% |% ]7 ~) }" C8 C$ [+ H4 J* @
横幅式通知显示在屏幕底部的Notification bar,并且会缓慢的横向移动(有点像led电子横幅)。Notification bar位置就在应用程序窗口正下方,因为这个位置在卡片窗口之外,所以被称作negative space(导航空间?)。在显示了横幅式通知之后,用户可以选择是否在Notification bar里保留这个横幅式通知的summary icon(概要图标?),以便于随后提醒用户还有未处理的通知。图6显示了一个横幅式通知,图7显示的summary icon(概要图标?)告诉用户后台还运行着一个音乐播放器、有一个即将出现的日程提醒、并且还有一条新短信。
. J1 m' Z2 N9 Y. K' d
. W; j5 w* H5 y( u4 s
' k5 V% S1 Z) r4 AAt 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.
. Q% r+ w, W9 G8 L3 D# o% V1 a: H* E! o+ [0 a
用户可以在任意时间点击Notification bar,随后就会出现dashboard,dashboard里面显示着所有通知事件的详细内容,如图8所示。没有被清空的通知事件将会在dashboard面板里显示他们的当前状态。
0 k) c/ l* p  G! f5 X2 Q& q$ m" V' m$ b' A; c& 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.
* g! x2 d; Q+ k# @! n
" P# y1 v  l# W; B7 R4 TDashboard面板不仅仅显示了通知事件的概要,而且还能够动态地显示每个后台程序的当前状态和动态信息。比如,在dashboard里,尽管还没有到指定提醒时间,日历程序仍然会显示下一个日历事件。在图8里,dashboard里的音乐播放器程序就显示了当前正在播放的歌曲名称、专辑名以及一个控制面板,用户可以使用这个控制面板直接控制乐曲的播放或者更换乐曲,完全不需要切换到音乐播放器程序本身。& W+ V+ l  }0 ~8 s4 C' Z8 x

% G4 i  B4 l2 b& YThe 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. 5 [. I& X% v$ U, E( t6 U- k* m+ L, ?

. N. u  @3 i( B$ }- }. o( Q8 hNotification Bar and Dashboard能够很好地管理系统事件和各种中断,使得用户可以及时掌握信息的变化,却不用停下手头正在干的活儿。如果不好理解,那么可以把这个通知系统看成是一个由事件驱动的系统,而相应的,卡片界面则可以被看作是一个由任务驱动的系统。这两者结合在一起,可以极大的提高用户的工作效率,可以随时获取用户所需要的信息,而又不用停止当前任务。5 Y, }, N; X0 V% ?* t3 z
- t+ [% [1 v5 _4 `  N/ S% R1 c
Headless 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.
8 R9 n; I. @, `  E! t8 q7 `9 }+ I' y* t- s  T- o- [
Headless applications指的是那些不需要主界面显示,只需要dashboard就能够完全控制的应用程序。因为这种程序的唯一目的就是监控并且显示信息。比如,一个天气预报程序的功能也不过是现实某个指定地点的天气情况,完全不需要占用卡片界面,显示在dashboard就足够了。, ?) S" ~0 L/ h0 Q# f4 \% Z
# y  v' I/ `' y. P* T8 U) `
+ a* z0 h! v  s" q- p; i( M

$ J; [" B. D' J+ y) kYou 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. % h8 j$ S) t8 t: u% P! d, D3 D+ Z

4 f: P: O* z2 j0 k3 ~用户会习惯于使用卡片界面来切换程序、启动程序或者用来执行某些任务。Dashboard则能够像个贴心助手那样帮助用户监控信息变化,看看什么即将发生,或者已经发生了什么,然后再由用户决定是否需要开展新的任务。
( r) A8 x$ v: v, H! y$ i3 A8 ]2 f/ r2 f
**********************
. s; L, t+ c3 Q( Z. }
) ^) I1 Z- R- ^6 a% Q) }
0 D4 l9 S, X2 n9 xUser Interface Principles 用户界面的一些原则) D! T/ C7 \9 f# B4 f# s! }

; Z3 y& b9 c5 ]$ I/ k: I- mThere 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. 0 S$ \9 T! w5 Y5 B) Z( w; U
. ?2 U& t6 s7 [- `! |- \5 s$ M8 {
WebOS的用户界面开发需要遵循一些基本的原则。开发人员按照这些原则进行开发将能够吧应用程序的体验和对设备整体的体验全面地结合在一起,使用户察觉不到程序间的差异,以及程序和整个系统之间的差异(PalmOS就遵循这样的原则,每个程序看起来风格都很统一)应用程序的开发可以依赖SDK实现所需功能,但是设计程序的时候一定要考虑到这些基本原则。8 O/ z+ ?, d+ p9 Z( M" L

1 Z$ H& f3 k. d7 k% d6 B. q; KHere are the key principles to keep in mind while designing your application:
2 c9 J8 ?  o! D) l; U( e3 L1 B( V
下列就是在程序设计阶段,开发人员需要牢记在心的东西:
: T1 S0 y6 J6 @5 k. j·     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.
- k' |8 s  z. q0 M2 [/ z·     要尽量真实,模仿现实情况,秉承palm的一贯特色。通过直接和应用程序对象互动能够增强真实性。程序对动作的反应要足够快,要能够流畅显示操作对象的变化,这些只需要用户做出最自然的动作即可。比如,在屏幕上轻轻拨动就能够删除一些东西,或者不需要繁琐的对话框就能够直接编辑文本。+ ]& n% B$ g0 c
·     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. ' @0 y+ N3 O7 a2 S
·     要有场景的概念(sense of place),可重复、可逆的操作、程序对象在屏幕上相对固定的位置,以及视觉上的变化都应该能够把用户从一个场景带到另一个场景里。
* w) `' E, z7 ~& x6 W: r9 I/ |. t·     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.
- A% ]7 ~! ^& s! q2 z1 R$ T要保证所显示的数据是最新的。这就要求应用程序获取最新的数据,并且及时显示在设备上。这样,用户就能够及时掌握信息变化。但是,这也意味着应用程序要和设备的cache打交道。因为,当设备不在信号区或者离线,用户应当能够获取设备在离线之前收到的最新信息。
# x& Q4 K+ S+ w) _) P2 Z·     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. * |% q3 l8 S. L8 _
·     Palm WebOS用起来应该很快,但是却很简单。所有的动作都要立即响应。对新手应该是很容易上手的,而对老鸟,则应该是非常高效的。(到底还是有palm的血统)
1 y4 R: e4 l& P% _6 `  m. K& r2 u·     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.
# q3 S4 l4 y6 j" K  O·     省去一切不该有的步骤!把最常用的命令直接显示在屏幕上,次之的放在菜单里。尽可能的避免诸如“特性”“设置”之类的菜单,就算需要这一类东西,也要尽量简洁明了。# K: O6 k; x/ T, @
·     Don't block the user; don't use a modal control when the same function can be carried out non-modally. 9 z# w% u8 m  s, f7 P( x
·     不要妨碍用户!在不需要模式化的地方,就不要用模式化!(比如尽量不要“打开”、“保存”之类的对话框或按钮,还是那句话,palm在手里,就好象一堆用不完的白纸!)
4 R, W& r( m# H. [·     Be consistent; help the user learn new tasks and features by leveraging what they have already learned. 2 m2 M0 W; O4 i! R
·     要保持一致。要利用用户已经掌握的的东西来帮助用户学会新的任务,掌握新的程序特点。 2 C" d/ A- C$ _2 X! ]. j% c/ d
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.
9 U, Y  ]+ L9 g5 \9 ^
3 n! i$ e3 \7 @2 H1 b. x* GPalm应用程序一直以来都采用直接互动模式。在这种模式下,用户只需要在屏幕上触摸就能够进行选择、导航、编辑等动作。Palm webOS应用程序比起Palm应用程序而言,支持更多的互动方式。但是Palm webOS应用程序的基本操作都一样。开发人员设计程序时,一定要围绕着“直接互动”这一模式,要让用户觉得直观明了。Palm webOS通过自己的导航和显示功能,真实地模拟了实际情况。但是,应用程序则需要在这个基础上进一步提高对用户动作的响应速度,进一步模拟真实情况(要把Palm当成手头上一堆用不完的白纸!不需要打开,不需要保存,更不需要看见某种恶心的沙漏式的东西!)。' [" R- @6 n8 z$ K3 o2 {3 ?! Q

. N5 B4 G1 y7 v0 P9 y. ^* s$ uYou 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. & L8 f- }, F! G$ g6 B- v) 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 @( k7 ^+ Z6 b% N6 F: ~好像已经到了盼”梨(Pre)三境界了:‘昨夜西风凋碧树。独上高楼,望尽天涯路’;‘衣带渐宽终不悔,为“梨”消得人憔悴。’;‘众里寻“梨”千百度,蓦然回首,那“梨”却在,灯火阑珊处’。6 b9 X; S1 @4 s

% W% H+ `; {: S4 v6 N. f顺顶楼主辛苦!!!
回复 支持 反对

使用道具 举报

发表于 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-12-22 20:22 , Processed in 0.417371 second(s), 18 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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