The R Project SVN R

Rev

Rev 27662 | Rev 28991 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27662 Rev 27686
Line 186... Line 186...
186
 
186
 
187
static void pagerstayontop(control m)
187
static void pagerstayontop(control m)
188
{
188
{
189
    control c = getdata(m);
189
    control c = getdata(m);
190
 
190
 
191
    if (ischecked(m)) {
-
 
192
	uncheck(m);
-
 
193
    	BringToTop(c, 0);
191
    BringToTop(c, 2);
194
    } else {
-
 
195
	check(m);
-
 
196
    	BringToTop(c, 1);
-
 
197
    }
-
 
198
}
192
}
199
 
193
 
200
static void pagerconsole(control m)
194
static void pagerconsole(control m)
201
{
195
{
202
    show(RConsole);
196
    show(RConsole);
Line 293... Line 287...
293
        disable(p->mpaste);
287
        disable(p->mpaste);
294
        disable(p->mpoppaste);
288
        disable(p->mpoppaste);
295
    }
289
    }
296
    if (ismdi())
290
    if (ismdi())
297
    	disable(PagerPopup[4].m);
291
    	disable(PagerPopup[4].m);
298
    else
292
    else {
299
    	enable(PagerPopup[4].m);
293
    	enable(PagerPopup[4].m);
-
 
294
    	if (isTopmost(c))
-
 
295
    	    check(PagerPopup[4].m);
-
 
296
    	else
-
 
297
    	    uncheck(PagerPopup[4].m);
-
 
298
    }
300
}
299
}
301
 
300
 
302
 
301
 
303
#define MCHECK(a) if (!(a)) {freeConsoleData(p);del(c);return NULL;}
302
#define MCHECK(a) if (!(a)) {freeConsoleData(p);del(c);return NULL;}
304
RECT *RgetMDIsize(); /* in rui.c */
303
RECT *RgetMDIsize(); /* in rui.c */
Line 401... Line 400...
401
    setdata(m, c);
400
    setdata(m, c);
402
    setdata(p->mpopcopy = PagerPopup[0].m, c);
401
    setdata(p->mpopcopy = PagerPopup[0].m, c);
403
    setdata(p->mpoppaste = PagerPopup[1].m, c);
402
    setdata(p->mpoppaste = PagerPopup[1].m, c);
404
    setdata(PagerPopup[2].m, c);
403
    setdata(PagerPopup[2].m, c);
405
    setdata(PagerPopup[4].m, c);
404
    setdata(PagerPopup[4].m, c);
-
 
405
    setdata(PagerPopup[6].m, c);
406
    MCHECK(m = newmenubar(pagermenuact));
406
    MCHECK(m = newmenubar(pagermenuact));
407
    setdata(m, c);
407
    setdata(m, c);
408
    MCHECK(newmenu("File"));
408
    MCHECK(newmenu("File"));
409
    MCHECK(m = newmenuitem("Print...", 0, pagerprint));
409
    MCHECK(m = newmenuitem("Print...", 0, pagerprint));
410
    setdata(m, c);
410
    setdata(m, c);