ARB
|
#include "aw_base.hxx"
Go to the source code of this file.
Enumerations | |
enum | DirDisplay { MULTI_DIRS, ANY_DIR } |
Functions | |
char * | AW_unfold_path (const char *pwd_envar, const char *path) |
char * | AW_extract_directory (const char *path) |
void | AW_create_fileselection_awars (AW_root *awr, const char *awar_base, const char *directory, const char *filter, const char *file_name) |
void | AW_create_fileselection (AW_window *aws, const char *awar_prefix, const char *at_prefix, const char *pwd, DirDisplay disp_dirs, bool allow_wildcards) |
void | AW_create_standard_fileselection (AW_window *aws, const char *awar_prefix) |
void | AW_refresh_fileselection (AW_root *awr, const char *awar_prefix) |
char * | AW_get_selected_fullname (AW_root *awr, const char *awar_prefix) |
void | AW_set_selected_fullname (AW_root *awr, const char *awar_prefix, const char *to_fullname) |
enum DirDisplay |
Enumerator | |
---|---|
MULTI_DIRS | |
ANY_DIR |
Definition at line 25 of file aw_file.hxx.
create a full path
Definition at line 51 of file AW_file.cxx.
References expand_symbolic_directories(), GB_install_getenv_hook(), GB_unfold_path(), and result.
Referenced by check_argument_for_mode(), File_selection::filename_changed(), and File_selection::fill().
Definition at line 59 of file AW_file.cxx.
Referenced by check_argument_for_mode(), and read_import_format().
void AW_create_fileselection_awars | ( | AW_root * | awr, |
const char * | awar_base, | ||
const char * | directory, | ||
const char * | filter, | ||
const char * | file_name | ||
) |
Definition at line 72 of file AW_file.cxx.
References aw_assert, aw_message(), AW_ROOT_DEFAULT, AW_root::awar_string(), error(), GB_create_directory(), GB_is_directory(), GBS_global_string(), GBT_split_string(), CharPtrArray::size(), SPLIT_DROPEMPTY, and AW_awar::write_string().
Referenced by awt_create_load_box(), create_awars(), create_export_awars(), create_export_nds_awars(), create_fileselection_and_name_awars(), create_import_awars(), create_load_box_for_selection_lists(), create_macro_variables(), create_save_box_for_selection_lists(), create_trees_var(), DI_create_matrix_variables(), ED4_create_search_awars(), GDE_menuitem_cb(), initXferAwars(), NT_create_colstat_2_gnuplot_window(), and startup_gui().
void AW_create_fileselection | ( | AW_window * | aws, |
const char * | awar_prefix, | ||
const char * | at_prefix, | ||
const char * | pwd, | ||
DirDisplay | disp_dirs, | ||
bool | allow_wildcards | ||
) |
Create a file selection box, this box needs 3 AWARS:
(Note: The function AW_create_fileselection_awars() can be used to create them)
the "$awar_prefix/file_name" contains the full filename Use AW_get_selected_fullname() to read it.
The items are placed at
if disp_dirs == ANY_DIR, then show directories and files if disp_dirs == MULTI_DIRS, then only show files, but from multiple directories
pwd is the name of a 'shell environment variable' which indicates the base directory (e.g. 'PWD' or 'ARBHOME')
Definition at line 870 of file AW_file.cxx.
References File_selection::create_gui_elements(), fileselection_filename_changed_cb(), fill_fileselection_cb(), AW_window::get_root(), NULp, and selbox_install_autorefresh().
Referenced by AW_create_standard_fileselection(), AWTI_open_import_window(), create_AWTC_export_window(), create_load_box_for_selection_lists(), popup_macro_window(), and popup_ruleset_admin_window().
Definition at line 30 of file aw_file.hxx.
References ANY_DIR, and AW_create_fileselection().
Referenced by aw_modal_file_selection(), awt_create_load_box(), AWT_popup_sec_export_window(), AWT_popup_tree_export_window(), create_nds_export_window(), create_save_box_for_selection_lists(), create_tree_export_window(), create_tree_import_window(), DI_create_save_matrix_window(), GDE_create_filename_browser_window(), loadsave_search_parameters(), MG_create_save_as_window(), NT_create_colstat_2_gnuplot_window(), nt_create_intro_window(), NT_create_save_as(), NT_create_save_quick_as_window(), and SEC_importExport().
Definition at line 944 of file AW_file.cxx.
References AW_root::awar(), GBS_global_string(), and AW_awar::touch().
Referenced by delete_macro_cb(), di_save_matrix_cb(), export_go_cb(), export_nds_cb(), MG_save_cb(), MG_save_quick_result_cb(), NT_save_as_cb(), NT_save_quick_as_cb(), NT_save_quick_cb(), refresh_fts_selbox(), save_list_cb(), start_macro_cb(), and tree_save_cb().
Definition at line 906 of file AW_file.cxx.
References aw_assert, AW_root::awar(), AW_root::awar_no_error(), AW_root::awar_string(), GB_concat_full_path(), GB_getcwd(), GBS_global_string(), GBS_global_string_copy(), AW_awar::read_string(), and AW_awar::write_string().
Referenced by canvas_to_printer(), canvas_to_xfig_and_run_xfig(), delete_macro_cb(), edit_macro_cb(), exec_macro_cb(), fts_filesel_changed_cb(), load_list_cb(), ReplaceArgs(), save_list_cb(), start_macro_cb(), and RecordingMacro::write_action().
Definition at line 940 of file AW_file.cxx.
References AW_root::awar(), GBS_global_string(), and AW_awar::write_string().
Referenced by macro_execution_finished(), and selected_fts_changed_cb().