From fd1757f300f6dc958a6b4d03c727df8796d693c2 Mon Sep 17 00:00:00 2001 From: Nagappan Alagappan Date: Fri, 16 Aug 2013 16:57:50 -0700 Subject: moin2mdwn: convert page remap --- remap.mdwn | 30 ++++++++++++++++++++++++++++++ remap.moin | 23 ----------------------- 2 files changed, 30 insertions(+), 23 deletions(-) create mode 100644 remap.mdwn delete mode 100644 remap.moin diff --git a/remap.mdwn b/remap.mdwn new file mode 100644 index 0000000..10a8ad4 --- /dev/null +++ b/remap.mdwn @@ -0,0 +1,30 @@ + + +## Syntax + +remap ('', '') + +undoremap ('', '') + + +## 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 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 [[remap.c|http://cvs.freedesktop.org/ldtp/pyldtp/remap.c?view=markup]] + + +## Examples + +For handling widgets created at runtime in the New Appointment creation dialog in Evolution Calendar we can use the remap function as mentioned below. + +remap ('evolution', 'dlgAppointment-Nosummary') + +. . + +undoremap ('evolution', 'dlgAppointment-Nosummary') diff --git a/remap.moin b/remap.moin deleted file mode 100644 index d43a756..0000000 --- a/remap.moin +++ /dev/null @@ -1,23 +0,0 @@ -== Syntax == -remap ('', '') - -undoremap ('', '') - -== 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 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 [[http://cvs.freedesktop.org/ldtp/pyldtp/remap.c?view=markup|remap.c]] - -== Examples == - -For handling widgets created at runtime in the New Appointment creation dialog in Evolution Calendar we can use the remap function as mentioned below. - -remap ('evolution', 'dlgAppointment-Nosummary') - -. -. - -undoremap ('evolution', 'dlgAppointment-Nosummary') -- cgit v1.2.3