Ticket #179 (new task)
No macro playback for modal windows
| Reported by: | westram | Owned by: | devel |
|---|---|---|---|
| Priority: | minor | Component: | Library (GUI) |
| Version: | SVN | Keywords: | macros |
| Cc: |
Description (last modified by westram) (diff)
Macros do not work with modal dialogs.
Example:
BIO::remote_action($gb_main,"ARB_NT","selection_admin"); BIO::remote_action($gb_main,"ARB_NT","SPECIES_SELECTIONS/STORE"); BIO::remote_awar($gb_main,"ARB_NT","tmp/input/string","bla"); BIO::remote_action($gb_main,"ARB_NT","CREATE_CONFIGURATION/OK"); BIO::remote_action($gb_main,"ARB_NT","SPECIES_SELECTIONS/CLOSE");
Execution hangs in "SPECIES_SELECTIONS/STORE" and waits for the user to enter a configname.
Solutions:
- dont use modal dialogs (sic)
- add "Never ask again" toggles to modal question windows
- when selected, store next answer as default answer
- add "Again ask me everything" to Properties menu
- enhance way actions are recorded (not sure whether this may work):
- when execution is inside a callback during macro recording, record differently, e.g.
BIO::remote_modal_awar($gb_main,"ARB_NT","tmp/input/string","bla"); BIO::remote_modal_action($gb_main,"ARB_NT","CREATE_CONFIGURATION/OK");
- write these actions before the callback itself
- when executing BIO::remote_modal_...(), don't execute, just put the commands to some FIFO
- when inside a modal loop and no events wait, lookup that FIFO and execute first commands from there. repeat.
- when execution of normal remote_action/remote_awar ends, clear the FIFO
- when execution is inside a callback during macro recording, record differently, e.g.
(see also #63)
Change History
Note: See
TracTickets for help on using
tickets.
