The R Project SVN R

Rev

Rev 42300 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 42300 Rev 43800
Line 108... Line 108...
108
static void deredraw(DEstruct);
108
static void deredraw(DEstruct);
109
static void downlightrect(DEstruct);
109
static void downlightrect(DEstruct);
110
static void drawwindow(DEstruct);
110
static void drawwindow(DEstruct);
111
static void drawcol(DEstruct, int);
111
static void drawcol(DEstruct, int);
112
/* static void de_drawline(int, int, int, int);*/
112
/* static void de_drawline(int, int, int, int);*/
113
static void de_drawtext(DEstruct, int, int, char *);
113
static void de_drawtext(DEstruct, int, int, const char *);
114
static void drawrectangle(DEstruct, int, int, int, int, int, int);
114
static void drawrectangle(DEstruct, int, int, int, int, int, int);
115
static void drawrow(DEstruct, int);
115
static void drawrow(DEstruct, int);
116
static void find_coords(DEstruct, int, int, int*, int*);
116
static void find_coords(DEstruct, int, int, int*, int*);
117
static void handlechar(DEstruct, char*);
117
static void handlechar(DEstruct, const char *);
118
static void highlightrect(DEstruct);
118
static void highlightrect(DEstruct);
119
static Rboolean initwin(DEstruct, const char *);
119
static Rboolean initwin(DEstruct, const char *);
120
static void jumppage(DEstruct, int);
120
static void jumppage(DEstruct, int);
121
static void jumpwin(DEstruct, int, int);
121
static void jumpwin(DEstruct, int, int);
122
static void de_popupmenu(DEstruct, int, int, int);
122
static void de_popupmenu(DEstruct, int, int, int);
123
static void printlabs(DEstruct);
123
static void printlabs(DEstruct);
124
static void printrect(DEstruct, int, int);
124
static void printrect(DEstruct, int, int);
125
static void printstring(DEstruct, const char*, int, int, int, int);
125
static void printstring(DEstruct, const char *, int, int, int, int);
126
static void printelt(DEstruct, SEXP, int, int, int);
126
static void printelt(DEstruct, SEXP, int, int, int);
127
static void setcellwidths(DEstruct);
127
static void setcellwidths(DEstruct);
128
 
128
 
129
static dataeditor newdataeditor(DEstruct, const char *);
129
static dataeditor newdataeditor(DEstruct, const char *);
130
static void de_copy(control c);
130
static void de_copy(control c);
Line 133... Line 133...
133
 
133
 
134
 
134
 
135
#define WIN32_LEAN_AND_MEAN 1
135
#define WIN32_LEAN_AND_MEAN 1
136
#include <windows.h> /* for Sleep */
136
#include <windows.h> /* for Sleep */
137
 
137
 
138
extern int mb_char_len(char *, int, wchar_t *); /* from console.c */
138
extern int mb_char_len(const char *, int, wchar_t *); /* from console.c */
139
 
139
 
140
static void moveback(DEstruct DE)
140
static void moveback(DEstruct DE)
141
{
141
{
142
    int mb_len;
142
    int mb_len;
143
    wchar_t wc;
143
    wchar_t wc;
Line 875... Line 875...
875
   depending on the current column type, only printing characters
875
   depending on the current column type, only printing characters
876
   should get this far */
876
   should get this far */
877
 
877
 
878
/* --- Not true! E.g. ESC ends up in here... */
878
/* --- Not true! E.g. ESC ends up in here... */
879
 
879
 
880
static void handlechar(DEstruct DE, char *text)
880
static void handlechar(DEstruct DE, const char *text)
881
{
881
{
882
    int c = text[0];
882
    int c = text[0];
883
 
883
 
884
    if ( c == '\033' ) {
884
    if ( c == '\033' ) {
885
	DE->CellModified = FALSE;
885
	DE->CellModified = FALSE;
Line 995... Line 995...
995
    gdrawrect(DE->de, lwd, 0, (fore==1)? DE->p->ufg: DE->p->bg,
995
    gdrawrect(DE->de, lwd, 0, (fore==1)? DE->p->ufg: DE->p->bg,
996
	      rect(xpos, ypos, width, height), 1, PS_ENDCAP_SQUARE, 
996
	      rect(xpos, ypos, width, height), 1, PS_ENDCAP_SQUARE, 
997
	      PS_JOIN_BEVEL, 10);
997
	      PS_JOIN_BEVEL, 10);
998
}
998
}
999
 
999
 
1000
static void de_drawtext(DEstruct DE, int xpos, int ypos, char *text)
1000
static void de_drawtext(DEstruct DE, int xpos, int ypos, const char *text)
1001
{
1001
{
1002
    gdrawstr(DE->de, DE->p->f, DE->p->fg, pt(xpos, ypos), text);
1002
    gdrawstr(DE->de, DE->p->f, DE->p->fg, pt(xpos, ypos), text);
1003
}
1003
}
1004
 
1004
 
1005
/* Keypress callbacks */
1005
/* Keypress callbacks */