Wefax improvements

* Set right ADIF mode tag for Wefax
  * Better help messages
pull/1/head
Remi Chateauneu 2011-06-27 23:54:08 +01:00 zatwierdzone przez David Freese
rodzic 732f12de2c
commit 406a5eaea9
3 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -74,8 +74,8 @@ const struct mode_info_t mode_info[NUM_MODES] = {
{ MODE_MFSK31, &mfsk31_modem, "MFSK31", "MFSK-31", "MFSK31", "MFSK31", "MK31" },
{ MODE_MFSK64, &mfsk64_modem, "MFSK64", "MFSK-64", "MFSK64", "MFSK64", "MK64" },
{ MODE_WEFAX_576, &wefax576, "WEFAX576", "WEFAX-IOC576", "WEFAXIOC576", "WEFAXIOC576", "FX576" },
{ MODE_WEFAX_288, &wefax288, "WEFAX288", "WEFAX-IOC288", "WEFAXIOC288", "WEFAXIOC288", "FX288" },
{ MODE_WEFAX_576, &wefax576, "WEFAX576", "WEFAX-IOC576", "WEFAXIOC576", "FAX", "FX576" },
{ MODE_WEFAX_288, &wefax288, "WEFAX288", "WEFAX-IOC288", "WEFAXIOC288", "FAX", "FX288" },
{ MODE_MT63_500, &mt63_500_modem, "MT63-500", "MT63-500", "MT63-500", "MT63", "MT63-500" },
{ MODE_MT63_1000, &mt63_1000_modem, "MT63-1K", "MT63-1000", "MT63-1XX", "MT63", "MT63 1K" },

Wyświetl plik

@ -2427,6 +2427,7 @@ public:
// =============================================================================
// Returns the current wefax modem pointer.
static wefax * get_wefax(void)
{
if( ( active_modem->get_mode() >= MODE_WEFAX_FIRST )
@ -2443,7 +2444,7 @@ struct Wefax_state_string : public xmlrpc_c::method
{
Wefax_state_string() {
_signature = "s:n";
_help = "Returns Wefax engine state"; }
_help = "Returns Wefax engine state (tx and rx) for information."; }
void execute(const xmlrpc_c::paramList& params, xmlrpc_c::value* retval)
try
@ -2534,7 +2535,7 @@ struct Wefax_start_manual_reception : public xmlrpc_c::method
{
Wefax_start_manual_reception() {
_signature = "s:n";
_help = "Starts image reception in manual mode"; }
_help = "Starts fax image reception in manual mode"; }
void execute(const xmlrpc_c::paramList& params, xmlrpc_c::value* retval)
try
@ -2572,7 +2573,7 @@ struct Wefax_set_max_lines : public xmlrpc_c::method
{
Wefax_set_max_lines() {
_signature = "s:i";
_help = "Set maximum lines for image reception"; }
_help = "Set maximum lines for fax image reception"; }
void execute(const xmlrpc_c::paramList& params, xmlrpc_c::value* retval)
try
@ -2592,7 +2593,7 @@ struct Wefax_get_received_file : public xmlrpc_c::method
{
Wefax_get_received_file() {
_signature = "s:i";
_help = "Waits for next received file name"; }
_help = "Waits for next received fax file, returns its name with a delay. Empty string if timeout."; }
void execute(const xmlrpc_c::paramList& params, xmlrpc_c::value* retval)
try

Wyświetl plik

@ -693,7 +693,7 @@ static void wefax_cb_pic_max_lines( Fl_Widget *, void * )
/// The value given by FLTK should be an integer, but better to be sure.
if( 1 != sscanf( ptr_val_gui, "%d", &max_val_gui ) ) {
LOG_ERROR( "Cannot parse: %s", ptr_val_gui ) ;
LOG_ERROR( _("Cannot parse: %s"), ptr_val_gui ) ;
wefax_pic::restore_max_lines();
return ;
}