source: tags/arb-6.0/WINDOW/aw_file.hxx

Last change on this file was 11968, checked in by westram, 10 years ago
File size: 1.7 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
19char *AW_unfold_path(const char *pwd_envar, const char *path);
20char *AW_extract_directory(const char *path);
21
22// -----------------------------
23//      file selection boxes
24
25enum DirDisplay { MULTI_DIRS, ANY_DIR };
26
27void AW_create_fileselection_awars(AW_root *awr, const char *awar_base, const char *directory, const char *filter, const char *file_name);
28
29void AW_create_fileselection(AW_window *aws, const char *awar_prefix, const char *at_prefix, const  char *pwd, DirDisplay disp_dirs, bool allow_wildcards);
30inline void AW_create_standard_fileselection(AW_window *aws, const char *awar_prefix) {
31    AW_create_fileselection(aws, awar_prefix, "", "PWD", ANY_DIR, false);
32}
33void AW_refresh_fileselection(AW_root *awr, const char *awar_prefix);
34
35char *AW_get_selected_fullname(AW_root *awr, const char *awar_prefix);
36void AW_set_selected_fullname(AW_root *awr, const char *awar_prefix, const char *to_fullname);
37
38#else
39#error aw_file.hxx included twice
40#endif // AW_FILE_HXX
Note: See TracBrowser for help on using the repository browser.