Commit 4de7689311e81a9a3c7867b7fa68a0cbad9a511b
1 parent
4b647f99
Exists in
master
and in
5 other branches
Melhorando tooltips com base na documentação técnica do ind
Showing
1 changed file
with
16 additions
and
8 deletions
Show diff stats
src/pw3270/ft/ftdialog.c
... | ... | @@ -390,13 +390,13 @@ GtkWidget * v3270_ft_dialog_new(GtkWidget *parent, LIB3270_FT_OPTION options) |
390 | 390 | LIB3270_FT_OPTION_ASCII, |
391 | 391 | BUTTON_ASCII, |
392 | 392 | N_( "_Text file." ), |
393 | - N_( "Check for text files.") | |
393 | + N_( "Check this if the file consists of character data only.") | |
394 | 394 | }, |
395 | 395 | { |
396 | 396 | LIB3270_FT_OPTION_CRLF, |
397 | 397 | BUTTON_CRLF, |
398 | - N_( "Add _CR at end of line." ), | |
399 | - N_( "Adds Newline characters to each host file record before transferring it to the local workstation.") | |
398 | + N_( "Terminate records with _CR/LF." ), | |
399 | + N_( "Following the convention for ASCII text files, <CR> <LF> pairs are used to terminate records in the PC file.") | |
400 | 400 | }, |
401 | 401 | { |
402 | 402 | LIB3270_FT_OPTION_APPEND, |
... | ... | @@ -461,13 +461,13 @@ GtkWidget * v3270_ft_dialog_new(GtkWidget *parent, LIB3270_FT_OPTION options) |
461 | 461 | LIB3270_FT_OPTION_ASCII, |
462 | 462 | BUTTON_ASCII, |
463 | 463 | N_( "_Text file." ), |
464 | - N_( "Check for text files.") | |
464 | + N_( "Check this if the file consists of character data only.") | |
465 | 465 | }, |
466 | 466 | { |
467 | 467 | LIB3270_FT_OPTION_CRLF, |
468 | 468 | BUTTON_CRLF, |
469 | - N_( "_CR delimited file." ), | |
470 | - N_( "Remove the default newline characters in local files before transferring them to the host.") | |
469 | + N_( "Terminate records with _CR/LF." ), | |
470 | + N_( "Following the convention for ASCII text files, <CR> <LF> pairs are used to terminate records in the PC file.") | |
471 | 471 | }, |
472 | 472 | { |
473 | 473 | LIB3270_FT_OPTION_APPEND, |
... | ... | @@ -528,7 +528,7 @@ GtkWidget * v3270_ft_dialog_new(GtkWidget *parent, LIB3270_FT_OPTION options) |
528 | 528 | }; |
529 | 529 | |
530 | 530 | gtk_grid_attach( grid, |
531 | - ftradio_new(dialog,dialog->recfm,_("Record format"),_("Controls the record format of files created on the host."),recfm), | |
531 | + ftradio_new(dialog,dialog->recfm,_("Record format"),_("Specifies the record format of the data set."),recfm), | |
532 | 532 | 0,0,2,1 |
533 | 533 | ); |
534 | 534 | |
... | ... | @@ -590,7 +590,7 @@ GtkWidget * v3270_ft_dialog_new(GtkWidget *parent, LIB3270_FT_OPTION options) |
590 | 590 | { |
591 | 591 | VALUE_BLKSIZE, |
592 | 592 | N_( "Block size:" ), |
593 | - N_( "Specifies the block size for files created on the host (TSO hosts only)." ) | |
593 | + N_( "Specifies the block size (n) for a new data set. For data sets containing fixed length records, the block size must be a multiple of the record length. For data sets containing variable length records, the block size must be greater than or equal to the record length plus four bytes. The block size must not exceed the track length of the device on which the data set resides." ) | |
594 | 594 | }, |
595 | 595 | |
596 | 596 | { |
... | ... | @@ -622,6 +622,14 @@ GtkWidget * v3270_ft_dialog_new(GtkWidget *parent, LIB3270_FT_OPTION options) |
622 | 622 | gtk_widget_set_tooltip_text(GTK_WIDGET(dialog->value[VALUE_DFT]),_( "Buffer size for DFT-mode transfers. Can range from 256 to 32768. Larger values give better performance, but some hosts may not be able to support them.")); |
623 | 623 | gtk_spin_button_set_value(dialog->value[VALUE_DFT],4096); |
624 | 624 | |
625 | + // Setup limits | |
626 | + if(dialog->value[VALUE_LRECL]) | |
627 | + gtk_spin_button_set_range(dialog->value[VALUE_LRECL],0,32760); | |
628 | + | |
629 | + if(dialog->value[VALUE_BLKSIZE]) | |
630 | + gtk_spin_button_set_range(dialog->value[VALUE_BLKSIZE],0,32760); | |
631 | + | |
632 | + | |
625 | 633 | gtk_widget_show_all(gtk_dialog_get_content_area(GTK_DIALOG(dialog))); |
626 | 634 | |
627 | 635 | return GTK_WIDGET(dialog); | ... | ... |