ARB
|
#include <aw_window.hxx>
#include <aw_global.hxx>
#include <aw_file.hxx>
#include <aw_awar.hxx>
#include "aw_root.hxx"
#include "aw_question.hxx"
#include "aw_advice.hxx"
#include "aw_msg.hxx"
#include "aw_select.hxx"
#include "aw_window_Xm.hxx"
#include <arbdbt.h>
#include <arb_strarray.h>
#include <deque>
#include <string>
#include <algorithm>
Go to the source code of this file.
Macros | |
#define | AW_INPUT_AWAR "tmp/input/string" |
#define | AW_INPUT_TITLE_AWAR "tmp/input/title" |
#define | AW_FILE_SELECT_BASE "tmp/file_select" |
#define | AW_FILE_SELECT_DIR_AWAR AW_FILE_SELECT_BASE "/directory" |
#define | AW_FILE_SELECT_FILE_AWAR AW_FILE_SELECT_BASE "/file_name" |
#define | AW_FILE_SELECT_FILTER_AWAR AW_FILE_SELECT_BASE "/filter" |
#define | AW_FILE_SELECT_TITLE_AWAR AW_FILE_SELECT_BASE "/title" |
#define | INPUT_SIZE 50 |
#define | MAXBUTTONSPERLINE 5 |
Functions | |
void | message_cb (AW_window *, int result) |
unsigned | aw_message_timer_listen_event (AW_root *, AW_window *aww) |
static void | create_input_awars (AW_root *aw_root) |
static void | create_fileSelection_awars (AW_root *aw_root) |
static void | input_history_insert (const char *str, bool front) |
void | input_history_cb (AW_window *aw, int mode) |
void | input_cb (AW_window *aw, int buttonNr) |
void | file_selection_cb (AW_window *aw, int ok_cancel_flag) |
static AW_window_message * | new_input_window (AW_root *root, const char *title, const char *buttons) |
char * | aw_input (const char *title, const char *prompt, const char *default_input) |
char * | aw_input (const char *prompt, const char *default_input) |
char * | aw_modal_file_selection (const char *title, const char *dir, const char *def_name, const char *suffix) |
Variables | |
int | aw_message_cb_result |
static char * | aw_input_cb_result = NULp |
static deque< string > | input_history |
#define AW_INPUT_AWAR "tmp/input/string" |
Definition at line 56 of file AW_modal.cxx.
Referenced by aw_input(), create_input_awars(), input_cb(), input_history_cb(), and new_input_window().
#define AW_INPUT_TITLE_AWAR "tmp/input/title" |
Definition at line 57 of file AW_modal.cxx.
Referenced by aw_input(), create_input_awars(), and new_input_window().
#define AW_FILE_SELECT_BASE "tmp/file_select" |
Definition at line 59 of file AW_modal.cxx.
Referenced by aw_modal_file_selection().
#define AW_FILE_SELECT_DIR_AWAR AW_FILE_SELECT_BASE "/directory" |
Definition at line 60 of file AW_modal.cxx.
Referenced by aw_modal_file_selection(), and create_fileSelection_awars().
#define AW_FILE_SELECT_FILE_AWAR AW_FILE_SELECT_BASE "/file_name" |
Definition at line 61 of file AW_modal.cxx.
Referenced by aw_modal_file_selection(), create_fileSelection_awars(), and file_selection_cb().
#define AW_FILE_SELECT_FILTER_AWAR AW_FILE_SELECT_BASE "/filter" |
Definition at line 62 of file AW_modal.cxx.
Referenced by aw_modal_file_selection(), and create_fileSelection_awars().
#define AW_FILE_SELECT_TITLE_AWAR AW_FILE_SELECT_BASE "/title" |
Definition at line 63 of file AW_modal.cxx.
Referenced by aw_modal_file_selection(), and create_fileSelection_awars().
#define INPUT_SIZE 50 |
Definition at line 173 of file AW_modal.cxx.
Referenced by aw_input(), and new_input_window().
#define MAXBUTTONSPERLINE 5 |
Referenced by new_input_window().
Definition at line 33 of file AW_modal.cxx.
References EXIT_FAILURE, and result.
Referenced by aw_question(), and AW_cb::run_callbacks().
Definition at line 40 of file AW_modal.cxx.
References AW_MESSAGE_LISTEN_DELAY, fflush(), and AW_window::is_shown().
Referenced by aw_input(), aw_modal_file_selection(), and aw_question().
|
static |
Definition at line 65 of file AW_modal.cxx.
References AW_INPUT_AWAR, AW_INPUT_TITLE_AWAR, AW_ROOT_DEFAULT, and AW_root::awar_string().
Referenced by aw_input().
|
static |
Definition at line 70 of file AW_modal.cxx.
References AW_FILE_SELECT_DIR_AWAR, AW_FILE_SELECT_FILE_AWAR, AW_FILE_SELECT_FILTER_AWAR, AW_FILE_SELECT_TITLE_AWAR, AW_ROOT_DEFAULT, and AW_root::awar_string().
Referenced by aw_modal_file_selection().
|
static |
Definition at line 97 of file AW_modal.cxx.
References GBS_global_string(), and s.
Referenced by aw_input(), and input_history_cb().
Definition at line 121 of file AW_modal.cxx.
References AW_INPUT_AWAR, AW_root::awar(), GBS_global_string(), AW_window::get_root(), input_history_insert(), AW_awar::read_string(), s, and AW_awar::write_string().
Referenced by new_input_window(), and AW_cb::run_callbacks().
Definition at line 151 of file AW_modal.cxx.
References AW_INPUT_AWAR, AW_root::awar(), AW_window::get_root(), NULp, and AW_awar::read_as_string().
Referenced by new_input_window().
Definition at line 162 of file AW_modal.cxx.
References AW_FILE_SELECT_FILE_AWAR, AW_root::awar(), AW_window::get_root(), NULp, and AW_awar::read_as_string().
Referenced by aw_modal_file_selection(), and AW_cb::run_callbacks().
|
static |
Definition at line 175 of file AW_modal.cxx.
References AW_window::at(), AW_window::at_newline(), AW_window::auto_space(), aw_assert, AW_INPUT_AWAR, AW_INPUT_TITLE_AWAR, AW_window::button_length(), AW_window::callback(), AW_window::create_button(), AW_window::create_input_field(), GBT_split_string(), AW_window_message::init(), input_cb(), input_history_cb(), INPUT_SIZE, AW_window::label_length(), MAXBUTTONSPERLINE, NULp, ConstStrArray::replace(), and CharPtrArray::size().
Referenced by aw_input().
Definition at line 251 of file AW_modal.cxx.
References AW_root::add_timed_callback_never_disabled(), aw_assert, AW_INPUT_AWAR, aw_input_cb_result, AW_INPUT_TITLE_AWAR, AW_MESSAGE_LISTEN_DELAY, aw_message_timer_listen_event(), AW_root::awar(), create_input_awars(), AW_root::disable_callbacks, GB_get_transaction_level(), AW_awar::gb_var, AW_window::hide(), input_history_insert(), INPUT_SIZE, new_input_window(), NULp, AW_root::process_events(), AW_window::set_window_title(), AW_window::show_modal(), AW_root::SINGLETON, AW_window::window_fit(), and AW_awar::write_string().
Referenced by aw_input(), change_constraints(), copy_SAI_cb(), copy_SAI_to_species_cb(), ED4_set_col_stat_threshold(), edit_SAI_description(), group_species(), MERGE_sequences_simple(), nt_create_configuration(), NT_create_sai_from_pfold(), NT_edit_bootstrap(), nt_rename_configuration(), NT_scale_tree(), rename_SAI_cb(), SEC_rename_structure(), and AWT_graphic_tree::toggle_group().
Definition at line 303 of file AW_modal.cxx.
References aw_input().
char* aw_modal_file_selection | ( | const char * | title, |
const char * | dir, | ||
const char * | def_name, | ||
const char * | suffix | ||
) |
Definition at line 310 of file AW_modal.cxx.
References AW_root::add_timed_callback_never_disabled(), AW_create_standard_fileselection(), AW_FILE_SELECT_BASE, AW_FILE_SELECT_DIR_AWAR, AW_FILE_SELECT_FILE_AWAR, AW_FILE_SELECT_FILTER_AWAR, AW_FILE_SELECT_TITLE_AWAR, aw_input_cb_result, AW_MESSAGE_LISTEN_DELAY, aw_message_timer_listen_event(), AW_root::awar(), create_fileSelection_awars(), AW_root::disable_callbacks, file_selection_cb(), GBS_eval_env(), NULp, AW_root::process_events(), AW_root::SINGLETON, and AW_awar::write_string().
int aw_message_cb_result |
Definition at line 31 of file AW_modal.cxx.
Referenced by aw_question().
Definition at line 54 of file AW_modal.cxx.
Referenced by aw_input(), and aw_modal_file_selection().
|
static |
Definition at line 81 of file AW_modal.cxx.