OSDN Git Service

Doc: rename QML Observer as QML Inspector
authorLeena Miettinen <riitta-leena.miettinen@nokia.com>
Fri, 8 Jul 2011 11:12:26 +0000 (13:12 +0200)
committerLeena Miettinen <riitta-leena.miettinen@nokia.com>
Fri, 8 Jul 2011 11:49:53 +0000 (13:49 +0200)
Also update functionality and screen shots.

Task-number: QTCREATORBUG-5233
Change-Id: I28cbc5205b17af271d5e849525e76a8e198764ad
Reviewed-on: http://codereview.qt.nokia.com/1370
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
doc/images/qml-observer-buttons.png [new file with mode: 0644]
doc/images/qml-observer-view.png
doc/qtcreator.qdoc

diff --git a/doc/images/qml-observer-buttons.png b/doc/images/qml-observer-buttons.png
new file mode 100644 (file)
index 0000000..8c4e9f0
Binary files /dev/null and b/doc/images/qml-observer-buttons.png differ
index 3df1169..eabbee8 100644 (file)
Binary files a/doc/images/qml-observer-view.png and b/doc/images/qml-observer-view.png differ
index 44c4250..aa345e3 100644 (file)
     If you change property values or add properties in the code editor, the
     changes are updated in the running application when they are saved.
 
-    \section3 QML Observer
+    \section3 QML Inspector
 
-    While the application is running, you can use the \gui {QML Observer} view to
+    While the application is running, you can use the \gui {QML Inspector} view to
     explore the object structure, debug animations, and inspect colors. When debugging
-    complex applications, you can use the observe mode to jump to the position in code
+    complex applications, you can use the inspection mode to jump to the position in code
     where an element is defined.
 
     \section2 Code Analysis Tools
     The debugging helpers for QML provide you with code completion for custom modules
     (\c qmldump) and debugging Qt Quick UI projects (\c qmlobserver).
 
-    You have to build the QML Observer once for each Qt version that you want to debug
+    You have to build the QML Inspector once for each Qt version that you want
+    to debug
     with. Select \gui{Tools > Options... > Qt4 > Qt Versions}.
 
-    \note QML Observer requires Qt 4.7.1 or later.
+    \note QML Inspector requires Qt 4.7.1 or later.
 
     \section1 Enabling Debugging Helpers for Qt's Bootstrapped Applications
 
         \o Select \gui Projects, and then select the \gui QML check box in the
         \gui {Run Settings}, to enable QML debugging.
 
-        \o Compile the QML Observer debugging helper. For more information, see
+        \o Compile the QML Inspector debugging helper. For more information, see
         \l{Debugging Helpers for QML}.
 
     \endlist
 
     You can see the current value of a property by hovering over it in the code editor.
 
-    \section1 Previewing QML Changes at Runtime
+    \section1 Applying QML Changes at Runtime
 
     If you change property values or add properties in the code editor, the changes
     are updated in the running application when you save them. If live preview is not supported
 
     \section1 Inspecting QML at Runtime
 
-    While the application is running, you can use the \gui {QML Observer} view to
+    While the application is running, you can use the \gui {QML Inspector} view to
     explore the object structure, debug animations, and inspect colors.
-    To open the \gui {QML Observer} view, choose \gui {Window > View > QML Observer}.
+    To open the \gui {QML Inspector} view, choose \gui {Window > View >
+    QML Inspector}.
     The view shows the properties of the currently selected QML element.
 
-    \image qml-observer-view.png "QML Observer view"
+    \image qml-observer-view.png "QML Inspector view"
 
-    When you debug complex applications, you can use the observe
-    mode to jump to the position in code where an element is defined. To switch to
-    the observe mode, click
-    \inlineimage qml-observer-bar-observe.png
+    When you debug complex applications, you can use the inspection
+    mode to jump to the position in code where an element is defined. You are
+    switched to the inspection mode, when you click the \gui Select, \gui Zoom,
+    or \gui {Color Picker} button
     on the toolbar.
 
-    Click elements in the running application to jump to their definitions in the code.
-    Double-click elements to browse the element hierarchy. The hierarchy is displayed
-    as bread crumbs in the \gui {QML Observer} view.
+    \image qml-observer-buttons.png "QML Inspector toolbar"
 
-    To move the application running in \QQV to the front, select the
-    \gui {Show Application on Top} button.
+    When the \gui Select tool is enabled, you can click elements in the running
+    application to jump to their definitions in the code. The properties of the
+    selected element are displayed in the \gui {QML Inspector} view. The element
+    hierarchy is displayed as a bread crumb path.
 
     You can also right-click an element in the running application to view the element
-    hierarchy as a context menu. Select an element to jump to its definition in code.
+    hierarchy as a context menu.
 
-    \image qml-observer-context-menu.png "QML Observer"
+    \image qml-observer-context-menu.png "QML Inspector"
 
-    To zoom in and out of the application, click the \gui Zoom button.
+    To switch to the zoom mode, click the \gui Zoom button. Click in the
+    running application to zoom in. Right-click to open a context menu that
+    contains zoom controls.
 
     To inspect colors, click the \gui {Color Picker} button. You can also click
     \inlineimage qml-observer-bar-copy-color.png "Copy Color button"
     to copy the color definition to the clipboard.
 
+    To switch out of the inspection mode, deselect the \gui Select, \gui Zoom,
+    and \gui {Color Picker} button.
+
+    To move the application running in \QQV to the front, select the
+    \gui {Show Application on Top} button.
+
     \section1 Debugging Animations
 
     \image qml-observer.png