找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 13368|回复: 40

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

[复制链接]
发表于 2009-2-18 18:22 | 显示全部楼层 |阅读模式
首发于Hi-Pda,不是不重视这里,主要是因为crazygorilla发的pdf是在hipda上看到的。(实际上我的homepage就是这里)
% l: w% }4 i  L. t4 w/ t. \$ K2 M
3 R: {( z% x, \+ u+ ]5 J感谢crazygorilla 发出PDF文档!
  f" ?3 f; x0 A* `& M2 Y- Q- Y9 Y7 c/ x. G/ X
感谢14楼CasBoy 提出的那个不该有的错误!
3 u+ A  r' T$ Z2 m6 Z, N; y: x0 Z3 B5 S" z
链接:
- J9 F) @4 ?2 f/ U, h
$ n' k! r5 D* U& F: m" v$ S' Qhttp://www.hi-pda.com/forum/view ... 26amp%3Btypeid%3D64- h, P" x' m6 u( A* A
3 x2 E. f4 E0 a
Overview of webOS
8 ]8 S2 s' |/ z: e. y1 D, @+ e1 [8 W% |5 Y# G
总论
% M" x1 w% ^  b
8 v: T; W1 ^6 K% C+ ?3 d5 N
, s3 Z2 g  G7 j! B( W7 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.
& r% H, Q9 ^5 Q
2 z" @3 s; R+ T- DPalm® webOS™是Palm公司新一代的操作系统。WebOS将窗口操作系统的强大功能和浏览器应用的简便性融合在一起,提供了非常快速并且华丽的用户界面,而且还为多任务操作进行了优化。可以使用任何标准的web技术和语言撰写WebOS的应用程序,同时这并不会影响到WebOS应用程序对设备底层服务和本地数据的访问。
$ a! n* T: K* [2 Q5 Z4 g9 U. q% m6 {. x/ B
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.
8 Q3 v7 ~9 Y+ T: Y  p8 ]. K, q  r4 L: I3 j$ g9 O8 j" _
Palm webOS能够运行在许多设备上,这些设备在屏幕尺寸、分辨率以及用途上各不相同。Palm webOS支持键盘操作,尽管如此,在配备触摸屏的设备上表现更好。因为Palm webOS的用户界面和应用程序都是基于浏览器应用的,所以,只要硬件设备包含一个cpu、一些内存、支持无线数据连接、有显示设备、并且能够进行文本输入和用户界面操作,那么这个设备就能够使用Palm webOS。
7 u4 `: h, s1 p! h: E! r2 ~
. N/ D% {# R! f& Z1 y$ `# G1 {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.
5 Y8 D' S  }+ l" V# F
& a- B; G) G1 K4 z; O6 j; ]尽管Palm webOS应用程序开发基于标准的HTML, CSS and JavaScript(这些语言都是开发web应用程序必备的---注:web应用程序是web应用程序,WebOS应用程序是WebOS应用程序,不是一码事儿),我们仍然可以认为WebOS应用程序就是本地程序。Palm已经通过一套完成的JavaScript frame-work对标准的web开发环境进行了扩展。这套JavaScript frame-work提供了标准化的用户界面组件,并且支持对设备硬件和服务的访问。( q8 |6 B, w8 ]0 W1 c$ f6 Q

