| 29 |
* * |
* * |
| 30 |
************************************************************************/ |
************************************************************************/ |
| 31 |
|
|
| 32 |
|
#ifndef __OFM_IFACE__ |
| 33 |
|
#define __OFM_IFACE__ |
| 34 |
|
|
| 35 |
#include <curses.h> |
#include <curses.h> |
| 36 |
#include "fildir.h" |
#include "fildir.h" |
| 44 |
|
|
| 45 |
#define KEY_ESC 27 |
#define KEY_ESC 27 |
| 46 |
#define CTRL(x) ((x)&0x1f) |
#define CTRL(x) ((x)&0x1f) |
| 47 |
//#define ALT(x) (0x200 | (unsigned int)(x)) |
/* #define ALT(x) (0x200 | (unsigned int)(x)) */ |
| 48 |
|
|
| 49 |
|
|
| 50 |
/* the maximal buffer size for copying (standard: 5MB) */ |
/* the maximal buffer size for copying (standard: 5MB) */ |
| 52 |
#define MAX_CBUF_SIZE 5000000 |
#define MAX_CBUF_SIZE 5000000 |
| 53 |
|
|
| 54 |
|
|
| 55 |
extern const char *xb[];//={"","kB","MB","GB","TB"}; |
extern const char *xb[]; /* ={"","kB","MB","GB","TB"}; */ |
| 56 |
extern const char *button[];//={"CANCEL","NO","YES","OK"}; |
extern const char *button[]; /* ={"CANCEL","NO","YES","OK"}; */ |
| 57 |
|
|
| 58 |
/* we could read the strings from an external file */ |
/* we could read the strings from an external file */ |
| 59 |
|
|
| 60 |
extern const char *strings[]; /*={ |
extern const char *strings[]; /* ={ |
| 61 |
"Error while reading dir.",\ |
"Error while reading dir.",\ |
| 62 |
"Not enough memory.",\ |
"Not enough memory.",\ |
| 63 |
"Unable to delete",\ |
"Unable to delete",\ |
| 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); |
| 160 |
|
|
| 161 |
|
#endif /* __OFM_IFACE__ */ |