23 #ifndef _LAX_FILEDIALOG_H
24 #define _LAX_FILEDIALOG_H
26 #include <lax/rowframe.h>
27 #include <lax/menuinfo.h>
28 #include <lax/lineinput.h>
29 #include <lax/menuselector.h>
30 #include <lax/filepreviewer.h>
31 #include <lax/button.h>
34 #define FILES_GLOBAL_BOOKMARK (1<<15)
36 #define FILES_MINIMAL (1<<16)
37 #define FILES_NO_BOOKMARKS (1<<17)
38 #define FILES_DETAILS (1<<18)
39 #define FILES_NO_FOLLOW_LINKS (1<<19)
41 #define FILES_FILES_ONLY (1<<20)
48 #define FILES_FROM_ONE_DIR (1<<21)
49 #define FILES_NEW (1<<22)
50 #define FILES_SELECT_DIR (1<<23)
51 #define FILES_OPEN_ONE (1<<24)
52 #define FILES_OPEN_MANY (1<<25)
53 #define FILES_OPENING ((1<<21)|(1<<22)|(1<<23)|(1<<24)|(1<<25))
56 #define FILES_SAVE (1<<26)
57 #define FILES_SAVE_AS (1<<27)
58 #define FILES_ASK_TO_OVERWRITE (1<<28)
59 #define FILES_SAVING ((1<<26)|(1<<27)|(1<<28))
62 #define FILES_PREVIEW (1<<29)
64 #define FILES_NO_CANCEL (1<<31)
91 int xx,
int yy,
int ww,
int hh,
int brder,
92 unsigned long nowner,
const char *nsend,
93 unsigned long ndstyle,
94 const char *nfile=NULL,
const char *npath=NULL,
const char *nmask=NULL,
95 const char *nrecentgroup=NULL);
97 virtual const char *whattype() {
return "FileDialog"; }
98 virtual void OkButton(
const char *textforok,
const char *ttip);
99 virtual void AddFinalButton(
const char *text,
const char *ttip,
int id,
int position);
101 virtual void Recent(
const char *group);
106 virtual int send(
int id);
108 virtual void Cd(
const char *to);
110 virtual void SetFile(
const char *f);
111 virtual int CharInput(
unsigned int ch,
const char *buffer,
int len,
unsigned int state,
const LaxKeyboard *d);
Mon Feb 17 2014 11:52:56, Laxkit