29 |
* * |
* * |
30 |
************************************************************************/ |
************************************************************************/ |
31 |
|
|
|
#ifndef __OFM_IFACE__ |
|
|
#define __OFM_IFACE__ |
|
32 |
|
|
33 |
#include <curses.h> |
#include <curses.h> |
34 |
#include "fildir.h" |
#include "fildir.h" |
42 |
|
|
43 |
#define KEY_ESC 27 |
#define KEY_ESC 27 |
44 |
#define CTRL(x) ((x)&0x1f) |
#define CTRL(x) ((x)&0x1f) |
45 |
/* #define ALT(x) (0x200 | (unsigned int)(x)) */ |
//#define ALT(x) (0x200 | (unsigned int)(x)) |
46 |
|
|
47 |
|
|
48 |
/* the maximal buffer size for copying (standard: 5MB) */ |
/* the maximal buffer size for copying (standard: 5MB) */ |
50 |
#define MAX_CBUF_SIZE 5000000 |
#define MAX_CBUF_SIZE 5000000 |
51 |
|
|
52 |
|
|
53 |
extern const char *xb[]; /* ={"","kB","MB","GB","TB"}; */ |
extern const char *xb[];//={"","kB","MB","GB","TB"}; |
54 |
extern const char *button[]; /* ={"CANCEL","NO","YES","OK"}; */ |
extern const char *button[];//={"CANCEL","NO","YES","OK"}; |
55 |
|
|
56 |
/* we could read the strings from an external file */ |
/* we could read the strings from an external file */ |
57 |
|
|
58 |
extern const char *strings[]; /* ={ |
extern const char *strings[]; /*={ |
59 |
"Error while reading dir.",\ |
"Error while reading dir.",\ |
60 |
"Not enough memory.",\ |
"Not enough memory.",\ |
61 |
"Unable to delete",\ |
"Unable to delete",\ |
86 |
unsigned long sel_count; |
unsigned long sel_count; |
87 |
unsigned long sel_size; |
unsigned long sel_size; |
88 |
|
|
89 |
|
int virtual_dir; // boolean |
90 |
|
|
91 |
/* directory */ |
/* directory */ |
92 |
|
|
93 |
DirStruct *dir; |
DirStruct *dir; |
157 |
int dlgMessageBox(int but,char* buf,char *name,char *message); |
int dlgMessageBox(int but,char* buf,char *name,char *message); |
158 |
int dlgDelete(OPANEL *p); |
int dlgDelete(OPANEL *p); |
159 |
int dlgCopy(OPANEL *p, char *dest); |
int dlgCopy(OPANEL *p, char *dest); |
|
|
|
|
#endif /* __OFM_IFACE__ */ |
|