6 m% q. _: p8 e' z& {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.
6 j8 A; w/ e9 w8 p8 P/ t# l( e% Z! y/ w/ k/ y6 @
用户可以在WebOS上同时启动并且管理多个应用程序,Palm为此对WebOS进行了专门优化。WebOS的设计初衷就是为了更好地支持多任务,因此WebOS能够很容易地运行后台程序、能够在多个程序间一部切换,而且还能够非常轻松地在不丢失当前输入的情况下处理各种中断和系统事件。
! W$ Q2 B% U3 J9 k  V! ?  x5 e- m. T% s; o) k" V. d5 ^
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.
: u: e6 a: }0 {, S2 ^2 Q/ C$ u# i" J
开发人员可以很容易地用常见的web开发工具进行开发,开发方式和开发Ajax应用程序一样。不同的是,WebOS应用程序直接安装并且运行在设备上,这一点和以前的palm应用程序没有任何区别。+ Q) ?" [/ V9 P$ g4 I5 G" R2 P6 b
1 U: a1 {. w  O% E4 w+ M  I- h4 v

8 r  I5 `7 b; I6 E" S$ t& J& HApplication Model
5 @: [" R  ~9 p0 v6 @' @' I) \" F# J. c  }+ Q& |& j
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.
# k6 K  x' m# F2 `0 g/ n; \; e' G9 R+ U! n! C5 ?
如图一所示,最初的PalmOS应用程序和其他流行的移动操作系统一样都是本地程序。在这种情况下,程序的数据、逻辑以及用户界面都被整合在一个可执行应用程序中,然后安装在本地操作系统上,这样能就能够直接访问操作系统服务和数据。: f5 ]7 j' v% S! l7 |+ F2 M4 O
: `; c" o- p* Z/ g0 @
Classic 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.
6 ^0 c' j+ `$ D" x7 [" S/ Y- I* ^6 y
典型的web应用程序使用以HTML为基础的语言进行开发。在每一个用户动作之后,都会向一个web服务器提交HTTP请求,然后等待回应。收到回应之后,以HTML页面的形式对返回结果进行显示。最近几年更常见的是Ajax应用程序。Ajax应用程序能够直接处理用户动作,并且能够以异步的方式向web服务器发出请求。因此,Ajax就能够提供更丰富更快速的用户体验。地图程序就是个好例子。地图程序在持全景以及缩放功能的同时,也能够异步地从web服务器获取所需的数据。: U7 z# K  d: \/ b1 _
' }; \; \% p. Y& |% Z. v- \/ b
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. ; [3 g( |# @4 R5 v& A3 O4 e1 F
' ?( J1 ~) m. ~% A
Ajax应用程序相比于嵌入式程序有很大的优势。普通网页使用搜索访问技术,用同样的技术就能够很轻松地部署、升级Ajax应用程序。同样,开发web应用程序也极其简单:开发语言和开发工具很简单,这就大大提高了开发设计人员的效率,尤其是开发需要数据连接的程序时。因此,实时数据应用程序(Connected applications,不知道翻译的是否准确)以及支持动态数据和web服务的应用程序就成了主流。
1 v; f4 B% A# `6 K( W
- q& O9 [" M/ g: K2 pThe 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. # N; M+ O4 X% L4 ~! S2 A

9 i2 N5 O/ B$ l; M然而,WebOS应用程序,却进一步把web应用程序开发维护的简便性和本地应用程序的整体性结合在一起。极大地改善了移动用户体验,同时又保留了简便易行的开发方式。
) @4 K' x' T3 K+ h! |. d5 U. c7 W: x! U

2 I7 c. A+ b4 Z6 z2 q! [**********************************
. e$ b2 u5 m# d9 ^
1 t# W/ g% C: WApplication Framework and OS 应用程序构架和OS
) u5 z0 U3 A& W- B  [( o# y: I8 y8 q+ `0 ^" s% Y
Through 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. ' |' @  x2 z7 Q  y) H

  k0 k' E) `) d( g- G4 a4 a) s: |, bPalm的应用程序构架在用户界面组件里集成了复杂编辑、导航以及一些显示特性,这样就能够开发出更为复杂的用户界面。这套应用程序构架还包括了事件处理、通知服务、以及多任务支持。应用程序在后台运行的同时能够管理数据、事件以及相关服务,用户需要的时候可以轻易切换到显示界面。
$ W/ e( }1 M' P
( P, y( j+ @. p* @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.
# T6 s( j% X& b: k. E+ A0 h6 }( t& Z0 l2 P
用户可以使用HTML5的存储函数对需要保存的数据进行管理,用户还能够访问WebOS核心应用程序的数据,比如联系人和日程的数据。用户也能够访问一些基本的系统服务,比如位置服务(应该和gps或者基站定位有关系)和重力感应器数据(这个应该是说WebOS支持重力感应应用,例如IPhone上的《古惑狼赛车》),这些系统服务都是常驻系统的,内嵌于设备的。除此之外,还支持一些晕服务,比如XMPP消息服务。. R' D! v: v5 ?3 p) X
# E2 Z& n: f1 o! z. X0 B/ O! A; p
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 y0 r/ w2 o7 r

, E/ N% m9 C" Z" \" ?. w/ q8 {从整个构架上来说,Palm WebOS是一种嵌入式linux系统。在这个系统上,可以通过标准的浏览器技术构建可定制的用户界面管理器。这套用户界面管理器提供了一整套系统用户界面的特性,包括:导航、应用程序启动和终止、事件管理和消息通知、系统状态、本地以及web搜索、渲染解释应用程序的HTML/ CSS/JavaScript代码。* }3 @; E( F+ `0 I
3 W6 n8 Z, K( \! m$ n  i
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. 8 S1 T* u+ R8 L2 o1 z, @' v

6 w  f& Q. i# o  z6 Z7 q3 o用户不需要专门编写一个WebOS应用程序来浏览web内容。Palm WebOS提供了一个单独的浏览器来对web内容和基于浏览器的web应用程序进行处理。尽管我们预计日后会有越来越多的web内容以WebOS应用程序的形式出现,我们仍然需要认识到,网上还有相当多的信息和网站采用老式代码和构架,对这些信息和站点的浏览而言,传统的浏览器仍然是最好的选择。但是,Palm WebOS对传统内容的支持非常有竞争力。
5 @- G$ L& }% x. Z; P  G& \& W6 [3 i
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. : {6 V2 W% y( e/ y5 R

! {: k/ }$ {6 G# p" y. c除了基础的操作系统,WebOS还包括一整套核心应用程序:联系人、日程表、任务表、记事本、电话功能、浏览器、电子邮件以及短信。在最初发布的版本中,WebOS还会提供额外的应用程序,比如照相机、照片浏览器、音视频播放器以及地图程序。但是,因为具体的硬件配置以及运营商要求不同,特定的WebOS设备包含的应用程序也不尽相同。8 A0 l. t9 p5 j$ A/ Z, M4 [

( K  N2 O. l* X2 l/ U! G0 K$ n/ ^
5 V5 B: ^0 T( D# H+ E3 P: U# }- PUser Interface 用户界面- p1 f/ u9 a. X; h0 x* J' ~6 P
& r$ d) S/ t$ `$ Y
Palm 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.
8 _" e0 B" J5 q
% V5 X. `& ~, f# u6 O4 z% L) DPalm webOS主要应用于手持的、由电池供电的、配备了触摸屏的设备。尽管这些设备的屏幕尺寸不同,但是都有一定限制。每次只能允许一个应用程序显示在屏幕中央,但是其他应用程序一旦启动,就会一直运行(即便没有被显示在屏幕中央位置)直到被关闭。Palm webOS提供了丰富的通知功能,能够使得用户在使用当前程序的同时不会遗漏其他程序的通知。其他程序的通知可能是气泡式的,也能够直接切换到屏幕的中心位置。, d8 x1 j1 I4 i7 n

0 j& [& D7 H) Z4 R" ?, hNavigation 导航
) p2 |- y* @, K" r- y; O
/ c% y: i; `0 r, @: f; ^% ~/ c# jNavigation 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: * J) ?6 C/ R" F& a- P" J6 M, Y
# I9 R' G, D$ b7 t% k" W' w
一些简单的手势操作就能够完成导航功能。这些手势操作还有一些可选的扩展功能。这样就能够用一套丰富的指令进行导航和编辑。一开始,用户需要掌握下一基本操作:
. A4 i. _8 c/ }9 [  Z: ^( O! s' j3 P; u
• 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. # A$ u( p1 _! \) o; e
" Y4 e$ D9 W6 o3 E' o: R( W( H  K
Tap(对图标对象起作用):在包含了一系列图标的界面中使用这个动作,tap可以被用来启动应用程序。另外tap还能够改变当前应用程序的视图,还能够用于选择一个对象或是选中checkbox3 Q1 Z) p# v6 i
·     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.
6 D+ z# b8 m2 p, H8 V
2 ]7 u) {; y0 _% w) a& J4 c   Back(open的逆操作):实际上是tap的逆操作,被启动的程序会回到任务栏中(这里summary我暂时理解为类似于windows的任务栏),并且整个显示退回到程序启动前的界面。
6 U, l$ w( c! o% s1 t6 O' ^
( |  j" [% v9 u: M/ F- S       ·     scroll (flick and quick drags are used to scroll through lists and other views.
; z" \4 J1 @3 S$ x4 X% `
& L# o" Y5 l) G, ~0 q# a, D8 r; L8 E7 J     Scroll:滚动,用于在不同的列表和视图中进行切换。
' O( U1 N1 u- P6 X5 O$ X+ Y" ?# |+ }0 i, i
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. " k& t5 ^) A2 l2 i
会了以上这些手势,用户就能进一步掌握pan(移动以获得全景)、缩放、拖放、切换程序、切换视图、搜索、过滤列表以及启动应用程序。但是一开始,只需要掌握这三个动作就能够使用WebOS设备。7 N/ {" ]# @- M( K" F& o

( ]% ~' X9 {% K6 \: _  g; YLauncher 启动器
% v! y0 b  W4 H9 T: e
' X' z1 v  d8 W/ ^. lWhen 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.
, g: w# a/ k+ W3 U4 t. X. s/ V
当用户打开一个WebOS设备时,屏幕上会显示壁纸,屏幕顶部会显示状态栏,同时在屏幕底部漂浮着一个Quick Launch bar。Quick Launch bar用来启动最常用的应用程序,也能够切换出胖子们都很熟悉的Launcher界面以便于看到设备上所有的应用程序。在Launcher界面里,单击“搜索string”(抱歉,没看到真机,不知道这个search string是什么东西)就能够在联系人以及其他应用程序里进行搜索,还能够用这种方式进行web搜索。图2所示即为Quick Launch bar 和 Launcher。/ x& m% r: S' P/ z

; X# G( m: H3 f6 A" o1 dThe 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. 6 \* M0 |2 t( K3 ^! i# |. y, R

, D7 J1 n2 I4 i" y: `被启动的应用程序接着就会被显示在主要区域;当前应用程序界面替换了壁纸。并且Quick Launch bar也不再显示。除了某些应用程序的全屏显示(比如视频播放器),状态栏一直都位于屏幕顶端。整个过程非常流畅平滑,所有的webOS界面切换都是这样的。
4 v# k5 ?2 G* h0 x# l
  w7 R7 V, e- `5 K4 J& b0 q, Q  G4 ^4 l6 jCard View 卡片式界面
% X7 r$ y& M6 c5 L) b" m9 D, L! u; Y: y- R1 h0 k5 J  Q
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. # d% Q- u+ @4 F* |

) G8 O2 I' n2 w图3显示了邮件程序的主界面。在这个界面里,一些UI组件构成了这个基本的电子邮件程序。其中,收件箱界面显示特定的文件夹,选定这个文件夹时,就会切换到一个新界面,这个界面显示的是当前文件夹里邮件的一些详细内容。这时,在底部漂浮的图标就是菜单按钮。点击这种漂浮图标将会打开菜单、显示子菜单或者打开对话框。; i6 Y! q3 m/ {" a
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.
0 Y# M5 J& l1 v4 ~7 d/ d; E
( ~- s/ V% H" R$ S/ I但是,一次运行一个程序,或者执行一个任务,显然无法发挥WebOS的能力。WebOS设计的初衷就是能够同时运行多个程序,并在这些程序间切换,协调这些程序之间的合作。只需要按一下Center button(中键?)整个界面就会变成卡片式界面,如图四所示。在卡片式界面里,用户可以使用tapping和scrolling手势轻松地切换应用程序和显示界面。或者,也可以直接从Quick Launch bar里启动新的应用程序。
0 c5 x7 Q/ ^# q0 j/ K+ o* D7 ?8 ~4 K
  v& a. d8 ]2 v6 ^: E- }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.
# n" `3 r0 W  L# G, ]$ ^4 _7 x" f2 ~( ]
我们从平时玩纸牌的动作中获得灵感,由此开发了卡片式界面。用户可以摊开卡片,以便于看到哪张卡片在哪里。现实生活中,一副卡片里,用户可以通过简单的动作对卡片进行选择或者移动,也可以把一张卡片放在两个相邻卡片之间。WebOS的卡片界面操作方式与此类似,用户可以在卡片间scrolling、选择并且单击卡片以便于移开、或者选择并且拖拽卡片到一个新的位置。. v  ]; h7 ?) F% @& L" E

/ X) C" R5 A. D) I; Z: w5 k6 aWe'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.
. B# F' Z! a- {; P2 O! D2 n5 U( {9 V& q: {7 {3 I
尽管前面已经提到activity这个概念,这里仍然有必要对这个概念做进一步的解释。通常,用户能够同时运行很多程序,但是每次只能够执行一个activity,但是在某些情况下,同时进行多个activity更加自然合理。举个例子,一个常见的邮件activity就是写一封新的电子邮件,但是在写这封邮件的时候,用户也许需要返回到收件箱查看其它邮件里的信息,或者正写着当前邮件,又来了一封紧急邮件。
$ Y. h+ d0 U) _+ a4 _/ t" \2 v- j* G
With 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. " \6 G; v4 U. O# \: ^2 K$ c8 F
! K: q7 B9 I' f; M' N
在webOS设备上,邮件程序有独立的草稿卡片。事实上,只要用户需要,就可以同时撰写多个邮件草稿,每个邮件草稿都对应一个卡片。每个卡片都被看作是分别的独立的activity,并且能够分别查看并编辑不同的卡片。在不同的邮件间进行切换与在不同的应用程序间进行切换一样简单。用户不用担心自己的数据会丢失(到底还是有一些palm的精髓----不需要“保存”,就像我以前写过的,“palm就像是一堆用不完的白纸”)。图5显示的就是电子邮件程序的卡片界面。& x' Q& z7 u! O) k
6 V% v( X3 C3 L5 y$ z
**************************** x2 k# h+ q- k" a' J8 \, Q
) }3 u3 j+ g# G+ R
今天先到这里,明天继续更新。谢谢关注。
9 X. O: W; T1 g7 T) M4 b5 H$ E  L  h* _) a2 h  k4 G+ d$ g
[ 本帖最后由 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上要早一些..如果没记错的话,我们抢先了半天比其他的网站先发出的..' {' ^0 d' Q- ?7 W! B4 m  z

. W1 V  P3 M! h7 O* N0 e7 V不过没关系啦..
9 j, M4 Q5 A) ]1 q$ I大家都是一家.
2 N# o& `- v  o9 z5 T( L, N) P# C4 D+ o& T% G
尤其跟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* y, I- ~1 t# g8 R

, i6 O. ?; M7 W3 B' ?/ c$ f7 {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.
( {( Z5 y9 r$ W0 U$ X8 I% A7 I6 M  N" u% @. L4 P
如果用户切换到一个新的程序,在屏幕的主界面上会发生什么?新程序之前的那个程序并没有被关闭,只是转为后台运行。转为后台运行的程序照样可以获得系统事件、读写数据、访问系统服务、改变自己的界面,只不过比当前显示在主界面的程序而言,运行优先级低了一点。( l0 V/ F8 K5 [* u

$ D+ Q% S4 Q2 f2 N3 U! A6 kTo enable background applications to communicate with the user, Palm provides a notification system with two types of notifications: $ u$ a. g" V. }, d0 i
; A- P4 F' C' ]+ Q& O% b
Palm提供了一个通知系统来帮助用户和后台程序进行沟通,这个通知系统有两种类型的通知:9 Y7 {7 C9 i6 K7 R( `9 K

4 G+ Z$ S" g+ @. k·     Popup. Non-modal dialogs which are of fixed height and include at least one button to dismiss the dialog : A6 \" ]7 C# Z5 I/ F5 t$ P
·     气泡式通知:一个固定高度的非模式化对话框,包括至少一个关闭按钮。(此概念与模式化对话框modal dialogs相对,指在不关闭当前对话框的情况下仍然可以进行其他任务,而模式化对话框则需要先行关闭当前对话框才能够进行其他的任务。)
+ [/ b( o+ K% R7 p·     Banner. Non-modal icon and single non-styled string of text " X! b5 F# \) \) g4 g; f2 B5 R. L
·     横幅式通知:非模式化的图标,外加一行无风格的文本信息(这里non-styled应该是指对字体没有经过色彩或者其他形式的渲染)9 Z5 m' u* m( U1 m+ J
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. , d% T7 y' t4 P5 l) I
' o& [6 \; t6 Q
气泡式通知具有抢占性。用于来电、日程提醒、导航通知以及其他对时间敏感的或者紧急的通知事件。当出现气泡式通知时,用户必须对气泡式通知采取相关动作,或者直接清除它们。但是,因为气泡式通知是非模式化的通知,所以用户不一定要立即对他们做出回应。
/ \; ]' r2 d+ V8 S% s4 y$ U) T$ E5 @: g
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. " n2 E+ Y% m  E; y
" a4 E5 \, K- g+ W
横幅式通知显示在屏幕底部的Notification bar,并且会缓慢的横向移动(有点像led电子横幅)。Notification bar位置就在应用程序窗口正下方,因为这个位置在卡片窗口之外,所以被称作negative space(导航空间?)。在显示了横幅式通知之后,用户可以选择是否在Notification bar里保留这个横幅式通知的summary icon(概要图标?),以便于随后提醒用户还有未处理的通知。图6显示了一个横幅式通知,图7显示的summary icon(概要图标?)告诉用户后台还运行着一个音乐播放器、有一个即将出现的日程提醒、并且还有一条新短信。
6 @! j6 C3 V" G4 \. I! d$ `; P2 y! G- K% g0 W

! ]6 g/ L6 s* j0 B# P' Y8 N1 C" IAt 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.
5 B1 D, H! X) H( ~
# [. y" [$ F0 i1 X: E& l3 @9 N用户可以在任意时间点击Notification bar,随后就会出现dashboard,dashboard里面显示着所有通知事件的详细内容,如图8所示。没有被清空的通知事件将会在dashboard面板里显示他们的当前状态。
# w1 y$ N/ A+ V6 H/ S% V9 u
1 }+ I* @' Q  H# N. t" c4 uDashboard 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. ' c  g8 d9 Y' |" ?
' K6 I" r' ]' v* W  V. @% h
Dashboard面板不仅仅显示了通知事件的概要,而且还能够动态地显示每个后台程序的当前状态和动态信息。比如,在dashboard里,尽管还没有到指定提醒时间,日历程序仍然会显示下一个日历事件。在图8里,dashboard里的音乐播放器程序就显示了当前正在播放的歌曲名称、专辑名以及一个控制面板,用户可以使用这个控制面板直接控制乐曲的播放或者更换乐曲,完全不需要切换到音乐播放器程序本身。% F7 [) z  U" ~$ l" o

. I# t. `1 b/ y: o" HThe 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. ; ]# x; K  ~; e3 k9 g8 h  U2 h3 x  L
0 r6 F5 ~# o* T3 e* q& }0 F
Notification Bar and Dashboard能够很好地管理系统事件和各种中断,使得用户可以及时掌握信息的变化,却不用停下手头正在干的活儿。如果不好理解,那么可以把这个通知系统看成是一个由事件驱动的系统,而相应的,卡片界面则可以被看作是一个由任务驱动的系统。这两者结合在一起,可以极大的提高用户的工作效率,可以随时获取用户所需要的信息,而又不用停止当前任务。; @4 z. G, h2 N8 p
4 i* X  `% u2 }' A; o; G% `$ I; `+ o$ \
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.
: A, T+ T8 D9 c4 W# t' o% Q& h& P- R5 f. Z
Headless applications指的是那些不需要主界面显示,只需要dashboard就能够完全控制的应用程序。因为这种程序的唯一目的就是监控并且显示信息。比如,一个天气预报程序的功能也不过是现实某个指定地点的天气情况,完全不需要占用卡片界面,显示在dashboard就足够了。# {+ O" k$ g+ t+ o9 X2 n* k, S
8 s4 @3 M; I! d5 {7 f

, ?, s; r* h/ U5 F
2 U9 x, A& H* ^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. ! h/ L# z0 @" l+ W

. w# l  u7 V2 `. @用户会习惯于使用卡片界面来切换程序、启动程序或者用来执行某些任务。Dashboard则能够像个贴心助手那样帮助用户监控信息变化,看看什么即将发生,或者已经发生了什么,然后再由用户决定是否需要开展新的任务。. K9 j2 I: B; y2 `. I  c

0 x* p- U$ N" ]**********************
- v- {7 s1 c* j2 _4 J2 c
$ n9 K0 d" ]8 t5 G8 P8 \4 r! a+ }" }$ J# r% u' l$ T5 p
User Interface Principles 用户界面的一些原则
1 H" f7 j% i  x3 V2 V  B; P& c6 F7 h, O" }9 J1 R- }* @- [
There 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.
& K1 B/ P$ }  m( w! y- d; U4 Y& l: `. e8 h$ p6 A
WebOS的用户界面开发需要遵循一些基本的原则。开发人员按照这些原则进行开发将能够吧应用程序的体验和对设备整体的体验全面地结合在一起,使用户察觉不到程序间的差异,以及程序和整个系统之间的差异(PalmOS就遵循这样的原则,每个程序看起来风格都很统一)应用程序的开发可以依赖SDK实现所需功能,但是设计程序的时候一定要考虑到这些基本原则。& A4 b( m9 o3 `- p% A

# w; O& m- y8 v0 b' A6 aHere are the key principles to keep in mind while designing your application: 8 L* q6 x. |: E# O: g) ?

. J* C9 {' U6 b/ a+ Q3 H9 ^下列就是在程序设计阶段,开发人员需要牢记在心的东西:
7 U: x1 r% ?4 B·     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. 7 P, y' f' G0 p( ?+ [
·     要尽量真实,模仿现实情况,秉承palm的一贯特色。通过直接和应用程序对象互动能够增强真实性。程序对动作的反应要足够快,要能够流畅显示操作对象的变化,这些只需要用户做出最自然的动作即可。比如,在屏幕上轻轻拨动就能够删除一些东西,或者不需要繁琐的对话框就能够直接编辑文本。
: \0 [" U6 d7 Z& C1 q0 l·     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.
4 R) F) w; Y* K3 s- N7 j6 p·     要有场景的概念(sense of place),可重复、可逆的操作、程序对象在屏幕上相对固定的位置,以及视觉上的变化都应该能够把用户从一个场景带到另一个场景里。' I+ O( T7 G: E9 R2 r2 N
·     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. & H  ~# E3 n3 ]0 p3 T! S
要保证所显示的数据是最新的。这就要求应用程序获取最新的数据,并且及时显示在设备上。这样,用户就能够及时掌握信息变化。但是,这也意味着应用程序要和设备的cache打交道。因为,当设备不在信号区或者离线,用户应当能够获取设备在离线之前收到的最新信息。
! y( h0 L' F$ N) Q+ {8 q' s- T; m·     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. 3 H6 h2 `1 d  u) t! g
·     Palm WebOS用起来应该很快,但是却很简单。所有的动作都要立即响应。对新手应该是很容易上手的,而对老鸟,则应该是非常高效的。(到底还是有palm的血统)
5 {6 K% [7 t" N8 h·     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.
$ g1 v' Q: ]# K5 B( L·     省去一切不该有的步骤!把最常用的命令直接显示在屏幕上,次之的放在菜单里。尽可能的避免诸如“特性”“设置”之类的菜单,就算需要这一类东西,也要尽量简洁明了。0 j/ @) j: y- b+ P7 f
·     Don't block the user; don't use a modal control when the same function can be carried out non-modally.
/ R' n8 m; n! I& n- `: G·     不要妨碍用户!在不需要模式化的地方,就不要用模式化!(比如尽量不要“打开”、“保存”之类的对话框或按钮,还是那句话,palm在手里,就好象一堆用不完的白纸!)
+ l) |; D$ Z4 y) l8 r+ u·     Be consistent; help the user learn new tasks and features by leveraging what they have already learned.
& g1 Q0 ^5 _1 R' P·     要保持一致。要利用用户已经掌握的的东西来帮助用户学会新的任务,掌握新的程序特点。
5 F( z# a1 h% G6 E2 ]! N( \- RPalm 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. 1 E1 r! U( h  z6 ^% k
" W: ]9 `' n+ v" Y* E
Palm应用程序一直以来都采用直接互动模式。在这种模式下,用户只需要在屏幕上触摸就能够进行选择、导航、编辑等动作。Palm webOS应用程序比起Palm应用程序而言,支持更多的互动方式。但是Palm webOS应用程序的基本操作都一样。开发人员设计程序时,一定要围绕着“直接互动”这一模式,要让用户觉得直观明了。Palm webOS通过自己的导航和显示功能,真实地模拟了实际情况。但是,应用程序则需要在这个基础上进一步提高对用户动作的响应速度,进一步模拟真实情况(要把Palm当成手头上一堆用不完的白纸!不需要打开,不需要保存,更不需要看见某种恶心的沙漏式的东西!)。3 E6 E- y( n1 ?4 W

8 y$ Z5 D- w3 }; h( qYou 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.
6 ?4 s" Q% }/ G4 y在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 | 显示全部楼层
翘首以待,望眼欲穿,望断秋水,心急火燎。。。
/ r" M4 a# N+ M/ p' a好像已经到了盼”梨(Pre)三境界了:‘昨夜西风凋碧树。独上高楼,望尽天涯路’;‘衣带渐宽终不悔,为“梨”消得人憔悴。’;‘众里寻“梨”千百度,蓦然回首,那“梨”却在,灯火阑珊处’。, N1 H6 E# _7 S- @+ ]/ O
, b/ }4 I1 m7 b; z
顺顶楼主辛苦!!!
回复 支持 反对

使用道具 举报

发表于 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 17:17 , Processed in 0.420459 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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