summaryrefslogtreecommitdiff
path: root/setedit/settvuti/include/fileopen.h
blob: 3765d3e6a7f8cef57425d412c216c249b2f8394a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* Copyright (C) 1996-2004 by Salvador E. Tropea (SET),
   see copyrigh file for details */
#ifndef FILEOPEN_H_INCLUDED
#define FILEOPEN_H_INCLUDED
extern int GenericFileDialog(const char *title, char *file, char *mask, int histID,
                             int buttons, char *dir, unsigned flags, int ctx,
                             TRect &r);
extern int FileOpenDialog(char *title, char *file, int historyID,
                          unsigned flags=0);
extern int FileSaveDialog(char *title, char *file, int historyID,
                          unsigned flags=0);
extern void SetDirForOpen(char *s);
extern void SetDirForSave(char *s);
extern char *GetLastMaskUsed();
extern void SetConfigDialogFunc(int (*func)());
extern char *ChooseDir(const char *startDir=NULL);

const int cmFileDialogFileSelected=0x2210;
const int cmHomeDir=0x2211;
const int cmFileOpenOptions=0x2212;
const int
hcGenOpenFile =0x220F,
hcFileOpen    =0x2210,
hcFileSave    =0x2211,
hcOpenInfo    =0x2212,
hcSaveBlock   =0x2213,
hcConfigFiles =0x2214,
hcProjectFiles=0x2215,
hcOpenMP3     =0x2216,
hcSaveMP3     =0x2217,
hcGenChDir    =0x2218,
hcSelTagFile  =0x2219,
hcExpPrjItems =0x221A;

// This flag allows to select various files without living the dialog
const unsigned fdMultipleSel=0x10000,fdDialogForSave=0x80000000;
const unsigned fdNoMask     =0x20000;
#endif