ARB
|
#include <cb.h>
Go to the source code of this file.
Functions | |
DECLARE_CBTYPE_FVV_AND_BUILDERS (ResultHandler, GB_ERROR, const char *) | |
void | AWT_activate_prompt (const char *title, const char *prompt, const char *defaultResult, const char *button, const ResultHandler &handle_result, const char *helpfile=NULp, const char *srt=NULp) |
void AWT_activate_prompt | ( | const char * | title, |
const char * | prompt, | ||
const char * | defaultResult, | ||
const char * | button, | ||
const ResultHandler & | handle_result, | ||
const char * | helpfile = NULp , |
||
const char * | srt = NULp |
||
) |
pops up an text input prompter
(macro-capable replacement for aw_input)
title | window title |
prompt | question or request shown above input field |
defaultResult | default value for input field |
button | text shown on "ENTER" button (maxlen: 7) |
handle_result | called with entered result (even if empty) |
helpfile | context sensitive helpfile (defaults to NULp) |
srt | SRT command will be applied to userinput (defaults to NULp; should not be dynamic) Use e.g. to correct name-prefixes like "tree_" or "ali_" |
Note that all activated prompts use the same window. Activating a second prompt (while the user did not answer the first one), will hide the first prompt.
Definition at line 62 of file AWT_prompt.cxx.
References AW_POPDOWN(), AW_REPOS_TO_MOUSE, AW_RESIZE_USER, AW_root::awar(), AWAR_PROMPT_BUTTON, AWAR_PROMPT_ERROR, AWAR_PROMPT_INPUT, AWAR_PROMPT_TEXT, AW_root::awar_string(), clear_input_cb(), PromptData::handler, PromptData::help_button, PromptData::helpfile, NULp, ok_pressed(), run_help_cb(), AW_root::set_active(), AW_awar::set_srt(), AW_root::SINGLETON, and AW_awar::write_string().
Referenced by askCopyMoveRuleset_cb(), config_rename_cb(), copy_rename_cb(), create_ali_cb(), createCopy_ClrTransTab_cb(), experiment_copy_cb(), experiment_create_cb(), experiment_rename_cb(), extended_rename_cb(), gene_copy_cb(), gene_extract_cb(), gene_rename_cb(), species_create_cb(), and species_rename_cb().