fix compile errors
[wdl/wdl-ol.git] / WDL / filebrowse.h
blobca7a6fad6c1baaeeb7049a20b1c42d84c2606ca0
1 #ifndef _WDL_FILEBROWSE_H_
2 #define _WDL_FILEBROWSE_H_
4 #ifdef _WIN32
5 #include <windows.h>
6 #else
7 #include "swell/swell.h"
8 #endif
11 bool WDL_ChooseDirectory(HWND parent, const char *text, const char *initialdir, char *fn, int fnsize, bool preservecwd);
12 bool WDL_ChooseFileForSave(HWND parent,
13 const char *text,
14 const char *initialdir,
15 const char *initialfile,
16 const char *extlist,
17 const char *defext,
18 bool preservecwd,
19 char *fn,
20 int fnsize,
21 const char *dlgid=NULL,
22 void *dlgProc=NULL,
23 #ifdef _WIN32
24 HINSTANCE hInstance=NULL
25 #else
26 struct SWELL_DialogResourceIndex *reshead=NULL
27 #endif
31 char *WDL_ChooseFileForOpen(HWND parent,
32 const char *text,
33 const char *initialdir,
34 const char *initialfile,
35 const char *extlist,
36 const char *defext,
38 bool preservecwd,
39 bool allowmul,
41 const char *dlgid=NULL,
42 void *dlgProc=NULL,
43 #ifdef _WIN32
44 HINSTANCE hInstance=NULL
45 #else
46 struct SWELL_DialogResourceIndex *reshead=NULL
47 #endif
51 // allowmul=1: multi-selection in same folder,
52 // the double NULL terminated return value of WDL_ChooseFileForOpen2 is like:
53 // "some/single/path\0bla1.txt\0bla2.txt\0bla3.txt\0\0"
54 // allowmul=2: multi-selection with multipath support (vista+)
55 // the double NULL terminated return value of WDL_ChooseFileForOpen2 is like:
56 // "\0/some/path1/bla1.txt\0/some/path2/bla2.txt\0/some/path3/bla3.txt\0\0"
57 char *WDL_ChooseFileForOpen2(HWND parent,
58 const char *text,
59 const char *initialdir,
60 const char *initialfile,
61 const char *extlist,
62 const char *defext,
64 bool preservecwd,
65 int allowmul,
67 const char *dlgid=NULL,
68 void *dlgProc=NULL,
69 #ifdef _WIN32
70 HINSTANCE hInstance=NULL
71 #else
72 struct SWELL_DialogResourceIndex *reshead=NULL
73 #endif
77 #endif