Appmap generation

From LDTP

NOTE: This site is no longer maintained, Please visit http://ldtp.freedesktop.org for latest updates

Application mapping in short is called appmap. This tool can generate appmap for any application (If application is built with accessibility). The generated appmap contains the list of components such as menu, menu_item, push_button, dialog, radio_menu_items, tables, check_box, text, page_tab, page_tab_list, spin_button, radio_button and so on. It also defines its relationships with other components of an appliction.

Ref: Class keywords

The following is gedit sample appmap

  [gedit]
  gedit={class=frame, app_name=gedit}
  mnuFile={class=menu, label=File}
  mnuNew={class=menu_item, label=New}
  mnuOpen={class=menu_item, label=Open...}
  mnuOpenLocation={class=menu_item, label=Open Location...}
  .
  .
  .


1. appmap_gen.c:

   The 2 main tasks appmap_gen.c performs are: 
     i. Firstly it gets the accessible handle of the given application.
     (For Eg. To get the accessible handle of Gedit). This includes functions to 
         * Get the SPI handle of desktop
         * Get total count of child processes in the desktop
         * Traverse the list of application handle and if application name matches, then return 
           the handle.
     ii. Secondly get accessible handle of the given object.

2. utils.c

    The 2 main tasks utils.c performs are:
       i. Firstly it strips the white spaces associated with the component (Label)
       ii. Secondly it strips the delimiters associated with the component (Label)
       
       ( For example consider the menu_item "Open Location..." , to represent this in our appmap
       we represent it as "mnuOpenLocation" )

3. parser.c

TODO