|
Last change
on this file was
7177,
checked in by westram, 15 years ago
|
|
merges [7054] [7055] [7057] [7058] [7059] [7062] from refactor
- added GB_unfold_path()
- added GB_install_getenv_hook(). May override expansion of environment variables.
- added unit tests for AW_unfold_path
- rewrote AW_unfold_path() using GB_unfold_path() + hook to expand symbolic directories (PWD and PT_SERVER_HOME)
- replaced duplicate of AW_unfold_path() with different behavior in SL/SEQIO by calling GB_unfold_path()
- removed default argument "PWD" from AW_unfold_path
- swapped argument order of GB_unfold_path and AW_unfold_path to "(dir,file)"
- Tests for path functions
- GB_path_in_ARBLIB/ARBHOME
- versions with one argument
- using GB_unfold_path
- replaced AW_unfold_path / GB_unfold_path ("ARBHOME") with GB_path_in_ARBHOME
- replaced GB_path_in_ARBHOME("lib/") by GB_path_in_ARBLIB
- GB_canonical_path (former GB_get_full_path)
- old version had undefined behavior (which was working in many cases)
- now "never" return NULL, instead it may return a non-canonical path (in case of non-existing directories)
- assert that param 'pwd_envar' to GB_unfold_path() really is the name of an envar (to avoid passing a path by mistake)
|
|
File size:
1.6 KB
|
| Line | |
|---|
| 1 | // ================================================================ // |
|---|
| 2 | // // |
|---|
| 3 | // File : aw_file.hxx // |
|---|
| 4 | // Purpose : // |
|---|
| 5 | // // |
|---|
| 6 | // Coded by Ralf Westram (coder@reallysoft.de) in February 2010 // |
|---|
| 7 | // Institute of Microbiology (Technical University Munich) // |
|---|
| 8 | // http://www.arb-home.de/ // |
|---|
| 9 | // // |
|---|
| 10 | // ================================================================ // |
|---|
| 11 | |
|---|
| 12 | #ifndef AW_FILE_HXX |
|---|
| 13 | #define AW_FILE_HXX |
|---|
| 14 | |
|---|
| 15 | #ifndef AW_BASE_HXX |
|---|
| 16 | #include "aw_base.hxx" |
|---|
| 17 | #endif |
|---|
| 18 | |
|---|
| 19 | char *AW_unfold_path(const char *pwd_envar, const char *path); |
|---|
| 20 | char *AW_extract_directory(const char *path); |
|---|
| 21 | |
|---|
| 22 | // ----------------------------- |
|---|
| 23 | // file selection boxes |
|---|
| 24 | |
|---|
| 25 | void AW_create_fileselection_awars(AW_root *awr, const char *awar_base, |
|---|
| 26 | const char *directory, const char *filter, const char *file_name, |
|---|
| 27 | AW_default default_file = AW_ROOT_DEFAULT, bool resetValues = false); |
|---|
| 28 | |
|---|
| 29 | void AW_create_fileselection(AW_window *aws, const char *awar_prefix, const char *at_prefix = "", const char *pwd = "PWD", bool show_dir = true, bool allow_wildcards = false); |
|---|
| 30 | void AW_refresh_fileselection(AW_root *awr, const char *awar_prefix); |
|---|
| 31 | |
|---|
| 32 | char *AW_get_selected_fullname(AW_root *awr, const char *awar_prefix); |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | #else |
|---|
| 37 | #error aw_file.hxx included twice |
|---|
| 38 | #endif // AW_FILE_HXX |
|---|
Note: See
TracBrowser
for help on using the repository browser.