The R Project SVN R

Rev

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

Rev 34081 Rev 35919
Line 80... Line 80...
80
{
80
{
81
	int result;
81
	int result;
82
 
82
 
83
	if (! question)
83
	if (! question)
84
		question = "";
84
		question = "";
85
	result = MessageBox(0, question, "Question",
85
	result = MessageBox(0, question, G_("Question"),
86
		MB_TASKMODAL | MB_ICONQUESTION | MB_OKCANCEL | TopmostDialogs);
86
		MB_TASKMODAL | MB_ICONQUESTION | MB_OKCANCEL | TopmostDialogs);
87
 
87
 
88
	switch (result) {
88
	switch (result) {
89
		case IDOK: result = YES; break;
89
		case IDOK: result = YES; break;
90
		case IDCANCEL:
90
		case IDCANCEL:
Line 293... Line 293...
293
	static char * CANCEL_STRING	= "Cancel";
293
	static char * CANCEL_STRING	= "Cancel";
294
	static char * BROWSE_STRING	= "Browse";
294
	static char * BROWSE_STRING	= "Browse";
295
 
295
 
296
	static char * QUESTION_TITLE	= "Question";
296
	static char * QUESTION_TITLE	= "Question";
297
	static char * PASSWORD_TITLE	= "Password Entry";
297
	static char * PASSWORD_TITLE	= "Password Entry";
298
	static char * FINDDIR_TITLE	= "Change directory";
298
	static char * FINDDIR_TITLE	= "Choose directory";
299
 
299
 
300
static void add_data(window w)
300
static void add_data(window w)
301
{
301
{
302
	dialog_data *d;
302
	dialog_data *d;
303
 
303
 
Line 466... Line 466...
466
	add_data(win);
466
	add_data(win);
467
	d = data(win);
467
	d = data(win);
468
	d->question = newlabel(question, rect(10,h,tw+4,h*2+2),
468
	d->question = newlabel(question, rect(10,h,tw+4,h*2+2),
469
			AlignLeft);
469
			AlignLeft);
470
	if (title == FINDDIR_TITLE) {
470
	if (title == FINDDIR_TITLE) {
471
	    bw = strwidth(SystemFont, BROWSE_STRING) * 3/2;
471
	    bw = strwidth(SystemFont, G_(BROWSE_STRING)) * 3/2;
472
	    d->text = newfield(default_str, rect(10,h*4,tw+4-bw,h*3/2));
472
	    d->text = newfield(default_str, rect(10,h*4,tw+4-bw,h*3/2));
473
	    newbutton(BROWSE_STRING, rect(20+tw-bw, h*4-2, bw, h+10),
473
	    newbutton(G_(BROWSE_STRING), rect(20+tw-bw, h*4-2, bw, h+10),
474
		      browse_button);
474
		      browse_button);
475
	}
475
	}
476
	else if (title == PASSWORD_TITLE)
476
	else if (title == PASSWORD_TITLE)
477
		d->text = newpassword(default_str, rect(10,h*4,tw+4,h*3/2));
477
		d->text = newpassword(default_str, rect(10,h*4,tw+4,h*3/2));
478
	else
478
	else