From a5d5aceb8085474bf7f674988f7bd23c56a5a05a Mon Sep 17 00:00:00 2001 From: Editor Lionbridge Date: Wed, 16 Aug 2017 12:36:25 +0300 Subject: [PATCH] Fix step list tagging This is a manual cherry pick from change #144170 in the tizen_3.0 branch. Change-Id: I9fb88a87982d50b6993a668323b6cdd793f6b3ce --- .../html/native/connectivity/nfc_n.htm | 4 +- org.tizen.guides/html/native/device/runtime_n.htm | 4 +- .../html/native/graphics/creating_opengles_n.htm | 2 +- .../html/native/internationalization/i18n_n.htm | 2 +- org.tizen.guides/html/native/messaging/email_n.htm | 4 +- .../html/native/personal/contacts_n.htm | 6 +-- org.tizen.guides/html/native/personal/oauth_n.htm | 2 +- org.tizen.guides/html/native/security/yaca_n.htm | 2 +- .../html/native/ui/efl/component_gengrid_mn.htm | 2 +- .../html/native/ui/efl/component_genlist_mn.htm | 2 +- .../html/native/ui/efl/rotary_events_wn.htm | 6 +-- .../html/web/media/media_controller_w.htm | 4 +- org.tizen.guides/html/web/messaging/push_w.htm | 2 +- org.tizen.guides/html/web/personal/bookmarks_w.htm | 8 ++-- org.tizen.guides/html/web/w3c/storage/websql_w.htm | 50 ++++++---------------- .../html/common_tools/connection_explorer_view.htm | 2 +- .../html/common_tools/da_ui_hierarchy_n.htm | 4 +- .../html/common_tools/emulator_manager.htm | 4 +- .../native_tools/ui_project_migration_combi_n.htm | 4 +- 19 files changed, 44 insertions(+), 70 deletions(-) diff --git a/org.tizen.guides/html/native/connectivity/nfc_n.htm b/org.tizen.guides/html/native/connectivity/nfc_n.htm index e70e41d..7b54e27 100644 --- a/org.tizen.guides/html/native/connectivity/nfc_n.htm +++ b/org.tizen.guides/html/native/connectivity/nfc_n.htm @@ -564,7 +564,7 @@ on_nfc_ndef_discovered(nfc_ndef_message_h message, void *user_data)
  • Handling a NFC P2P target and related events: -
      +
      1. When the device is connected to a P2P target, you can exchange NDEF data with that peer target by sending and receiving messages.

        @@ -600,7 +600,7 @@ on_nfc_p2p_read_completed(nfc_p2p_target_h target, nfc_ndef_message_h message,
      2. Handling NFC secure elements and related events: -
          +
          1. The secure element event notification is received through the on_nfc_se_event() callback. The first parameter defines the event type, which determines the additional actions you can take.

            diff --git a/org.tizen.guides/html/native/device/runtime_n.htm b/org.tizen.guides/html/native/device/runtime_n.htm
            index 4ce84ed..1cc52b8 100644
            --- a/org.tizen.guides/html/native/device/runtime_n.htm
            +++ b/org.tizen.guides/html/native/device/runtime_n.htm
            @@ -72,7 +72,7 @@
             
             

            Some runtime information consists of key and value pairs.

            To get information on, for example, whether Bluetooth is enabled or an audio jack connected:

            -
              +
              • Check whether Bluetooth is enabled.

                Use the RUNTIME_INFO_KEY_BLUETOOTH_ENABLED key with the data type-specific get function.

                The Bluetooth enabled key data type is bool, which means that you need to use the runtime_info_get_value_bool() function.

                @@ -124,7 +124,7 @@ func(void) break; } } -
          +

          Getting Runtime Information with a Function

          diff --git a/org.tizen.guides/html/native/graphics/creating_opengles_n.htm b/org.tizen.guides/html/native/graphics/creating_opengles_n.htm index b26455a..de0cdca 100644 --- a/org.tizen.guides/html/native/graphics/creating_opengles_n.htm +++ b/org.tizen.guides/html/native/graphics/creating_opengles_n.htm @@ -114,7 +114,7 @@ elm_glview_render_func_set(glview, draw_glview); /* Deletion callback */ elm_glview_del_func_set(glview, del_glview); -
            +
            1. Set up the initialization callback.

              The initialization callback is called when the GLView is created.

              diff --git a/org.tizen.guides/html/native/internationalization/i18n_n.htm b/org.tizen.guides/html/native/internationalization/i18n_n.htm
              index 7c26226..146678d 100644
              --- a/org.tizen.guides/html/native/internationalization/i18n_n.htm
              +++ b/org.tizen.guides/html/native/internationalization/i18n_n.htm
              @@ -849,7 +849,7 @@ i18n_udatepg_get_best_pattern(udatepg, format, BUF_SIZE, best_pattern, BUF_SIZE,
               
          1. Using a date format: -
              +
              1. To create a date format, use the i18n_udate_create() function.

                As the first and second parameter, specify the formatting style for time and date using the values of the i18n_udate_format_style_e enumeration (in mobile and wearable applications).

                diff --git a/org.tizen.guides/html/native/messaging/email_n.htm b/org.tizen.guides/html/native/messaging/email_n.htm
                index b545a07..e0fd460 100644
                --- a/org.tizen.guides/html/native/messaging/email_n.htm
                +++ b/org.tizen.guides/html/native/messaging/email_n.htm
                @@ -98,7 +98,7 @@ if (error_code != EMAILS_ERROR_NONE)
                 

                The function return code defines whether the message creation succeeded. The EMAIL_ERROR_ACCOUNT_NOT_FOUND error is not related to the email service as such; it occurs if no email account has been configured on the device.

              2. Manage recipients and attachments: -
                  +
                  • Add recipients to the email message one by one. You cannot add lists of recipients in one function call. Each address must be given as a character string with the address type (TO, CC, BCC) declared.

                    @@ -123,7 +123,7 @@ error_code = email_remove_all_attachments(msg);
                     if (error_code != EMAILS_ERROR_NONE)
                         dlog_print(DLOG_INFO, LOG_TAG, "Failed to remove attachments\n");
                     
                  • -
                +
              3. Save the email before sending it:
                diff --git a/org.tizen.guides/html/native/personal/contacts_n.htm b/org.tizen.guides/html/native/personal/contacts_n.htm
                index 173e179..6a09492 100644
                --- a/org.tizen.guides/html/native/personal/contacts_n.htm
                +++ b/org.tizen.guides/html/native/personal/contacts_n.htm
                @@ -3102,7 +3102,7 @@ contacts_record_get_bool(parent_record, _contacts_contact.has_email, &h_emai
                 
                 
              4. Retrieve more record details using a structure:

                -
                  +
                  1. Create the structure.

                    The following example defines the contact_gl_data_t structure for contacts and implements the create function for the structure:

                    @@ -3628,7 +3628,7 @@ int person_id = first_person_id;

                    Set the default properties for the linked person.

                    Set the default properties from one of the associated contacts using the contacts_person_set_default_property() function. The first parameter uses the values of the contacts_person_property_e enumeration (in mobile and wearable applications), which defines the available default properties for a person.

                    For example, to set the person's default phone number based on the number of one of the associated contacts:

                    -
                      +
                      1. Retrieve the contact whose phone number you want to use.

                      2. Retrieve the correct phone number record associated with the contact using the contacts_record_get_child_record_at_p() function.

                      3. Retrieve the phone number ID from the phone number record using the contacts_record_get_int() function with the _contacts_number view.

                      4. @@ -3658,7 +3658,7 @@ error_code = contacts_person_set_default_property(CONTACTS_PERSON_PROPERTY_NUMBE

                        Retrieve the default properties of the linked person using the contacts_person_get_default_property() function.

                        For example, to retrieve the default email address:

                        -
                          +
                          1. Retrieve the ID of the default email record using the contacts_person_get_default_property() function with the CONTACTS_PERSON_PROPERTY_EMAIL property:

                            diff --git a/org.tizen.guides/html/native/personal/oauth_n.htm b/org.tizen.guides/html/native/personal/oauth_n.htm
                            index 2250ef7..c4bb5df 100644
                            --- a/org.tizen.guides/html/native/personal/oauth_n.htm
                            +++ b/org.tizen.guides/html/native/personal/oauth_n.htm
                            @@ -250,7 +250,7 @@ request_auth_code(void)
                             
                            • Request the access token with the authorization code.

                              In the authorization code grant type, instead of requesting authorization directly from the resource owner, the client directs the resource owner to an authorization server, which in turn directs the resource owner back to the client with the authorization code.

                              -
                                +
                                1. Request the authorization code with the oauth2_manager_request_authorization_grant() function. The authorization code is returned in the callback.
                                   void
                                  diff --git a/org.tizen.guides/html/native/security/yaca_n.htm b/org.tizen.guides/html/native/security/yaca_n.htm
                                  index ec50728..5857cd9 100644
                                  --- a/org.tizen.guides/html/native/security/yaca_n.htm
                                  +++ b/org.tizen.guides/html/native/security/yaca_n.htm
                                  @@ -91,7 +91,7 @@
                                   #include <yaca_seal.h>
                                   
                                2. Initialize and clean up the library: -
                                    +
                                    1. Initialize the library.

                                      This function must be called in each thread that uses YACA.

                                      diff --git a/org.tizen.guides/html/native/ui/efl/component_gengrid_mn.htm b/org.tizen.guides/html/native/ui/efl/component_gengrid_mn.htm
                                      index 5050e35..199b5a4 100644
                                      --- a/org.tizen.guides/html/native/ui/efl/component_gengrid_mn.htm
                                      +++ b/org.tizen.guides/html/native/ui/efl/component_gengrid_mn.htm
                                      @@ -60,7 +60,7 @@ gengrid = elm_gengrid_add(parent);
                                       
                                    2. Define the gengrid item class: -
                                        +
                                        1. Create a gengrid item class with the elm_gengrid_item_class_new() function, set a style to the item class, and register the callback functions.

                                          The genlist item class must be freed manually with elm_gengrid_item_class_free() function after all items are appended.

                                          diff --git a/org.tizen.guides/html/native/ui/efl/component_genlist_mn.htm b/org.tizen.guides/html/native/ui/efl/component_genlist_mn.htm
                                          index 4c30c73..8505af7 100644
                                          --- a/org.tizen.guides/html/native/ui/efl/component_genlist_mn.htm
                                          +++ b/org.tizen.guides/html/native/ui/efl/component_genlist_mn.htm
                                          @@ -61,7 +61,7 @@ genlist = elm_genlist_add(parent);
                                           
                                        2. Define the genlist item class: -
                                            +
                                            1. Create a genlist item class with the elm_genlist_item_class_new() function, set a style to the item class, and register callback functions. The genlist item class must be freed manually with the elm_genlist_item_class_free() function after all items are appended.
                                               Elm_Genlist_Item_Class *itc = elm_genlist_item_class_new();
                                              diff --git a/org.tizen.guides/html/native/ui/efl/rotary_events_wn.htm b/org.tizen.guides/html/native/ui/efl/rotary_events_wn.htm
                                              index 1f253fe..2389ec8 100644
                                              --- a/org.tizen.guides/html/native/ui/efl/rotary_events_wn.htm
                                              +++ b/org.tizen.guides/html/native/ui/efl/rotary_events_wn.htm
                                              @@ -88,7 +88,7 @@
                                               
                                              • Implement a rotary event handler.

                                                In the following example, a rotary event causes a log entry to be printed based on the rotation direction.

                                                -
                                                  +
                                                  1. Create the application window and register a rotary event handler:
                                                     static void
                                                    @@ -143,7 +143,7 @@ app_terminate(void *data)
                                                     
                                                  2. Implement a rotary event callback for a normal Evas object.

                                                    In the following example, a rotary event causes the slider value to be adjusted accordingly.

                                                    -
                                                      +
                                                      1. Create the application window and add a slider component to the window:
                                                         static void
                                                        @@ -203,7 +203,7 @@ _rotary_event_cb(void *data, Evas_Object *obj, Eext_Rotary_Event_Info *ev)
                                                         
                                                      2. Implement a rotary event callback for an EFL Extension object.

                                                        In the following example, a rotary event causes the slider value to be adjusted accordingly.

                                                        -
                                                          +
                                                          1. Create the application window, add a conformant to the window, and add a circle surface and slider to the conformant:
                                                             static void
                                                            diff --git a/org.tizen.guides/html/web/media/media_controller_w.htm b/org.tizen.guides/html/web/media/media_controller_w.htm
                                                            index b4a433f..bda6366 100644
                                                            --- a/org.tizen.guides/html/web/media/media_controller_w.htm
                                                            +++ b/org.tizen.guides/html/web/media/media_controller_w.htm
                                                            @@ -239,7 +239,7 @@ mcServerInfo.removePlaybackInfoChangeListener(watcherId);
                                                             
                                                            1. On the client side: -
                                                              1. Define your custom command: +
                                                                1. Define your custom command:
                                                                   var exampleCustomCommandData = {
                                                                       myFilter: 'rock'
                                                                  @@ -270,7 +270,7 @@ mcServerInfo.sendCommand('myPlaylistFilter', sendCommandSuccessCallback, sendCom
                                                                   
                                                              2. On the server side: -
                                                                  +
                                                                  1. Create the MediaControllerReceiveCommandCallback object (in mobile and wearable applications) to define a listener for receiving custom commands from a client:
                                                                    diff --git a/org.tizen.guides/html/web/messaging/push_w.htm b/org.tizen.guides/html/web/messaging/push_w.htm
                                                                    index 17d6e70..ef37d3e 100644
                                                                    --- a/org.tizen.guides/html/web/messaging/push_w.htm
                                                                    +++ b/org.tizen.guides/html/web/messaging/push_w.htm
                                                                    @@ -104,7 +104,7 @@
                                                                         
                                                                  2. Make sure the following requirements are fulfilled:

                                                                    -
                                                                      +
                                                                      1. Internet access

                                                                        To connect to the Tizen push server and receive notifications from it, the target device or emulator must be able to contact any IP address with the port 5223. If you are in an enterprise network, ensure that the proxy setting in your local network allows outgoing traffic destined for this port number.

                                                                      2. Package ID diff --git a/org.tizen.guides/html/web/personal/bookmarks_w.htm b/org.tizen.guides/html/web/personal/bookmarks_w.htm index 0ab6086..3d87427 100644 --- a/org.tizen.guides/html/web/personal/bookmarks_w.htm +++ b/org.tizen.guides/html/web/personal/bookmarks_w.htm @@ -103,7 +103,7 @@ tizen.bookmark.add(developerTizen, folder1);

                                                                        Deleting Bookmarks

                                                                        To create engaging applications with bookmark-related features, you must learn how to delete bookmarks:

                                                                        -
                                                                          +
                                                                          • To remove a bookmark item, use the remove() method of the BookmarkManager interface and specify the bookmark item:

                                                                             tizen.bookmark.remove(tizen);
                                                                            @@ -116,14 +116,14 @@ tizen.bookmark.remove(folder2);
                                                                             
                                                                             tizen.bookmark.remove();
                                                                             
                                                                          • -
                                                                        +

                                              Retrieving the Bookmark List

                                              To create engaging applications with bookmark-related features, you must learn how to retrieve the bookmarks:

                                              -
                                                +
                                                • To retrieve bookmarks only from the root bookmark folder, use the get() method of the BookmarkManager interface without specifying any parameter:

                                                   tizen.bookmark.get();
                                                  @@ -140,7 +140,7 @@ tizen.bookmark.get(folder1);
                                                   
                                                   tizen.bookmark.get(folder1, true);
                                                   
                                                • -
                                              +
                            diff --git a/org.tizen.guides/html/web/w3c/storage/websql_w.htm b/org.tizen.guides/html/web/w3c/storage/websql_w.htm index 53c099b..1362088 100644 --- a/org.tizen.guides/html/web/w3c/storage/websql_w.htm +++ b/org.tizen.guides/html/web/w3c/storage/websql_w.htm @@ -89,10 +89,7 @@

                            Opening a Database Asynchronously

                            -

                            To provide users with SQL database features, you must learn to create and open a SQL database asynchronously:

                            -
                              -
                            1. -

                              Use the openDatabase() method to access a database. If the database does not exist, the method first creates it and then opens it:

                              +

                              To open a database asynchronously, use the openDatabase() method. If the database does not exist, the method first creates it and then opens it:

                               var db;
                               var version = 1.0;
                              @@ -111,8 +108,6 @@ try {
                               	Note
                               	The creation event handler is invoked only once if the database does not exist. There is no event handler for the database opened event.
                               
                              -
                            2. -

                            Source Code

                            For the complete source code related to this use case, see the following file:

                            @@ -174,10 +169,9 @@ sqlTransaction.executeSql('SELECT * FROM tizenTable WHERE id=?', [value]);

                            Accessing SQL Results Asynchronously

                            -

                            To provide users with SQL database features, you must learn to access SQL statement results asynchronously:

                            -
                              -
                            1. -

                              When a SQL statement is executed, its event handler is invoked and returns the result as a sqlResultSet object:

                              +

                              When a SQL statement is executed, its event handler is invoked and returns the result as a sqlResultSet object.

                              + +

                              To access the result:

                              • The result object of the INSERT statement contains the insert ID, which stores the identifier of the added record. If multiple records were inserted, the insert ID contains the ID of the last inserted record:
                                @@ -203,8 +197,6 @@ sqlTransaction.executeSql('SELECT id, title, author FROM books', [], function(sq
                                 
                              -
                            2. -

                            Source Code

                            For the complete source code related to this use case, see the following file:

                            @@ -214,11 +206,7 @@ sqlTransaction.executeSql('SELECT id, title, author FROM books', [], function(sq

                            Handling a Syntax Error Asynchronously

                            -

                            To provide users with SQL database features, you must learn to handle SQL database-related errors asynchronously:

                            -
                              -
                            1. - -

                              Handle a syntax error in the sqlError object:

                              +

                              To handle a syntax error asynchronously, use a sqlError object:

                               sqlTransaction.executeSql('SELECT * FROM notExistingTable', [], function(sqlTransaction, sqlResultSet) {},
                                                         function(sqlTransaction, sqlError) {
                              @@ -232,16 +220,11 @@ sqlTransaction.executeSql('SELECT * FROM notExistingTable', [], function(sqlTran
                               });
                               

                              Other types of errors that can occur are exceptions. The sqlException object has the same fields as the sqlError object but it must be handled in the try - catch block.

                              -
                            2. -
                            -

                            Opening a Database Synchronously

                            -

                            To provide users with SQL database features, you must learn to create and open a SQL database synchronously:

                            +

                            Opening a Database Synchronously

                            -
                              -
                            1. -

                              Use the openDatabaseSync() method to access a database. The method can only be used in the Web Worker context. If the database does not exist, the method first creates it and then opens it:

                              +

                              To open a SQL database synchronously, use the openDatabaseSync() method. The method can only be used in the Web Worker context. If the database does not exist, the method first creates it and then opens it:

                               var databaseSync = null;
                               try {
                              @@ -257,8 +240,7 @@ try {
                               	Note
                               	The creation event handler is invoked only once if the database does not exist. There is no event handle for the database opened event but, in the synchronous database API, no other code is run until the database creation operation is completed.
                               
                              -
                            2. -
                            +

                            Executing SQL Statements Synchronously

                            @@ -306,10 +288,9 @@ var sqlResultSet = sqlTransactionSync.executeSql('SELECT id FROM books WHERE tit

                            Accessing SQL Results Synchronously

                            -

                            To provide users with SQL database features, you must learn to access SQL statement results synchronously:

                            -
                              -
                            1. -

                              When a SQL statement is executed, its event handler is invoked and returns the result as a sqlResultSet object:

                              +

                              When a SQL statement is executed, its event handler is invoked and returns the result as a sqlResultSet object.

                              + +

                              To access the result:

                              • The result object of the INSERT statement contains the insert ID, which stores the identifier of the added record. If multiple records were inserted, the insert ID contains the ID of the last inserted record:
                                @@ -332,15 +313,10 @@ for (i = 0; i < booksNumber; i++) {
                                 
                              -
                            2. -

                            Handling a Syntax Error Synchronously

                            -

                            To provide users with SQL database features, you must learn to handle SQL database-related errors synchronously:

                            -
                              -
                            1. Handle errors in the sqlException object: - +

                              To handle a syntax error synchronously, use a sqlException object:

                               try {
                                   databaseSync.transaction(function(sqlTransactionSync) {
                              @@ -352,8 +328,6 @@ try {
                                                Error code: ' + sqlException.code + ' (' + sqlException.message + ').');
                               }
                               
                              -
                            2. -
                            Note diff --git a/org.tizen.studio/html/common_tools/connection_explorer_view.htm b/org.tizen.studio/html/common_tools/connection_explorer_view.htm index c7221cc..22fbd8c 100644 --- a/org.tizen.studio/html/common_tools/connection_explorer_view.htm +++ b/org.tizen.studio/html/common_tools/connection_explorer_view.htm @@ -62,7 +62,7 @@
                        1. Testing applications on an emulator that emulates a real device as a software component installed on the host computer

                          To start the emulator:

                          -
                            +
                            1. Click the Emulator Manager icon in the Connection Explorer view toolbar, select an emulator in the Emulator Manager, and click Launch.

                              The emulator icon (Emulator icon) is displayed in the Connection Explorer view after the emulator boots successfully.

                            2. Select the emulator device in the Connection Explorer view. It is ready to be run and used to test your project.
                            3. diff --git a/org.tizen.studio/html/common_tools/da_ui_hierarchy_n.htm b/org.tizen.studio/html/common_tools/da_ui_hierarchy_n.htm index 7ac07e4..b975f64 100644 --- a/org.tizen.studio/html/common_tools/da_ui_hierarchy_n.htm +++ b/org.tizen.studio/html/common_tools/da_ui_hierarchy_n.htm @@ -42,13 +42,13 @@

                              The UI Hierarchy tab of the Dynamic Analyzer shows the information about the EFL UI objects (Evas, Elementary, and Edje). You can see the hierarchy relationship of all UI objects and detailed information about each UI object.

                              The tab consists of the following views:

                              -
                                +
                                • Hierarchy Tree view shows the relationship of UI objects in a tree format.
                                • Overview shows the outline of the hierarchy tree.
                                • UI Object view shows basic information about the UI object selected from the hierarchy tree.
                                • Properties table shows the properties of the UI object selected from the hierarchy tree.
                                • Layout view shows a block representation of your application.
                                • -
                              +

                              Figure: UI hierarchy analysis

                              UI hierarchy analysis

                              diff --git a/org.tizen.studio/html/common_tools/emulator_manager.htm b/org.tizen.studio/html/common_tools/emulator_manager.htm index f7ae5e7..b220fa7 100644 --- a/org.tizen.studio/html/common_tools/emulator_manager.htm +++ b/org.tizen.studio/html/common_tools/emulator_manager.htm @@ -161,13 +161,13 @@
                            4. To create a new template:
                              • To create a new template from the beginning: -
                                1. Click +.
                                2. +
                                  1. Click +.
                                  2. Define the features for the template.
                                  3. Click OK.

                                    The new template is added to the list with a settings icon.

                                3. To create a new template based on an existing one: -
                                  1. Select the template you want to clone.
                                  2. +
                                    1. Select the template you want to clone.
                                    2. Click clone template (Clone icon).
                                    3. Make the desired changes.
                                    4. Click OK. diff --git a/org.tizen.studio/html/native_tools/ui_project_migration_combi_n.htm b/org.tizen.studio/html/native_tools/ui_project_migration_combi_n.htm index 3afe66a..634efd9 100644 --- a/org.tizen.studio/html/native_tools/ui_project_migration_combi_n.htm +++ b/org.tizen.studio/html/native_tools/ui_project_migration_combi_n.htm @@ -56,7 +56,7 @@
                                      1. Create the GLView11Cube sample application project:

                                        -
                                          +
                                          1. In the Tizen Studio, go to File > New > Tizen Project.
                                          2. Select the Sample project type, Mobile v2.4 profile and version, and the Native Application application type.
                                          3. In the list of samples, select Graphics > GLView11Cube. @@ -67,7 +67,7 @@
                                          4. Port the GLView11Cube screen to the SettingsUIwithUIB project:

                                            -
                                              +
                                              1. Copy the related files in the inc, src, and res subfolders.

                                                Copying files from the GLView11Cube project

                                              2. -- 2.7.4