Logo Search packages:      
Sourcecode: ldtp-doc version File versions  Download package

remap

Syntax

remap ('<window name>'[, '<component name>'])

undoremap ('<application-name>', '<dialog name>')

Description

We can handle dynamically created widgets (meaning widgets created at run time) using this remap function. Calling remap will generate appmap for the given dialog at run time and update the hash table. Then we can access the new widgets. But please make sure to call undoremap() once the required functions are performed so that the hash table will be reverted back to its original state. The reason for having undoremap() is that subsequent calls to remap() might corrupt the hash table containg the appmap entries.

Please not that the <application-name> should be same as the one given as the commmand-line argument for appmap generation.

Implementation

It uses the same logic that appmap module uses to generate appmap. Please refer to the following link for the source code of the remap functionality

Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/remap.c

Example

remap ('dlggeditPreferences') # Remaps the complete gedit preferences dialog

remap ('dlggeditPreferences', 'ptabView') # Remaps all the controls under page tab with the name View of gedit Preferences dialog.

. .

undoremap ('evolution', 'dlgAppointment-Nosummary')

Author:
Premkumar J <prem.jothimani@gmail.com>

Generated by  Doxygen 1.6.0   Back to index